[Csnd-dev] sensekey
joachim heintz <[email protected]>
| Newsgroups | gmane.comp.audio.csound.devel |
|---|---|
| Message-ID | <[email protected]> |
hi all -
a friend of mine used two sensekey opcodes in two instruments, and was
wondering why the second one is ignored.
is this expected behaviour? (it is not mentioned in the manual.)
would it be easy to change it, and allow more than one instance?
below an example; comment out "schedule(1,0,-1)" to see the difference.
joachim
instr 1
gkKey_1 sensekey
endin
schedule(1,0,-1)
instr 2
gkKey_2 sensekey
endin
schedule(2,0,-1)
instr 3
if (changed(gkKey_1) == 1) then
printks("gkKey_1 = %d\n",0,gkKey_1)
endif
if (changed(gkKey_2) == 1) then
printks("gkKey_2 = %d\n",0,gkKey_2)
endif
endin
schedule(3,0,-1)