MIDI events
<< Click to Display Table of Contents >> Navigation: Callbacks > MIDI Events > MIDI events |
Usage (requires global variable associated with a MIDI In Block):
On NoteOnEvent (m : NoteMessage) From <MidiIn block name>
// Called whenever a Note On message is received
End
On NoteOffEvent (m : NoteMessage) From <MidiIn block name>
// Called whenever a Note On message is received
End
On NoteEvent (m : NoteMessage) From <MidiIn block name>
// Called whenever a Note On or Note Off message is received
// Warning: this callback will not be invoked for NoteOn events
// or for NoteOff events if you have defined
// NoteOnEvent or NoteOffEvent respectively callbacks
End
On ControlChangeEvent (c : ControlChangeMessage) From <MidiIn block name>
End
On PitchBendEvent (p : PitchBendMessage) From <MidiIn block name>
End
On AftertouchEvent (a : AfterTouchMessage) From <MidiIn block name>
// This is channel pressure
End
On PolytouchEvent (p : PolyTouchMessage) From <MidiIn block name>
// This is note-specific pressure
End
On ProgramChangeEvent( p : ProgramChangeMessage) From <MidiIn block name>
End
On MidiEvent( m : MidiMessage) From <MidiIn block name>
// This callback does not occur if a more specific MIDI event callback was defined
End
On SysexEvent( s : SysexMessage) From <MidiIn block name>
// Respond to a sysex message
End