[][src]Constant midi_consts::channel_event::PITCH_BEND_CHANGE

pub const PITCH_BEND_CHANGE: u8 = 0xE0;

Event type of a pitch bend event.

A channel event of this type is as follows:

  • byte one: PITCH_BEND_CHANGE | channel, where channel is the channel (0-16)
  • byte two: least significant byte of the pitch bend amount (0-127)
  • byte three: most significant byte of the pitch bend amount

By combining the two bytes that make up the pitch bend amount, you can get a u16 value that describes the pitch bend amount. Value 8192 means "no pitch change", lower values mean decrease in pitch and higher values mean increase in pitch.