| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
-odac -B441 -b441 |
| 4 |
</CsOptions> |
| 5 |
<CsInstruments> |
| 6 |
|
| 7 |
sr = 44100 |
| 8 |
kr = 100 |
| 9 |
ksmps = 441 |
| 10 |
nchnls = 2 |
| 11 |
|
| 12 |
gindx init 0 |
| 13 |
|
| 14 |
instr 1 |
| 15 |
kindex init 0 |
| 16 |
ktrig metro 0.5 |
| 17 |
if ktrig = 0 goto noevent |
| 18 |
event "i", 2, 0, 0.5, kindex |
| 19 |
kindex = kindex + 1 |
| 20 |
noevent: |
| 21 |
|
| 22 |
endin |
| 23 |
|
| 24 |
instr 2 |
| 25 |
iout1 init 0 |
| 26 |
iout2 init 0 |
| 27 |
iout3 init 0 |
| 28 |
iout4 init 0 |
| 29 |
indx = p4 |
| 30 |
vtablei indx, 1, 1, 0, iout1,iout2, iout3, iout4 |
| 31 |
print iout1, iout2, iout3, iout4 |
| 32 |
turnoff |
| 33 |
endin |
| 34 |
|
| 35 |
</CsInstruments> |
| 36 |
<CsScore> |
| 37 |
f 1 0 32 10 1 |
| 38 |
i 1 0 20 |
| 39 |
|
| 40 |
</CsScore> |
| 41 |
</CsoundSynthesizer> |