feat: sequences v2, bridges, and sim-controller

Rework sequences (engine, seqplay, envelope, API, web UI), add bridge
support, add the host sim-controller and rig simulation tests, and
update docs, presets and project tooling config.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Sonnet 5.5 committed 2026-11-10 17:47:27 +13:00
1 parent d664026ee5
commit 2543673bd8
68 files changed
+5761 -460

No files matched your search

+16 -4
View File
@@ -4,9 +4,9 @@
#include "cJSON.h"
#include "esp_err.h"
// Sequence playback, as main's util/sequence_playback.py: one sequence plays at a time in a zone.
// Each lane is a list of {preset_id, beats} steps sent to the lane's groups; a step lasts its number
// of beats. Beats come from the mic's beat detector while audio timing is on and the tempo is locked,
// Sequence playback, as main's util/sequence_playback.py: one sequence plays at a time in a zone, and
// one animation (a sequence played once) can play over it. Each lane is a list of steps sent to the
// lane's targets; a step lasts its beats (beat lanes, counted in quarter beats) or seconds (time lanes). Beats come from the mic's beat detector while audio timing is on and the tempo is locked,
// otherwise from a clock at settings.audio_simulated_bpm (default 120).
// Start the beat task (after beat_start)
@@ -18,7 +18,19 @@ esp_err_t seqplay_init(void);
// Call with the store locked.
esp_err_t seqplay_start(const char *seq_id, const char *zone_id, const char *profile_id, const char **msg);
// Stop; with clear, the zone's drivers drop their presets
// Play sequence seq_id once as an animation over whatever runs in the zone (zone_id NULL or "": the
// playing sequence's zone). wait: "now" (default), "beat" or "downbeat". The sequence underneath keeps
// time and skips the drivers the animation lights; when it ends they go back to the sequence's current
// step, or the zone's last preset. A new animation replaces the one playing. Call with the store locked.
esp_err_t seqplay_fire(const char *seq_id, const char *zone_id, const char *profile_id, const char *wait,
const char **msg);
// End the animation now and restore its drivers
void seqplay_overlay_stop(void);
// How long sequence seq_id plays once: *beats and *secs (each converted from the other at the current
// tempo); unchanged when it has no steps. Call with the store locked.
void seqplay_length(const char *seq_id, double *beats, double *secs);
// Stop the sequence and any animation; with clear, the zone's drivers drop their presets
void seqplay_stop(bool clear);
// Stop when seq_id is the one playing (it was edited or deleted)
void seqplay_stop_if(const char *seq_id);