Skip to main content

Module action

Module action 

Source
Expand description

Action executor: converts preset button actions into raw MIDI bytes.

Structs§

MidiMessage
A MIDI message ready to send (up to 3 bytes).

Enums§

EncoderDirection
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. raw is the ADC reading (0-4095).
encoder_cc
Generate a CC message for an encoder pulse. current_value is 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.