Skip to main content

MIDIMessage(MIDIFunction function, number channel, number data1, number data2)

Creates a new MIDI message.

Parameters:

NameTypeDescription
functionMIDIFunctionMIDI function.
channelnumberThe channel number. [0-15]
data1numberFirst Data. [0-127]
data2numberSecond Data. [0-127]

Usage

---@type MIDIFunction
local function;

---@type number
local channel;

---@type number
local data1;

---@type number
local data2;


local midimessage = MIDIMessage(function, channel, data1, data2);