UMP

Defines a basic Universal MIDI Packet.

Extra data (64 bit and larger) are stored in separate fields.

Original format is in little endian, and the current implementation is formed around that. If you need big endian support for some MCU, then you can implement it. :)

Constructors

this
this(ubyte msgType, ubyte group, ubyte status, ubyte channel, ubyte val0, ubyte val1)

Creates a UMP with two 8 bit fields.

this
this(ubyte group, ubyte channel, ushort val)

Creates a MIDI 1.0 compatible pitch-bend command.

Members

Aliases

index
alias index = note
Undocumented in source.
program
alias program = note
Undocumented in source.
velocity
alias velocity = value
Undocumented in source.

Functions

bend
ushort bend()

Returns the pitch bend value of this packet.

channel
ubyte channel()

Return the channel number of this packet.

channel
ubyte channel(ubyte val)

Sets the channel number of this packet.

group
ubyte group()

Returns the group of the packet.

group
ubyte group(ubyte val)

Sets the group of the packet.

msgType
ubyte msgType()

Returns the message type of the packet.

note
ubyte note()

Returns the note number of this packet.

note
ubyte note(ubyte val)

Sets the note number of this packet.

status
ubyte status()

Returns the status value of the field, or 0 if message type hasn't defined it.

value
ubyte value()

Returns the value of this packet.

value
ubyte value(ubyte val)

Sets the value of this packet.

Unions

__anonymous
union __anonymous
Undocumented in source.

Meta