I'm not having much luck with the midipolyaftertouch opcode. Basically
kPea init 0.1
midipolyaftertouch kPea, 1, 0.1, 0.9
printk2 kPea
does not actually respond to polyphonic aftertouch messages. On the other hand, a manually coded rough equivalent
kPea init 0.1
kstatus,kchan,kdata1,kdata2 midiin
if (kstatus==160 && kchan==1) then
kPea = kdata2 * 0.007
printk2 kPea
endif
works fine. So is this a known bug in midipolyaftertouch
? I can't find any usage examples for midipolyaftertouch
, besides those from the manual, so I'm guess hardly anyone used it... By the way aftouch
gets the channel not the per-note after-touch (pressure), i.e. aftouch
queries kstatus == 208 (and actually does work, but of course it's not per note). For the difference see this.
I'm using Csound version 6.13 beta from inside Cabbage 2.3.0 on Windows (because that's what ships with that version of Cabbage).