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

+8 -1
View File
@@ -14,11 +14,18 @@
typedef struct {
uint8_t data[ENV_BLOB_MAX + 1]; // data[0] is the entry count
size_t len;
bool v3; // preset records carry an extension block (fade, beat timing): a v3 frame
} env_blob_t;
// Envelope v3: v2, except that each preset record is followed by [ext_len][key, len, value]... Keys:
#define ENV_EXT_FADE 1 // u16: fade-in ms when the preset is selected
#define ENV_EXT_BEAT 2 // u8: 1 = durations are quarter beats, not ms
void env_blob_init(env_blob_t *b);
// Append one preset (short keys p,c,d,b,a,n1..n6 or long pattern/colors/...); false if it does not fit
// Append one preset (short keys p,c,d,b,a,n1..n6,f,tb or long pattern/colors/.../fade/beat_time); false if
// it does not fit. A preset with a fade or beat timing makes the blob v3; v2 and v3 records never share a
// blob, so mixing them also returns false (callers send what they have and start a new blob).
bool env_add_preset(env_blob_t *b, const char *name, const cJSON *preset);
// Append one select entry; step < 0 means none
bool env_add_select(env_blob_t *b, const char *device, const char *preset, int step);