hello sir..
i need your help Sir..
how to interpret dwParam1 from delegate midiInProc into midi status message like note-off, or note-on, control change..
because as long i try dwParam1 is 254, and is not equal to note-off or else...
hello sir..
i need your help Sir..
how to interpret dwParam1 from delegate midiInProc into midi status message like note-off, or note-on, control change..
because as long i try dwParam1 is 254, and is not equal to note-off or else...
You won't necessarily receive note-offs from every input device. IIRC it is legal for a device to send a note-on with volume=0 as a substitute for note-off. Also a drum stream (from a drum machine and/or on MIDI channel 10) I believe commonly contains only note-ons, no note-offs.
I'm not entirely sure what you are asking, but I think you are trying to figure out how to interpret MIDI data.
I suggest this resource: http://www.midi.org/techspecs/midimessages.php
MIDI messages related to notes are differentiated by the first 4 bits, not by the whole byte. The last four bits of the first byte specify the channel.