1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
instr 1
Seval = p4
icompiled compilestr Seval
if (icompiled == 0) then
printf_i "Compiled: %s\n", 1, Seval
else
printf_i "!!!Did not compile: %s\n", 1, Seval
endif
endin
schedule 1, 1, 1, {{
instr 10
aL chnget "outLeft"
aR chnget "outRight"
outs aL, aR
chnclear "outLeft"
chnclear "outRight"
endin
}}
schedule 1, 2, 1, {{
schedule 10, 0, -1
}}
schedule 1, 3, 1, {{
instr 20
ipan = p6
ares oscil p4, p5
aleft = ares * ipan
aright = ares * (1 - ipan)
chnmix aleft, "outLeft"
chnmix aright, "outRight"
endin
}}
schedule 1, 4, 1, {{
schedule 20, 0, 1, 0.8, 261, 1
}}
schedule 1, 5, 1, {{
schedule 20, 0, 1, 0.8, 330, 0
}}
schedule 1, 6, 1, {{
schedule 20, 0, 1, 0.8, 440, 1
}}
</CsInstruments>
<CsScore>
;i1 0 1
f0 8
e
</CsScore>
</CsoundSynthesizer>
|