| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
--env:SSDIR+=../../SourceMaterials -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 igoto mono; condition if true |
| 15 |
igoto stereo; else condition |
| 16 |
mono: |
| 17 |
prints "The file is mono!%n" |
| 18 |
igoto continue |
| 19 |
stereo: |
| 20 |
prints "The file is stereo!%n" |
| 21 |
continue: |
| 22 |
endin |
| 23 |
|
| 24 |
</CsInstruments> |
| 25 |
<CsScore> |
| 26 |
i 1 0 0 |
| 27 |
</CsScore> |
| 28 |
</CsoundSynthesizer> |
| 29 |
;example by joachim heintz |