pub fn translate_midi1_to_midi2(
msg: MidiMessage,
) -> Result<Midi2ChannelVoice, AudioError>Expand description
Translate a MIDI 1.0 channel-voice message to the MIDI 2.0 channel-voice model, applying default resolution up-scaling (7-bit→16-bit velocity, 7-bit→32-bit controllers/pressure, 14-bit→32-bit pitch bend).
Per the MIDI 2.0 default translation, a MIDI 1.0 Note On with velocity 0 is
translated to a MIDI 2.0 Note Off. Returns AudioError::UnsupportedFormat
for non channel-voice input.