Skip to main content

MIDI.OnReceivedMIDI

"Read-Only"

This property is Read-Only

NameType
OnReceivedMIDIEventHandler

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
NameTypeDescription
messageMIDIMessageReceived 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.