Skip to main content

decode_midi2_channel_voice

Function decode_midi2_channel_voice 

Source
pub fn decode_midi2_channel_voice(
    packet: UmpPacket,
) -> Result<Midi2ChannelVoice, AudioError>
Expand description

Decode a MIDI 2.0 channel-voice UMP (MT 0x4) into a Midi2ChannelVoice. Errors AudioError::UnsupportedFormat if the packet is not MT 0x4, or AudioError::MalformedAudio if it does not carry two words.