Expand description
Encode MIDI messages into Universal MIDI Packets, and translate MIDI 1.0 channel-voice → MIDI 2.0 channel-voice (with default resolution up-scaling).
Functions§
- encode_
midi1_ channel_ voice - Encode a MIDI 1.0 channel-voice message into a 32-bit UMP (Message Type
0x2) on
group. ReturnsAudioError::UnsupportedFormatfor non channel-voice messages (system real-time/common are not MT 0x2). - encode_
midi2_ channel_ voice - Encode a MIDI 2.0 channel-voice message into a 64-bit UMP (Message Type 0x4)
on
group. - translate_
midi1_ to_ midi2 - 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).