MIDI.OnReceivedMIDI
"Read-Only"
This property is Read-Only
Name | Type |
---|---|
OnReceivedMIDI | EventHandler |
Event callback function requirement
info
This property is an event. It means that you need to add a listener function to it. Here how that function needs to look like.
function(MIDIMessage message);
Parameters
Name | Type | Description |
---|---|---|
message | MIDIMessage | Received MIDI message. |
Usage
--- callback function called when event triggers
--- @param midimessage MIDIMessage
local function CallBack(midimessage)
-- code to handle event call back
end
-- Regsiter callback function
MIDI.OnReceivedMIDI.Add(CallBack);
Description
Fires when a MIDI message is received.