1<CsoundSynthesizer>
2<CsOptions>
3--env:SSDIR+=../SourceMaterials -odac
4</CsOptions>
5<CsInstruments>
6;Example by Joachim Heintz
7sr = 44100
8ksmps = 32
9nchnls = 2
100dbfs = 1
11
12          seed      0 ;each time different seed for random
13
14  instr 1
15kFreq     randomi   400, 800, 1 ;random sliding frequency
16aSig      poscil    .2, kFreq ;sine with this frequency
17kPan      randomi   0, 1, 1 ;random panning
18aL, aR    pan2      aSig, kPan ;stereo output signal
19          outs      aL, aR ;live output
20          fout      "live_record.wav", 18, aL, aR ;write to soundfile
21  endin
22
23</CsInstruments>
24<CsScore>
25i 1 0 10
26e
27</CsScore>
28</CsoundSynthesizer>
29