Skip to main content

MIDI.SendMIDI(MIDIFunction function, number channel, number data1, number data2)

Create and send a MIDI message.

Parameters:

NameTypeDescription
functionMIDIFunctionMIDI function.
channelnumberThe MIDI channel [0-15]
data1numberData1 byte [0-127]
data2numberData2 byte [0-127]

Usage

---@type MIDIFunction
local function;

---@type number
local channel;

---@type number
local data1;

---@type number
local data2;


MIDI:SendMIDI(function, channel, data1, data2)