Hi all,
i would like to understand about midiin opcode but I have problems with it; (this opcode is very simply but… )
I would like to print 144 (=NoteOn) when I press a Note, and 128 (=NoteOff) when released… Simply… but…
It happens that the values are printed together only to the release of the note (Or If I hold the note, only 128 is printed ) …
what I wrong?
; detecting MIDI information: 128 (note off) - 144 (note on)
kstatus, kchan, kdata1, kdata2 midiin
ktrig changed kstatus
if (ktrig==1 && kstatus==144) then {
printk2 kstatus
}
elseif (ktrig==1 && kstatus==128) then {
printk2 kstatus
}
endif
Thanks, R