Expand description
Preset engine: processes abstract input events against preset config. Pure business logic — no hardware dependencies.
Structs§
- Engine
Result - Result of processing an input event.
- Trigger
Result - Result of processing incoming MIDI against triggers.
Enums§
- Action
Step - A single step in an action sequence: either a MIDI message, a delay, or an LED change.
- Button
Event - Abstract button event after long-press detection is resolved.
- Display
Event - Display events emitted directly from actions.
- Display
Side - Which display to show an overlay on.
- Reactive
Result - Result of a reactive CC match.
- System
Action - 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.