Expand description
Action executor: converts preset button actions into raw MIDI bytes.
Structs§
- Midi
Message - A MIDI message ready to send (up to 3 bytes).
Enums§
- Encoder
Direction - Direction for encoder pulses.
Functions§
- action_
to_ midi - Convert a single Action to a raw MIDI message.
- analog_
cc - Generate a CC message for an analog input.
rawis the ADC reading (0-4095). - encoder_
cc - Generate a CC message for an encoder pulse.
current_valueis updated in place. Returns None if the encoder has no action configured or uses PresetScroll. - execute_
button_ press - Execute on_press actions for a button index. Returns up to 8 MIDI messages.