Debian Codegraph @

src/Examples/FLOSS Manual Examples/03 Csound Language/03A14_Order_of_calc.csd

raw
1 <CsoundSynthesizer>
2 <CsInstruments>
3 sr = 44100
4 ksmps = 4410
5
6 instr 1
7 gkcount init 0 ;set gkcount to 0 first
8 gkcount = gkcount + 1 ;increase
9 endin
10
11 instr 10
12 printk 0, gkcount ;print the value
13 endin
14
15 instr 100
16 gkcount init 0 ;set gkcount to 0 first
17 gkcount = gkcount + 1 ;increase
18 endin
19
20
21 </CsInstruments>
22 <CsScore>
23 ;first i1 and i10
24 i 1 0 1
25 i 10 0 1
26 ;then i100 and i10
27 i 100 1 1
28 i 10 1 1
29 </CsScore>
30 </CsoundSynthesizer>
31 ;Example by Joachim Heintz