| Does anybody know how to properly use the chanctrl opcode?
I've been getting by using midictrl until now, and I find that midictrl
causes all strings (of my guitar synth) to default to channel 1 when a
bank change is implemented (each string should have its own channel,
corresponding to midi channels 1-6 and instr 1-6, right?) Anyway, I
thought a good workaround would be chanctrl, so I looked in the manual and
tried using it. But I get "no legal opcode" messages for those lines. I
am using Gabriel Maldonado's DirectSound 2.6, which uses Csound version
3.511. Here is my csd file:
-+* -+X1 -+K -m0 -+O -b100
sr=22050
kr=441
ksmps=50
nchnls=1
instr 1
icps1 cpsmidi
ibank1 chanctrl 1, 0
ifcn1=(ibank1=0 ? 1 : 2)
a1 oscil 10000, icps1, ifcn1
out a1
endin
instr 2
icps1 cpsmidi
ibank2 chanctrl 2, 0
ifcn2=(ibank2=0 ? 2 : 1)
a2 oscil 10000, icps2, ifcn2
out a2
endin
f1 0 1024 10 1
f2 0 1024 10 1 .5 .333 .25 .2 .167 .143 .125 .111 .1 .09 .063
f0 600
e
I'm interested to hear what anybody else can offer in the way of
solutions, especially other Roland GR30 guitar synth users.
Kevin Gallager, kgallagh@astro.temple.edu
Web - http://astro.temple.edu/~kgallagh |