04-11-2014, 12:02 PM
If you have QM "MIDI Triggers" functions, look in function MT_MidiInProc. It receives all MIDI messages and recognizes key-on messages. Add similar code to recognize key-off messages. I don't remember how. Then you can start a timer in the dialog thread with SetTimer, and stop with KillTimer.
