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

+2 -1
View File
@@ -190,7 +190,7 @@ function normalizeSequenceLanes(doc) {
length: s.length === 'animation' ? 'animation' : '',
targets: Array.isArray(s.targets) ? s.targets.map((x) => parseInt(String(x), 10)).filter((x) => x >= 0) : [],
beats: Math.max(0.25, parseFloat(String(s.beats != null ? s.beats : 1)) || 1),
seconds: Math.max(0.1, parseFloat(String(s.seconds != null ? s.seconds : 3)) || 3),
seconds: Math.max(0.05, parseFloat(String(s.seconds != null ? s.seconds : 3)) || 3),
group_ids: Array.isArray(s.group_ids)
? s.group_ids.map((x) => String(x).trim()).filter(Boolean)
: [],
@@ -890,6 +890,7 @@ async function saveSequenceEditor() {
// A one-shot (loop off) is always timed in seconds
advance_mode: (modeSel && modeSel.value === 'time') || (loopCb && !loopCb.checked) ? 'time' : 'beats',
loop: loopCb ? !!loopCb.checked : true,
...tlWindowFields(),
steps: nonEmpty.length === 1 ? nonEmpty[0] : [],
};