Skip to main content

Module wire

Module wire 

Source
Expand description

Canonical MIDI channel-message wire bytes.

The status-nibble + data-byte layout of a ChannelMessage is fixed by the MIDI spec; SMF writing and wasm frame encoding share this implementation.

Functionsยง

decode_channel
Decode a channel message from its (status, data) wire bytes: the inverse of encode_channel.
encode_channel
Encode a channel message to its (status, data) wire bytes.