void MIDI.SendNoteOn(byte channel, byte note, byte velocity)
1/29/26Less than 1 minute
Member of ML.SDK.MIDI
Method | Static
void MIDI.SendNoteOn(byte channel, byte note, byte velocity)
static void MIDI.SendNoteOn(byte channel, byte note, byte velocity);Parameters
| Parameter | Type | Description |
|---|---|---|
| channel | byte | The MIDI channel [0-15] |
| note | byte | The Note, [0-127] |
| velocity | byte | The note velocity [0-127] |
Returns
Summary
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.

