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:
jimmyandClaude Opus 5.5 committed 2026-11-03 18:09:42 +13:00
1 parent 19fea0b0a1
commit 04b56c6ef2
12 files changed
+1922 -579

No files matched your search

+2
View File
@@ -32,6 +32,7 @@
#include "ws.h"
#include "api.h"
#include "engine.h"
#include "seqplay.h"
#include "rel.h"
#include "web.h"
#include "audio.h"
@@ -380,4 +381,5 @@ void app_main(void)
ESP_ERROR_CHECK(rel_init());
ESP_ERROR_CHECK(engine_init());
ESP_ERROR_CHECK(mic_start());
ESP_ERROR_CHECK(seqplay_init());
}