Skip to main content

Module sequencer

Module sequencer 

Source
Expand description

Parameter-lock step sequencer

§Parameter-lock step sequencer

A sample-accurate, telemetry-driven sequencer for scheduling parameter changes over time. Supports parameter-lock (p-lock) style programming: each step specifies exactly which parameters change and to what value; unlisted parameters are untouched.

§Concepts

§Clock source

The sequencer is designed to be driven by the audio thread’s CLOCK_TICK telemetry events. Each tick carries (sample_pos, sample_rate, tempo), which the sequencer uses to determine step boundaries with sample accuracy.

§Integration

Use PatchbayControl::attach_sequencer or PatchbayEngine::attach_sequencer to spawn the sequencer task and start listening for clock ticks. A SequencerHandle is returned for external control (start/stop/pattern select).

Structs§

ParameterTarget
A single parameter target within a snapshot or step.
Pattern
A sequence of steps forming a pattern.
SequenceStep
A single step in a sequencer pattern.
SequencerHandle
Handle for controlling a SnapshotSequencer that lives inside a tokio task.
Snapshot
A named collection of parameter values — a complete preset “scene”.
SnapshotSequencer
The core sequencer state machine.

Enums§

SequencerCommand
Commands sent to a running sequencer from another thread.
StepPlayMode
Playback mode for a pattern.