feat: sequence window, finer timeline, zone brightness to Wi-Fi drivers

- A sequence's length is a fixed window (window_beats / window_seconds), not its presets.
  The timeline is exactly the window long; clips past it are cut on save.
- The ruler adds finer ticks when zoomed in; Snap has Auto (follows the zoom), 0.25 s and 0.05 s.
  Steps and the window go down to 50 ms.
- Ctrl+wheel zooms around the pointer; the zoom buttons zoom around the last pointer position.
- Sequence start and the zone brightness slider reach Wi-Fi drivers (matched by hostname or MAC).
- A preset select with brightness also sends the brightness to Wi-Fi drivers, as ESP-NOW does.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Haiku 5.5 committed 2026-11-16 21:22:17 +13:00
1 parent 581b751904
commit a1c8ce853b
21 files changed
+419 -318

No files matched your search

+3 -1
View File
@@ -420,7 +420,9 @@ int api_effective_brightness(const char *mac, int zone_b)
cJSON_ArrayForEach(it, cJSON_GetObjectItem(g, "devices"))
{
char m[13];
if (api_mac(it, m) && !strcmp(m, mac)) {
// A Wi-Fi driver is listed by its hostname, not a MAC
bool same = (api_mac(it, m) && !strcmp(m, mac)) || (cJSON_IsString(it) && !strcmp(it->valuestring, mac));
if (same) {
v *= clamp255(cJSON_GetObjectItem(g, "output_brightness"), 255) / 255.0;
double c = clamp255(cJSON_GetObjectItem(g, "max_brightness"), 255) / 255.0;
if (c < cap) {