Base class to send and receive Midi Message from a Midi keyboard connected to the desktop
More...
Base class to send and receive Midi Message from a Midi keyboard connected to the desktop
- Version
- Maestro Pro
More information here https://paxstellar.fr/class-midikeyboard/
◆ PluginError
General error return values
◆ MPTK_ClearReadQueue()
static int MidiPlayerTK.MidiKeyboard.MPTK_ClearReadQueue |
( |
| ) |
|
Empty the read queue
- Returns
◆ MPTK_CloseAllInp()
static void MidiPlayerTK.MidiKeyboard.MPTK_CloseAllInp |
( |
| ) |
|
Close all input device for receiving Midi message
◆ MPTK_CloseOut()
static void MidiPlayerTK.MidiKeyboard.MPTK_CloseOut |
( |
int |
index | ) |
|
Close device for output
- Parameters
-
◆ MPTK_CountInp()
static int MidiPlayerTK.MidiKeyboard.MPTK_CountInp |
( |
| ) |
|
Count of output device detected
- Returns
◆ MPTK_CountOut()
static int MidiPlayerTK.MidiKeyboard.MPTK_CountOut |
( |
| ) |
|
Count of input device detected
- Returns
◆ MPTK_ExcludeSystemMessage()
static void MidiPlayerTK.MidiKeyboard.MPTK_ExcludeSystemMessage |
( |
bool |
exclude | ) |
|
|
static |
Exclude system message
- Parameters
-
exclude | If true exclude all messages with status/command >= 0xF0. Default: true |
◆ MPTK_GetInpName()
static string MidiPlayerTK.MidiKeyboard.MPTK_GetInpName |
( |
int |
index | ) |
|
|
static |
Name of the device
- Parameters
-
- Returns
◆ MPTK_GetOutName()
static string MidiPlayerTK.MidiKeyboard.MPTK_GetOutName |
( |
int |
index | ) |
|
|
static |
Name of the device
- Parameters
-
- Returns
◆ MPTK_Init()
static bool MidiPlayerTK.MidiKeyboard.MPTK_Init |
( |
| ) |
|
|
static |
Plugins Init. Mandatory before executing any other functions of the plugins
◆ MPTK_OpenAllInp()
static void MidiPlayerTK.MidiKeyboard.MPTK_OpenAllInp |
( |
| ) |
|
Open or refresh all input device for receiving Midi message
◆ MPTK_OpenOut()
static void MidiPlayerTK.MidiKeyboard.MPTK_OpenOut |
( |
int |
index | ) |
|
Open device for output
- Parameters
-
◆ MPTK_PlayEvent()
static void MidiPlayerTK.MidiKeyboard.MPTK_PlayEvent |
( |
MPTKEvent |
evnt, |
|
|
int |
device |
|
) |
| |
|
static |
Play one midi event on the device with a thread so the call return immediately.
- Parameters
-
evnt | Midi event |
device | index of the device |
◆ MPTK_Read()
static MPTKEvent MidiPlayerTK.MidiKeyboard.MPTK_Read |
( |
| ) |
|
|
static |
Read a Midi message from all devices input connected
- Returns
◆ MPTK_SetRealTimeRead()
static void MidiPlayerTK.MidiKeyboard.MPTK_SetRealTimeRead |
( |
| ) |
|
|
static |
Enable read midi event from a callback. The event OnActionInputMidi is triggred when a Midi event is available.
if (enableRealTimeRead)
{
MidiKeyboard.OnActionInputMidi += ProcessEvent;
}
else
{
MidiKeyboard.OnActionInputMidi -= ProcessEvent;
}
Base class to send and receive Midi Message from a Midi keyboard connected to the desktop
Definition: MidiKeyboard.cs:15
static void MPTK_UnsetRealTimeRead()
Definition: MidiKeyboard.cs:310
static void MPTK_SetRealTimeRead()
Definition: MidiKeyboard.cs:270
◆ MPTK_SizeReadQueue()
static int MidiPlayerTK.MidiKeyboard.MPTK_SizeReadQueue |
( |
| ) |
|
Count of midi message waiting in the read queue
- Returns
◆ MPTK_UnsetRealTimeRead()
static void MidiPlayerTK.MidiKeyboard.MPTK_UnsetRealTimeRead |
( |
| ) |
|
|
static |
Disable read midi event from a callback. Mandatory before exiting the application, moreover with inside Unity editor to avoid crash.
◆ MPTK_Version()
static string MidiPlayerTK.MidiKeyboard.MPTK_Version |
( |
| ) |
|
|
static |
Get current version of the plugins
- Returns
◆ MPTK_LastStatus
Last status, value reset to OK after the call
◆ OnActionInputMidi
Action<MPTKEvent> MidiPlayerTK.MidiKeyboard.OnActionInputMidi |
|
static |
Event triggered when a Midi message is available.
if (enableRealTimeRead)
{
MidiKeyboard.OnActionInputMidi += ProcessEvent;
}
else
{
MidiKeyboard.OnActionInputMidi -= ProcessEvent;
}