Skip to main content

encode_channel

Function encode_channel 

Source
pub fn encode_channel(message: &ChannelMessage) -> (u8, Vec<u8>)
Expand description

Encode a channel message to its (status, data) wire bytes.

Pitch-bend’s two data bytes are masked to 7 bits each, per the MIDI spec.