feat: sequence editor undo/redo, collapsible browser, playhead easing

Sequence editor: undo and redo, a collapsible browser with chips, search
over sequences too, name in the header row, Beats/Seconds dropdown, Delete
beside Save. Playhead eases between poll results. Lanes keep their phase
when a step ends late, so they no longer drift. The rig's default room is
two columns of bars facing each other, and the simulator has a read-only
debug hook for the playback checks.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Haiku 5.5 committed 2026-11-17 00:28:59 +13:00
1 parent a1c8ce853b
commit 02440be55d
7 files changed
+252 -109

No files matched your search

-23
View File
@@ -691,29 +691,6 @@ function addSeqTarget(t) {
return true;
}
/** One target per driver in the current zone's groups, in device-list order (for chases). */
function addTargetsPerDriver() {
const macs = [];
const gids = seqEd.zoneGroupIds.length ? seqEd.zoneGroupIds : Object.keys(seqEd.groupsMap);
gids.forEach((gid) => {
const g = seqEd.groupsMap[gid];
(g && Array.isArray(g.devices) ? g.devices : []).forEach((m) => {
const mac = String(m).toLowerCase().replace(/[^0-9a-f]/g, '');
if (mac.length === 12 && !macs.includes(mac)) macs.push(mac);
});
});
if (!macs.length) {
alert('No drivers found in this zone\'s groups.');
return;
}
const have = new Set(seqEd.targets.filter((t) => t.devices.length === 1 && !t.group_ids.length).map((t) => t.devices[0]));
macs.forEach((mac) => {
if (have.has(mac)) return;
const d = seqEd.devicesMap[mac];
addSeqTarget({ name: (d && d.name) || mac, devices: [mac] });
});
}
/** Clip "what plays" picker: presets or one-shot sequences (a rest too). Values: p:<id>, a:<id>, rest. */
function buildStepPlaySelect(step) {
const sel = document.createElement('select');