Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Midi NoteOn timer
#6
Code:
Copy      Help
;in function that receives MIDI messages, eg MT_MidiInProc:
;detect whether it is a key on or key off message, then
if messageType=1 ;;key on
,SetTimer _hwndmt 10 5000 0
else if messageType=2 ;;key off
,KillTimer _hwndmt 10
;let _hwndmt be MIDI manager dialog handle, int+

;_______________________

;in MIDI manager dialog procedure, eg MIDI_Timer:
,case WM_TIMER
,sel wParam
,,case 10
,,out "a function runs"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)