MIDIMessage(MIDIFunction function, number channel, number data1, number data2)
Creates a new MIDI message.
Parameters:
Name | Type | Description |
---|---|---|
function | MIDIFunction | MIDI function. |
channel | number | The channel number. [0-15] |
data1 | number | First Data. [0-127] |
data2 | number | Second 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);