| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in |
| 5 |
-odac -iadc ;;;RT audio I/O |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o ifthen.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
kr = 4410 |
| 13 |
ksmps = 10 |
| 14 |
nchnls = 1 |
| 15 |
|
| 16 |
instr 1 |
| 17 |
lab99: |
| 18 |
if p4<0 goto lab100 |
| 19 |
p4 = p4-1 |
| 20 |
print p4 |
| 21 |
goto lab99 |
| 22 |
lab100: |
| 23 |
endin |
| 24 |
|
| 25 |
instr 2 |
| 26 |
until p4<0 do |
| 27 |
p4 = p4-1 |
| 28 |
print p4 |
| 29 |
od |
| 30 |
endin |
| 31 |
</CsInstruments> |
| 32 |
<CsScore> |
| 33 |
i 1 1 1 4 |
| 34 |
i 2 2 1 4 |
| 35 |
e |
| 36 |
|
| 37 |
</CsScore> |
| 38 |
</CsoundSynthesizer> |