Debian Codegraph @

src/Examples/FLOSS Manual Examples/03 Csound Language/03C16_Timeloop_and_not.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 giSine ftgen 0, 0, 2^10, 10, 1
12
13 instr 1
14 loop:
15 timout 0, 1, play
16 reinit loop
17 play:
18 kFreq1 expseg 400, 1, 600
19 aTone1 oscil3 .2, kFreq1, giSine
20 rireturn ;end of the time loop
21 kFreq2 expseg 400, p3, 600
22 aTone2 poscil .2, kFreq2, giSine
23
24 outs aTone1+aTone2, aTone1+aTone2
25 endin
26
27 </CsInstruments>
28 <CsScore>
29 i 1 0 3
30 i 1 4 5
31 </CsScore>
32 </CsoundSynthesizer>
33 ;example by joachim heintz