Files
qlcplus/patternstudio/static/index.html
T

152 lines
6.0 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">
<title>Mover Pattern Studio</title>
<link rel="stylesheet" href="/style.css">
</head>
<body>
<header>
<h1>Mover Pattern Studio</h1>
<label>Workspace
<select id="ws-select"></select>
</label>
<button id="ws-reload" title="Re-read the workspace from disk">Reload</button>
<span class="spacer"></span>
<label class="live">
<input type="checkbox" id="live-toggle"> Live Art-Net
</label>
<input id="live-ip" placeholder="IP" size="14" title="Art-Net destination (from workspace)">
<input id="live-uni" type="number" min="0" max="32767" value="0" size="4" title="Art-Net universe">
<span id="status"></span>
</header>
<main>
<aside id="controls">
<section class="card">
<h2>Pattern</h2>
<div class="row">
<label class="grow">Name <input id="pat-name" value="Mover Pattern"></label>
</div>
<div class="tabs" id="type-tabs">
<button data-type="efx" class="active">EFX (QLC+ shape)</button>
<button data-type="path">Path (waypoints → Sequence)</button>
</div>
</section>
<section class="card">
<h2>Fixtures <small id="fixture-hint"></small></h2>
<div id="fixture-list"></div>
</section>
<section class="card" id="efx-panel">
<h2>Shape</h2>
<div class="row">
<label class="grow">Algorithm
<select id="efx-algorithm"></select>
</label>
<label>Direction
<select id="efx-direction"><option>Forward</option><option>Backward</option></select>
</label>
</div>
<div id="efx-sliders"></div>
<div class="row" id="lissajous-row">
<label>X freq <input type="number" id="efx-x_frequency" min="0" max="5" value="1"></label>
<label>Y freq <input type="number" id="efx-y_frequency" min="0" max="5" value="1"></label>
<label>X phase <input type="number" id="efx-x_phase" min="0" max="359" value="0"></label>
<label>Y phase <input type="number" id="efx-y_phase" min="0" max="359" value="0"></label>
</div>
<div class="row">
<label>Run order
<select id="efx-run_order"><option>Loop</option><option>PingPong</option><option>SingleShot</option></select>
</label>
<label>Propagation
<select id="efx-propagation"><option>Parallel</option><option>Serial</option><option>Asymmetric</option></select>
</label>
<label class="check" title="EFX offsets each head from its own home position (exports Scene + EFX + Collection)">
<input type="checkbox" id="efx-relative"> Relative to home
</label>
</div>
<p class="hint">Tip: for a head hung the opposite way, set its direction to <b>Backward</b> — for Circle, Eight, Diamond, Leaf and Square this mirrors the shape in pan.</p>
</section>
<section class="card" id="path-panel" hidden>
<h2>Waypoints <small>click canvas to add · drag to move · Delete key removes</small></h2>
<table id="point-table">
<thead><tr><th>#</th><th>Pan</th><th>Tilt</th><th>Fade ms</th><th>Hold ms</th><th></th></tr></thead>
<tbody></tbody>
</table>
<div class="row">
<button id="pt-add">Add point</button>
<button id="pt-clear">Clear</button>
<label class="check"><input type="checkbox" id="path-closed" checked> Closed loop</label>
<label class="check"><input type="checkbox" id="path-smooth"> Smooth</label>
<label>Subdiv <input type="number" id="path-subdivisions" min="1" max="32" value="6"></label>
</div>
<div class="row">
<label>Run order
<select id="path-run_order"><option>Loop</option><option>PingPong</option><option>SingleShot</option></select>
</label>
<label>Direction
<select id="path-direction"><option>Forward</option><option>Backward</option></select>
</label>
<label>All fades <input type="number" id="path-all-fade" min="0" step="100" placeholder="ms"></label>
<label>All holds <input type="number" id="path-all-hold" min="0" step="100" placeholder="ms"></label>
</div>
<p class="hint" id="path-summary"></p>
</section>
<section class="card">
<h2>Write to workspace</h2>
<div class="row">
<label class="check"><input type="checkbox" id="exp-overwrite" checked> Replace same-named function</label>
<label class="check"><input type="checkbox" id="exp-button" checked> Add VC button</label>
</div>
<div class="row">
<label class="grow">Save as copy (optional) <input id="exp-out" placeholder="shows/new_show.qxw"></label>
</div>
<div class="row">
<button id="exp-go" class="primary">Write pattern</button>
<span id="exp-result" class="result"></span>
</div>
</section>
<section class="card">
<h2>Pattern library <small>patterns/*.json</small></h2>
<div class="row">
<button id="lib-save">Save current</button>
</div>
<ul id="lib-list" class="list"></ul>
</section>
<section class="card">
<h2>In this workspace <small>EFX &amp; pan/tilt Sequences</small></h2>
<ul id="fn-list" class="list"></ul>
</section>
</aside>
<section id="stage">
<div class="toolbar">
<button id="play" title="Space">Pause</button>
<label>Speed
<select id="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>
<label class="check"><input type="checkbox" id="show-trails" checked> Trails</label>
<label class="check"><input type="checkbox" id="show-degrees" checked> Degrees</label>
<span id="time"></span>
<span class="spacer"></span>
<span class="hint" id="canvas-hint"></span>
</div>
<canvas id="canvas"></canvas>
</section>
</main>
<script src="/app.js"></script>
</body>
</html>