Debian Codegraph @

src/Examples/FLOSS Manual Examples/03 Csound Language/03A13_Re-init.csd

raw
1 <CsoundSynthesizer>
2 <CsInstruments>
3 sr = 44100
4 ksmps = 4410
5
6 instr 1
7 iCount init 0 ; set icount to 0 first
8 reinit new ; reinit the section each k-pass
9 new:
10 iCount = iCount + 1 ; increase
11 print iCount ; print the value
12 rireturn
13 endin
14
15 </CsInstruments>
16 <CsScore>
17 i 1 0 1
18 </CsScore>
19 </CsoundSynthesizer>
20 ;example by joachim heintz