MIDI
1/29/26About 1 min
namespace ML.SDK
Class | Static
MIDI
namespace ML.SDK
{
static class MIDI
}Summary
Allows to send and receive MIDI messages.
Events
| Event | Description |
|---|---|
| OnReceivedMIDI | Fires when a MIDI message is received. |
Properties
| Property | Desciption |
|---|---|
| InboundMIDIEnabled | Is the inbound MIDI communication enabled with a device. |
| OutboundMIDIEnabled | Is the outbound MIDI communication enabled with a device. |
Static Methods
| Method | Description |
|---|---|
| SendMIDI(MIDIMessage) | Send a MIDI message. |
| SendMIDI(MIDIFunction, byte, byte, byte) | Create and send a MIDI message. |
| SendNoteOff(byte, byte, byte) | Send a MIDI Note-Off message. The MIDI notes usually start from number 21 for note A0 and end in 108 for note C8, considering an 88 key piano.However, you can send 0 for note C0 and 127 for note G9.The velocity dictates how hard/fast the specific key is pressed for piano.When a note pressed fast, the mechanical hammer also hits hard on that note’s string.Which results in louder sound. Similar comparisons can be made for other instruments as well.Like, how hard a Guitar string is pulled, or how fast a bow of violin is moved over a string. |
| SendNoteOn(byte, byte, byte) | Send a MIDI Note-On Message. The MIDI notes usually start from number 21 for note A0 and end in 108 for note C8, considering an 88 key piano.However, you can send 0 for note C0 and 127 for note G9.The velocity dictates how hard/fast the specific key is pressed for piano.When a note pressed fast, the mechanical hammer also hits hard on that note’s string.Which results in louder sound. Similar comparisons can be made for other instruments as well.Like, how hard a Guitar string is pulled, or how fast a bow of violin is moved over a string. |

