Debian Codegraph @

src/Examples/FLOSS Manual Examples/03 Csound Language/03C05_IfGoto_ik.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 instr 1
12 Sfile = "ClassGuit.wav"
13 ifilchnls filenchnls Sfile
14 if ifilchnls == 1 goto mono
15 goto stereo
16 mono:
17 aL soundin Sfile
18 aR = aL
19 goto continue
20 stereo:
21 aL, aR soundin Sfile
22 continue:
23 outs aL, aR
24 endin
25
26 </CsInstruments>
27 <CsScore>
28 i 1 0 5
29 </CsScore>
30 </CsoundSynthesizer>
31 ;example by joachim heintz