/*Getting started.. 1.4 Basic Elements: Constants and Variables Variables are named 'cells' or 'slots' which contain data. They may be updated at one of the available update rates: i, k and a, which stand for initialization, control and audio. The type of variable is determined by the first letter of its name (i,k,a). The names can be easier to read, if you start new words with big letters. For example: aMyAudioVariable kMyControlVariable iThisIsTheInitVariable Numeric Value types: (From: An Overview of Csound Variable Types by Andres Cabrera (Csound Journal Issue 10 on www.csounds.com)) a-type: These variables hold audio samples, or control signals that are calculated and updated every audio sample. k-type: These variables hold scalar values which are updated only once per control period. i-type: Initialization variables are only updated on every note's initialization pass. More detailed information can be found here: -Constants and Variables (Menu: Help->Csound Manual->1. Overview - Syntax of the orchestra->Constants and Variables) -An Overview of Csound Variable Types by Andres Cabrera (Csound Journal Issue 10 on www.csounds.com) */ sr = 44100 ksmps = 128 nchnls = 2 0dbfs = 1 instr 2 kFreq expon 100, 5, 1000 ; kFreq is used to carry the 'expon' output as k-type aOut oscili 0.2, kFreq, 1 ; aOut carries the 'oscil' output as a-type outvalue "freqsweep", kFreq ; k-type values can be displayed on widgets outs aOut, aOut ; a-type values can be played by the computers audio output endin f 1 0 1024 10 1 ; this function table contains the sine information i 2 0 5 ; the instrument is called and plays for 5 seconds e ; written by Alex Hofmann (Nov. 2009) - Incontri HMT-Hannover 1013 279 563 397 true 162 143 151 freqsweep 108 37 144 29 {e0798988-168d-430b-a9b7-b8f2313ca7bf} true 0 -3 center Helvetica 18 3 0 0 0 182 109 0 border 1 1 22 365 255 150 {98a4c895-a461-408e-9ab2-543b97475130} true 0 -3 -255.00000000 scope 2.00000000 1.00000000 1.00000000 1.00000000 0.00000000 21 7 248 71 {6b72ecb9-3089-4674-b08a-8adc73a46b3e} true 0 -3 left Lucida Grande 14 3 0 0 0 255 255 255 noborder 1 1 22 313 254 53 {5f31db51-4df9-4b43-8f7d-340609938c13} true 0 -3 left Lucida Grande 14 3 0 0 0 255 255 255 noborder 1 1 21 165 251 109 {8ca94d8e-b7f1-42ea-8842-6971bea7aa46} true 0 -3 0 1.00000000 1.00000000 1.00000000 1.00000000 auto auto true 21 105 251 61 {78869346-10bb-48e9-91c8-84e4b7e3e2f1} true 0 -3 left Lucida Grande 14 3 0 0 0 255 255 255 noborder 1 1 freqsweep 108 37 144 29 {2a0e9cca-d3b3-4fbc-8e24-374c23d39941} true 0 -3 center Helvetica 18 3 0 0 0 182 109 0 border 1 1 22 365 255 150 {a1a2b99b-4f02-465a-8725-e03da3c9c551} true 0 -3 -255.00000000 scope 2.00000000 1.00000000 1.00000000 1.00000000 0.00000000 21 7 248 71 {17ce6c00-b473-4ea4-9bf4-44a0304a85a6} true 0 -3 left Lucida Grande 14 3 0 0 0 255 255 255 noborder 1 1 22 313 254 53 {ee5ec7fb-9af7-44f6-b84e-3a7d91d19d68} true 0 -3 left Lucida Grande 14 3 0 0 0 255 255 255 noborder 1 1 21 165 251 109 {ef1ce543-98ba-4cf3-8f83-7404ec9981e1} true 0 -3 0 1.00000000 1.00000000 1.00000000 1.00000000 auto auto true 21 105 251 61 {8ac76c90-0fcc-4387-a913-ee6318a09765} true 0 -3 left Lucida Grande 14 3 0 0 0 255 255 255 noborder 1 1