Constants
Some of the Smart Multibox functions take special constants as input parameters. These are defined below.
Expression Pedal Constants
# Minimum and maximum values that are sent to the expression pedal callback
EXPPEDAL_MIN = 0
EXPPEDAL_MAX = 127
LED Constants
# Possible LED colors
LED_OFF = 0
LED_RED = 1
LED_GREEN = 2
LED_ORANGE = 3
MIDI Constants
Message Types
MIDI_NOTE_OFF = 0x80
MIDI_NOTE_ON = 0x90
MIDI_POLY_PRESSURE = 0xA0
MIDI_CC = 0xB0
MIDI_PC = 0xC0
MIDI_CHAN_PRESSURE = 0xD0
MIDI_PITCH_BEND = 0xE0
MIDI_SYSEX_START = 0xF0
MIDI_TIME_FRAME = 0xF1
MIDI_SONG_POS = 0xF2
MIDI_SONG_SEL = 0xF3
MIDI_TUNE_REQ = 0xF6
MIDI_SYSEX_END = 0xF7
MIDI_CLOCK = 0xF8
MIDI_START = 0xFA,
MIDI_CONTINUE = 0xFB
MIDI_STOP = 0xFC
MIDI_ACTIVE_SENSE = 0xFE
MIDI_RESET = 0xFF
Other Values
MIDI_MIN_VAL = 0
MIDI_MAX_VAL = 127
Port ID Numbers
MIDI_IN_1 = 0x0
MIDI_IN_2 = 0x1
MIDI_IN_3 = 0x2 # Bidirectional input on MIDI_OUT_1
MIDI_IN_USB = 0x8 # Used when the connected computer sends to the "SMB Internal" USB MIDI port
MIDI_OUT_1 = 0x10
MIDI_OUT_2 = 0x11
MIDI_OUT_3 = 0x12
MIDI_OUT_4 = 0x13
MIDI_OUT_5 = 0x14 # Bidirectional output on MIDI_IN_1
MIDI_OUT_USB = 0x18 # Used to send to the connected computer using the "SMB Internal" USB MIDI port
TRS Port Constants
# External switch IDs used for a 2 button external switch. 1 button switches always use EXTSWITCH_TIP
EXTSWITCH_TIP = 0
EXTSWITCH_RING = 1
# TRS port modes
TRS_EXPPEDAL = 0
TRS_EXTSWITCH = 1
No Comments