OSCMIDIMessage()
7/14/25Less than 1 minute
OSCMIDIMessage(number portID, MIDIFunction MIDIFunction, number channel, number data1, number data2)
Creates a new OSC Midi message.
Parameters:
| Name | Type | Description |
|---|---|---|
| portID | number | MIDI port ID [0-255] |
| MIDIFunction | MIDIFunction | MIDI message Function. |
| channel | number | MIDI message channel. [0-15] |
| data1 | number | MIDI message first data byte [0-127] |
| data2 | number | MIDI 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);
