Skip to main content

Module pitch_bend

Module pitch_bend 

Source
Expand description

MIDI 1.0 Pitch Bend (0xEn) channel-voice message — 14-bit value.

The 14-bit value is transmitted as two 7-bit bytes, LSB first: [0xEn, lsb, msb] where value = (msb << 7) | lsb. Center (no bend) is 8192 (lsb = 0x00, msb = 0x40).

Structs§

PitchBend
A MIDI 1.0 Pitch Bend message. value is the raw 14-bit unsigned value (0..=16383); 8192 is center.

Constants§

CENTER
14-bit center value (no bend).
MAX
Maximum 14-bit value.
STATUS_PITCH_BEND
Pitch Bend status nibble (0xEn).