feat: device groups, combined brightness and beat-driven sequences from main
Groups (registry of driver MACs, optionally scoped to a profile) become
the drivers' group membership, alongside z<zone id> for zones that still
name drivers. Zones play to their group_ids. Group and device routes for
driver config, brightness (global x groups x device x zone) and identify.
The push path takes main's message shape: select as a list, groups as a
filter (one GROUP_CMD per group, or JSON when a preset has a background),
short keys so JSON fits a frame.
Sequences follow main: lanes of {preset_id, beats} steps played to each
lane's groups, advanced by the mic's beats or a clock at
audio_simulated_bpm; a switch waits for the next beat or downbeat; sync-
phase, stop (clears the zone's drivers) and status. This replaces the
time-based per-zone sequencer and scene playback, as in main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
19fea0b0a1
commit
04b56c6ef2
12 files changed
+1922
-579
No files matched your search
+2
-1
@@ -5,6 +5,7 @@
|
||||
#include <strings.h>
|
||||
#include "api_util.h"
|
||||
#include "engine.h"
|
||||
#include "seqplay.h"
|
||||
#include "store.h"
|
||||
#include "web.h"
|
||||
|
||||
@@ -710,7 +711,7 @@ bool zones_route(httpd_req_t *req, int n, api_seg_t seg, esp_err_t *ret)
|
||||
return false;
|
||||
}
|
||||
if (!strcmp(seg[1], "engine") && !strcmp(seg[2], "status")) {
|
||||
*ret = api_json(req, "200 OK", engine_status(), true);
|
||||
*ret = api_json(req, "200 OK", seqplay_status(), true);
|
||||
return true;
|
||||
}
|
||||
if (method == HTTP_GET && !strcmp(seg[2], "content-fragment")) {
|
||||
|
||||
Reference in new issue
Block a user