Skip to main content

Module engine

Module engine 

Source
Expand description

Preset engine: processes abstract input events against preset config. Pure business logic — no hardware dependencies.

Structs§

EngineResult
Result of processing an input event.
TriggerResult
Result of processing incoming MIDI against triggers.

Enums§

ActionStep
A single step in an action sequence: either a MIDI message, a delay, or an LED change.
ButtonEvent
Abstract button event after long-press detection is resolved.
DisplayEvent
Display events emitted directly from actions.
DisplaySide
Which display to show an overlay on.
ReactiveResult
Result of a reactive CC match.
SystemAction
System-level actions that transcend MIDI output.

Functions§

process_analog
Process an analog input change. Returns MIDI + display event.
process_button
Process a button event. Updates state and returns MIDI/system/display actions.
process_encoder
Process an encoder change. Applies steps, returns MIDI + display event.
process_incoming_cc
Check incoming CC against preset’s reactive LED bindings.
process_triggers
Process incoming MIDI against preset triggers. Updates button state directly.