Files
led-controller/led-simulator/web/gallery.html
T
jimmyandClaude Haiku 5.5 cb51a726bc feat: pattern gallery as a preset editor; chase steps; sim split with the preset editor
- Pattern gallery shows the controller's presets, one at a time, with a dropdown, Save, Add preset, and
  the controller's field labels, delay limits and colour counts. Edits show in the preview; Save writes to
  the controller only.
- Presets are always timed in ms (beat_time is no longer sent to drivers); beats stay in sequences.
- Chase steps of 0 hold still; the marquee style is removed from the controller, the gallery and the
  driver (submodule commit 12a8e22).
- The rig's split pane opens the preset editor too (Rig / Presets switch and a Preset editor menu entry).
- Sequence editor, room layout and simulator controls from earlier work are included.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-17 07:16:51 +13:00

43 lines
1.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#0e0f12">
<title>Pattern Gallery</title>
<link rel="icon" href="data:,">
<link rel="stylesheet" href="/sim/styles.css">
<link rel="stylesheet" href="/sim/gallery.css">
</head>
<body>
<header class="topbar">
<div class="brand">
<span class="brand-mark" aria-hidden="true"></span>
<span class="brand-name">Pattern gallery</span>
</div>
<div class="chips"><span class="chip" id="g-count">loading…</span></div>
<div class="actions">
<label class="field-inline">LEDs <input id="g-leds" type="number" min="1" max="512" step="1" value="119"></label>
<label class="field-inline">Speed
<select id="g-speed">
<option value="0.25">¼×</option><option value="0.5">½×</option><option value="1" selected>1×</option>
<option value="2">2×</option><option value="4">4×</option>
</select>
</label>
<div class="pager">
<button type="button" id="g-prev" class="secondary" title="Previous pattern (←)">‹</button>
<select id="g-pick" title="Choose a pattern"></select>
<button type="button" id="g-next" class="secondary" title="Next pattern (→)">›</button>
</div>
<button type="button" id="g-add" class="secondary" title="Add a preset copied from the one shown">Add preset</button>
<button type="button" id="g-pause" class="secondary">Pause</button>
<button type="button" id="g-restart" class="secondary">Restart all</button>
<a class="button secondary" href="/sim/">Rig</a>
</div>
</header>
<div id="banner" class="banner" hidden></div>
<main class="gallery" id="gallery"></main>
<script type="module" src="/sim/gallery.js"></script>
</body>
</html>