DJ Brake: note that the limiter is not the goal, with its own settings

Shown by default and always in English by default; both can be switched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-02 18:45:38 +01:00
1 parent 8919f0016c
commit d6be627f32
6 files changed
+43 -9

No files matched your search

+7 -1
View File
@@ -9,7 +9,7 @@
<title>DJ Brake</title>
<style>
html, body { height: 100%; margin: 0; background: #050608; color: #fff; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden; }
body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5vmin; text-align: center; -webkit-user-select: none; user-select: none; }
body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vmin; text-align: center; -webkit-user-select: none; user-select: none; }
/* comes on fast, goes out slowly: the eye catches it and it never flickers */
#wash, #halo, #core { transition: opacity .7s ease-out; opacity: 0; }
@@ -38,6 +38,8 @@
body.on #scale { color: #ffc9c4; }
body.on #word { color: #fff; transition: color .09s; }
body.on #sub { color: #ffd9d4; transition: color .09s; }
#hint { position: relative; max-width: 88vw; font-size: 2.8vmin; color: #6b7280; transition: color .5s; }
body.on #hint { color: #ffc9c4; transition: color .09s; }
/* while it lasts: slow breathing, one ring on each new hit, no hard flashing */
body.on #halo { animation: breathe 2.2s ease-in-out infinite; }
@@ -61,6 +63,7 @@
<div id="scale"><span style="left:0">−30</span><span style="left:20%">−24</span><span style="left:40%">−18</span><span style="left:60%">−12</span><span style="left:80%">−6</span><span style="left:100%">0 dB</span></div>
</div>
<div id="sub"></div>
<div id="hint"></div>
<script>
// Red light for the DJ: comes on while a limiter of a connected DSP is working.
// On its own on purpose: this page needs no PIN and gets nothing but this one state from the server.
@@ -70,6 +73,8 @@
? { on: "LIMITER", more: "Mehr Gas bringt nichts", lost: "Keine Verbindung", none: "Kein Limiter überwacht", quiet: "Kein Signal", left: " dB bis zum Limiter" }
: { on: "LIMITER", more: "More gain won't help", lost: "No connection", none: "No limiter being watched", quiet: "No signal", left: " dB to the limiter" };
var word = document.getElementById("word"), sub = document.getElementById("sub"), cover = document.getElementById("cover");
var hint = document.getElementById("hint");
var notes = { en: "The limiter is a safety net, not the target. Stay below it.", de: "Der Limiter ist die Sicherung, nicht das Ziel. Bleib darunter." };
var RANGE = 30, gap = 100, state = null, closest = null;
document.documentElement.lang = de ? "de" : "en";
@@ -101,6 +106,7 @@
var s = JSON.parse(e.data), was = state && state.on;
state = s;
bar(s.on ? 0 : s.room);
hint.textContent = !s.hint ? "" : s.hint === "auto" && de ? notes.de : notes.en;
if (s.room != null && (closest == null || s.room < closest)) closest = s.room;
if (s.on !== was || !s.ready) draw();
};