Skip to main content

OSCMIDIMessage(number portID, MIDIFunction MIDIFunction, number channel, number data1, number data2)

Creates a new OSC Midi message.

Parameters:

NameTypeDescription
portIDnumberMIDI port ID [0-255]
MIDIFunctionMIDIFunctionMIDI message Function.
channelnumberMIDI message channel. [0-15]
data1numberMIDI message first data byte [0-127]
data2numberMIDI message second data byte. [0-127]

Usage

---@type number
local portID;

---@type MIDIFunction
local MIDIFunction;

---@type number
local channel;

---@type number
local data1;

---@type number
local data2;


local oscmidimessage = OSCMIDIMessage(portID, MIDIFunction, channel, data1, data2);