| 1 |
<CsoundSynthesizer> |
| 2 |
|
| 3 |
<CsOptions> |
| 4 |
-o dac -M hw:1,0,0 |
| 5 |
</CsOptions> |
| 6 |
|
| 7 |
<CsInstruments> |
| 8 |
;ksmps = 1 |
| 9 |
nchnls = 2 |
| 10 |
0dbfs = 1 |
| 11 |
massign 1, 1 |
| 12 |
|
| 13 |
ctrlinit 1, 21,100, 22,12, 23,13, 24,6, 25,0.6 |
| 14 |
instr 1 |
| 15 |
kc[] init 5 |
| 16 |
icps cpsmidi |
| 17 |
iamp ampmidi 0.6 |
| 18 |
irel midic7 25, .01,2 |
| 19 |
|
| 20 |
kgain ctrl7 1,21, 0, 1 |
| 21 |
kgain port kgain,.1 |
| 22 |
kcar ctrl7 1,22, 1, 10 |
| 23 |
kmod ctrl7 1,23, .1, 10 |
| 24 |
kindx ctrl7 1,24, 1, 30 |
| 25 |
kindx port kindx,.1 |
| 26 |
asig foscil iamp, icps, int(kcar), int(kmod), kindx, 1 |
| 27 |
kmgate linsegr 0, .001, 1, irel, 0 |
| 28 |
outs asig*kmgate*kgain, asig*kmgate*kgain |
| 29 |
kc ctrlsave 1, 21,22,23,24,25 |
| 30 |
kchar sensekey |
| 31 |
if kchar != 97 goto end |
| 32 |
printarray kc |
| 33 |
printks "ctrlinit\t1, 21,%f, 22,%f, 23,%f, 24,%f, 25,%f\n", 0, \ |
| 34 |
kc[0], kc[1], kc[2], kc[3], kc[4] |
| 35 |
end: |
| 36 |
endin |
| 37 |
</CsInstruments> |
| 38 |
<CsScore> |
| 39 |
f1 0 8192 10 1 |
| 40 |
f2 0 1024 7 -1 1024 1 |
| 41 |
f0 60000 |
| 42 |
e |
| 43 |
</CsScore> |
| 44 |
</CsoundSynthesizer> |