Skip to main content

encode_midi1_channel_voice

Function encode_midi1_channel_voice 

Source
pub fn encode_midi1_channel_voice(
    group: u8,
    msg: MidiMessage,
) -> Result<UmpPacket, AudioError>
Expand description

Encode a MIDI 1.0 channel-voice message into a 32-bit UMP (Message Type 0x2) on group. Returns AudioError::UnsupportedFormat for non channel-voice messages (system real-time/common are not MT 0x2).