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:
1 parent
d664026ee5
commit
2543673bd8
68 files changed
+5761
-460
No files matched your search
@@ -23,5 +23,15 @@ int main(void)
|
||||
env_add_select(&sb, "roof", "8", 12);
|
||||
hex(out, env_frame(out, 128, &pb, NULL));
|
||||
hex(out, env_frame(out, -1, NULL, &sb));
|
||||
// v3: presets with a fade or beat timing
|
||||
cJSON *p3 = cJSON_Parse("{\"p\":\"hit\",\"c\":[\"#ffffff\"],\"d\":0,\"b\":255,\"a\":false,\"n1\":10,\"n3\":400,\"f\":250,\"tb\":1}");
|
||||
cJSON *p4 = cJSON_Parse("{\"pattern\":\"keyframes\",\"colors\":[\"#ff0000\",\"#0000ff\"],\"delay\":800,\"fade\":1200}");
|
||||
env_blob_t vb;
|
||||
env_blob_init(&vb);
|
||||
env_add_preset(&vb, "9", p3);
|
||||
env_add_preset(&vb, "10", p4);
|
||||
hex(out, env_frame(out, -1, &vb, NULL));
|
||||
// A v2 preset does not join a v3 blob
|
||||
printf("%d\n", env_add_preset(&vb, "7", p) ? 1 : 0);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user