/*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
1013279563397true162143151freqsweep1083714429{e0798988-168d-430b-a9b7-b8f2313ca7bf}true0-3center
Helvetica
1830001821090border1122365255150{98a4c895-a461-408e-9ab2-543b97475130}true0-3-255.00000000scope2.000000001.000000001.000000001.000000000.0000000021724871{6b72ecb9-3089-4674-b08a-8adc73a46b3e}true0-3left
Lucida Grande
143000255255255noborder112231325453{5f31db51-4df9-4b43-8f7d-340609938c13}true0-3left
Lucida Grande
143000255255255noborder1121165251109{8ca94d8e-b7f1-42ea-8842-6971bea7aa46}true0-301.000000001.000000001.000000001.00000000autoautotrue2110525161{78869346-10bb-48e9-91c8-84e4b7e3e2f1}true0-3left
Lucida Grande
143000255255255noborder11freqsweep1083714429{2a0e9cca-d3b3-4fbc-8e24-374c23d39941}true0-3center
Helvetica
1830001821090border1122365255150{a1a2b99b-4f02-465a-8725-e03da3c9c551}true0-3-255.00000000scope2.000000001.000000001.000000001.000000000.0000000021724871{17ce6c00-b473-4ea4-9bf4-44a0304a85a6}true0-3left
Lucida Grande
143000255255255noborder112231325453{ee5ec7fb-9af7-44f6-b84e-3a7d91d19d68}true0-3left
Lucida Grande
143000255255255noborder1121165251109{ef1ce543-98ba-4cf3-8f83-7404ec9981e1}true0-301.000000001.000000001.000000001.00000000autoautotrue2110525161{8ac76c90-0fcc-4387-a913-ee6318a09765}true0-3left
Lucida Grande
143000255255255noborder11