[][src]Constant midi_consts::channel_event::NOTE_ON

pub const NOTE_ON: u8 = 0x90;

Event type of note on event.

A channel event of this type is as follows:

  • byte one: NOTE_ON | channel
  • byte two: note number (0-127)
  • byte three: velocity (how hard the key was pressed)

Remark

A note off event is often represented as a note on event with velocity 0.