Debian Codegraph @

src/Examples/FLOSS Manual Examples/02 Quick Start/02E02_RecordRT.csd

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