Skip to main content

Module packet

Module packet 

Source
Expand description

MIDI 2.0 Universal MIDI Packet (UMP) container + the MIDI 2.0 channel-voice message model.

A UMP is 1..=4 big-endian 32-bit words. The top nibble of word 0 is the Message Type (MT), which fixes the packet size; the next nibble is the Group (0..=15). UmpPacket is a fixed 4-word Copy container tagged with the number of valid words.

Structs§

UmpPacket
A fixed-capacity Universal MIDI Packet (1..=4 valid 32-bit words).

Enums§

Midi2ChannelVoice
A MIDI 2.0 channel-voice message (MT 0x4 payload), decoded into fields. Values are at MIDI 2.0 resolution (16-bit velocity, 32-bit controllers/bend).

Constants§

MT_DATA_64
Data / SysEx7 (MT 0x3) — 64-bit.
MT_DATA_128
Data / SysEx8 & Mixed Data Set (MT 0x5) — 128-bit.
MT_MIDI1_CHANNEL_VOICE
MIDI 1.0 channel voice (MT 0x2) — 32-bit.
MT_MIDI2_CHANNEL_VOICE
MIDI 2.0 channel voice (MT 0x4) — 64-bit.
MT_SYSTEM
System real-time / common (MT 0x1) — 32-bit.
MT_UTILITY
Utility messages (MT 0x0) — 32-bit.

Functions§

packet_word_count
Number of 32-bit words in a UMP for a given Message Type, per the UMP spec.