You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6a6f6ed
Browse filesBrowse the repository at this point in the historyBrowse files
fix: make footswitch brightness gate hardware-only, like blackout
The gate (g_gate_level) was previously baked into make_frame()'s bri
computation, so it darkened both the WS preview and the real laser
output together. Since the gate defaults closed until the pedal or
brightness fader is touched, this meant the preview stayed black
after a restart - e.g. right after recalling a cue - until the
operator manually touched the brightness UI.
Now make_frame() always renders at full s.intensity; the gate is
applied only to the hardware-bound frame copy in laser_thread(),
exactly the same way blackout already was. Preview always shows the
true look immediately; only the real laser output can be gated dark
by the footswitch or blacked out.
Also updates README's /brightness/gate REST doc to reflect the
hardware-only behavior.
|`POST /blackout/<0\|1>`| Force *hardware* output dark (never affects the browser preview) |
172
-
|`POST /brightness/gate/<0\|1>`| Footswitch-style master brightness gate (affects preview + hardware): 1 = open instantly (renders the current brightness fader value), 0 = closed (fades to dark over `flash_release_ms`, or instantly if it's 0) — defaults closed until set. Never touches the `intensity` field itself |
172
+
|`POST /brightness/gate/<0\|1>`| Footswitch-style master brightness gate, *hardware-only* (never affects the browser preview - same treatment as blackout above): 1 = open instantly (renders the current brightness fader value), 0 = closed (fades to dark over `flash_release_ms`, or instantly if it's 0) — defaults closed until set. Never touches the `intensity` field itself |
173
173
|`POST /flash/<0\|1>`| Momentary flash: 1 = press (forces color to white + full brightness, remembering the prior values), 0 = release (always restores them instantly - `flash_release_ms` does not apply here, only to the footswitch gate above) |
174
174
|`POST /flash/release_ms/<v>`| Footswitch gate release fade time (0-2000ms), despite the name this only affects `/brightness/gate` closing, not flash's own release: `0` = instant cut, `>0` = fade brightness to 0 over this many ms instead of snapping to dark (default `200`) |
175
175
|`POST /mirror/x/<0\|1>`| Flip the output horizontally (mirror around center); 1 = mirrored, 0 = normal |
0 commit comments