Module xMidiMessage

A higher-level MIDI message, as employed by various xLib classes .

The syntax expands upon the standard 3 bytes of a MIDI message, making it possible to pass around data with higher resolution

Test

ability to cache a message once turned into raw MIDI, (change it only as message properties are modified via setters)

See also

xMidiInput

Functions

__init (...) Class Methods
get_value1 () [[
split_mb (val) Static Methods
merge_mb (msb, lsb) provided with a 14-bit value, we return the MSB/LSB parts

Fields

self.message_type xMidiMessage.TYPE (required)
self.channel int, between 0-16 0 should be interpreted as 'undefined'
self.bit_depth xMidiMessage.BIT_DEPTH, indicates a multibyte message (only relevant for CC messages, as they can otherwise be ambivalent)
self.port_name string, source/target port


Functions

__init (...)
Class Methods

Parameters:

  • ...
get_value1 ()
[[
split_mb (val)
Static Methods provided with a 14-bit value, we return the MSB/LSB parts

Parameters:

  • val
merge_mb (msb, lsb)
provided with a 14-bit value, we return the MSB/LSB parts

Parameters:

  • msb
  • lsb return bit.rshift(msb,7) + lsb

Fields

self.message_type
xMidiMessage.TYPE (required)
self.channel
int, between 0-16 0 should be interpreted as 'undefined'
self.bit_depth
xMidiMessage.BIT_DEPTH, indicates a multibyte message (only relevant for CC messages, as they can otherwise be ambivalent)
self.port_name
string, source/target port
generated by LDoc 1.4.2