Add BetterDSPControl: web UI, desktop app and Pi writer for t.racks DSP 204/408
- Python stdlib server with SSE live updates, PIN login, remote access - Vanilla JS web UI (English/German): mixer, channel, routing, links, limiter calculator - Preset file export/import with undo, settings backup, lock for the desktop app - Network (TCP 9761) and USB HID transport (Windows, macOS, Linux) - Desktop app via pywebview, Raspberry Pi SD card writer, simulator and protocol tests - README with import guide for Claude Code, CLAUDE.md, protocol documentation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ce02ae65a9
commit
fe13f261f7
31 files changed
+6445
No files matched your search
+1729
File diff suppressed because it is too large.
Load diff
+323
@@ -0,0 +1,323 @@
|
||||
"use strict";
|
||||
// UI language. English is the default and the language of the source; DE holds the German texts.
|
||||
// t("Text with {name}", { name }) translates and fills placeholders; trMsg() does the same for
|
||||
// messages coming from the server or the DSP connection (some of which contain variable parts).
|
||||
// Chosen per device under ⚙ → Language (stored in the browser); the desktop app also tells the server.
|
||||
|
||||
const LANGS = { en: "English", de: "Deutsch" };
|
||||
const LANG = (() => { try { return localStorage.getItem("dsp.lang") === "de" ? "de" : "en"; } catch { return "en"; } })();
|
||||
const LOCALE = LANG === "de" ? "de-AT" : "en-GB";
|
||||
|
||||
const DE = {
|
||||
" (end of range reached)": " (Bereichsende erreicht)",
|
||||
" Log out": " Abmelden",
|
||||
"+ Add amplifier": "+ Verstärker hinzufügen",
|
||||
"+ New amplifier…": "+ Neuer Verstärker…",
|
||||
"20 Hz … 20 kHz, e.g. 1.2k": "20 Hz … 20 kHz, z. B. 1.2k",
|
||||
"A backup is made automatically before every import. Last backup: {last}.": "Vor jedem Import wird automatisch gesichert. Letzte Sicherung: {last}.",
|
||||
"a change on one channel applies to the whole group. Name, routing and mix levels stay per channel. ": "eine Änderung an einem Kanal gilt für die ganze Gruppe. Name, Routing und Mix-Pegel bleiben je Kanal. ",
|
||||
"Access (PIN)": "Zugang (PIN)",
|
||||
"Add": "Hinzufügen",
|
||||
"Added": "Hinzugefügt",
|
||||
"All bands flat": "Alle Bänder flach",
|
||||
"All flat": "Alle flach",
|
||||
"Allow phones & tablets": "Handy & Tablet erlauben",
|
||||
"Amplifier": "Verstärker",
|
||||
"Amplifier clips – the limiter engages {db} dB too late": "Verstärker clippt – Limiter greift {db} dB zu spät",
|
||||
"Amplifier is not rated for {ohm} Ω": "Verstärker ist für {ohm} Ω nicht spezifiziert",
|
||||
"Amplifier −1 dB": "Verstärker −1 dB",
|
||||
"Amplifiers": "Verstärker",
|
||||
"App settings": "App-Einstellungen",
|
||||
"Apply": "Übernehmen",
|
||||
"Assign an amplifier first": "Erst Verstärker zuordnen",
|
||||
"Assumes the amplifier’s gain control turned fully up (or as entered).": "Voraussetzung: Gain-Regler am Verstärker auf Rechtsanschlag (bzw. so wie eingetragen).",
|
||||
"At least one power rating is missing.": "Mindestens eine Leistungsangabe fehlt.",
|
||||
"Automatic": "Automatisch",
|
||||
"Back up…": "Sichern…",
|
||||
"Backup": "Sicherung",
|
||||
"Both DSPs can be connected at the same time – switch between them at the top. ": "Beide DSPs können gleichzeitig verbunden sein – oben zwischen ihnen umschalten. ",
|
||||
"Calibration": "Kalibrierung",
|
||||
"Cancel": "Abbrechen",
|
||||
"Change PIN": "PIN ändern",
|
||||
"Channel": "Kanal",
|
||||
"Channel name": "Kanalname",
|
||||
"Choose channel": "Kanal wählen",
|
||||
"Close": "Schließen",
|
||||
"Compressor": "Kompressor",
|
||||
"Connect": "Verbinden",
|
||||
"Connect automatically": "Automatisch verbinden",
|
||||
"Connecting to {where}…": "Verbinde mit {where}…",
|
||||
"Connecting…": "Verbinde…",
|
||||
"Connection": "Verbindung",
|
||||
"connection closed": "Verbindung beendet",
|
||||
"Current PIN": "Aktuelle PIN",
|
||||
"Current PIN is wrong": "Aktuelle PIN ist falsch",
|
||||
"dBu = 20 · log₁₀(U / 0.775 V).": "dBu = 20 · log₁₀(U / 0,775 V).",
|
||||
"Decrease": "Verringern",
|
||||
"Delete": "Löschen",
|
||||
"Delete amplifier": "Verstärker löschen",
|
||||
"Delete {name}?": "{name} löschen?",
|
||||
"desktop app only": "nur in der Desktop-App",
|
||||
"device not loaded": "Gerät nicht geladen",
|
||||
"Device reports: ": "Gerät meldet: ",
|
||||
"Devices": "Geräte",
|
||||
"Devices ({n}), amplifier and limiter data, PIN and remote access will be replaced by the backup from {when}. The presets inside the DSPs stay unchanged.": "Geräte ({n}), Verstärker- und Limiter-Daten, PIN und Fernzugriff werden durch die Sicherung vom {when} ersetzt. Die Presets in den DSPs bleiben unverändert.",
|
||||
"Disconnect": "Trennen",
|
||||
"Disconnected": "Getrennt",
|
||||
"Drag a fader by its knob · snaps at 0 dB · double-tap the knob = 0 dB · tap the dB value to type one · tap the name = edit channel": "Fader am Knopf ziehen · rastet bei 0 dB ein · Doppeltipp auf den Knopf = 0 dB · dB-Wert antippen zum Eintippen · Name antippen = Kanal bearbeiten",
|
||||
"Drag the points in the curve · gain snaps at 0 dB": "Punkte in der Kurve ziehen · Gain rastet bei 0 dB ein",
|
||||
"DSP closed the connection": "DSP hat die Verbindung beendet",
|
||||
"DSP is not connected": "DSP ist nicht verbunden",
|
||||
"DSP not responding": "DSP antwortet nicht",
|
||||
"e.g. 1.4": "z. B. 1.4",
|
||||
"e.g. 32": "z. B. 32",
|
||||
"e.g. 4.0": "z. B. 4.0",
|
||||
"e.g. Crown XLS 1502": "z. B. Crown XLS 1502",
|
||||
"e.g. DSP 204 stage": "z. B. DSP 204 Bühne",
|
||||
"Edit": "Bearbeiten",
|
||||
"Edit amplifier": "Verstärker bearbeiten",
|
||||
"Edit channel": "Kanal bearbeiten",
|
||||
"Enter PIN": "PIN eingeben",
|
||||
"Enter value": "Wert eingeben",
|
||||
"EQ curve – drag the points": "EQ-Kurve – Punkte ziehen",
|
||||
"Error": "Fehler",
|
||||
"Error: ": "Fehler: ",
|
||||
"Export": "Exportieren",
|
||||
"Export / import preset": "Preset exportieren / importieren",
|
||||
"Export saves the DSP’s current state ({name}) to a file. Import loads a file into the active state – stored presets (U01 …) stay unchanged.": "Exportieren speichert den aktuellen Zustand des DSP ({name}) als Datei. Importieren lädt eine Datei in den aktiven Zustand – gespeicherte Presets (U01 …) bleiben unverändert.",
|
||||
"exported": "exportiert",
|
||||
"File is too large": "Datei ist zu groß",
|
||||
"File…": "Datei…",
|
||||
"Filter type": "Filtertyp",
|
||||
"First device found": "Erstes gefundenes Gerät",
|
||||
"Frequency": "Frequenz",
|
||||
"Gain": "Verstärkung",
|
||||
"Gain (dB)": "Verstärkung (dB)",
|
||||
"Gain {v} dB": "Verstärkung {v} dB",
|
||||
"Graphic EQ · 31 bands": "Grafischer EQ · 31 Bänder",
|
||||
"High- / low-pass": "Hoch- / Tiefpass",
|
||||
"High-pass": "Hochpass",
|
||||
"Highs": "Hochton",
|
||||
"If the amplifier has a gain control, the value applies with it turned fully up.": "Hat der Verstärker einen Gain-Regler, gilt der Wert bei Rechtsanschlag.",
|
||||
"If the macOS firewall is on, it asks the first time – choose “Allow”.": "Ist die macOS-Firewall aktiv, fragt sie beim ersten Einschalten – dort „Erlauben“ wählen.",
|
||||
"Impedance": "Impedanz",
|
||||
"Import": "Importieren",
|
||||
"Import incomplete": "Import unvollständig",
|
||||
"Import preset": "Preset importieren",
|
||||
"Importing… (a few seconds)": "Importiere… (einige Sekunden)",
|
||||
"Import…": "Importieren…",
|
||||
"in ms, or metres with “m” (e.g. 2.5m)": "in ms, oder Meter mit „m“ (z. B. 2.5m)",
|
||||
"Increase": "Erhöhen",
|
||||
"Input": "Eingang",
|
||||
"Input sensitivity (V RMS)": "Eingangsempfindlichkeit (V RMS)",
|
||||
"Input →": "Eingang →",
|
||||
"Inputs": "Eingänge",
|
||||
"into 2 Ω": "an 2 Ω",
|
||||
"into 4 Ω": "an 4 Ω",
|
||||
"into 8 Ω": "an 8 Ω",
|
||||
"IP address": "IP-Adresse",
|
||||
"IP address missing": "IP-Adresse fehlt",
|
||||
"IP of this computer": "IP dieses PCs",
|
||||
"Its assignments will be removed.": "Die Zuordnungen werden entfernt.",
|
||||
"Language": "Sprache",
|
||||
"Level": "Pegel",
|
||||
"Level for {ch}": "Pegel für {ch}",
|
||||
"Limit to": "Limiter auf",
|
||||
"Limiter 0 dB equals at the output": "Limiter 0 dB entspricht am Ausgang",
|
||||
"Limiter active": "Limiter aktiv",
|
||||
"Limiter tab": "Limiter-Tab",
|
||||
"Link": "Verknüpfen",
|
||||
"Link channels": "Kanäle verknüpfen",
|
||||
"Link {names}? They all take over the settings of {first} (names and routing stay).": "{names} verknüpfen? Alle übernehmen dabei die Einstellungen von {first} (Namen und Routing bleiben).",
|
||||
"Link {names}? They all take over the settings of {first} (names stay).": "{names} verknüpfen? Alle übernehmen dabei die Einstellungen von {first} (Namen bleiben).",
|
||||
"Linked channels share all settings (gain, delay, filters, EQ, dynamics, mute) – ": "Verknüpfte Kanäle teilen sich alle Einstellungen (Gain, Delay, Filter, EQ, Dynamik, Mute) – ",
|
||||
"Linked with {list} – changes apply to all of them (except name, routing and mix levels).": "Verknüpft mit {list} – Änderungen gelten für alle (außer Name, Routing und Mix-Pegel).",
|
||||
"Linked with {list} – changes apply to all of them (except the name).": "Verknüpft mit {list} – Änderungen gelten für alle (außer Name).",
|
||||
"Linked: ": "Verknüpft: ",
|
||||
"Load on channel": "Last am Kanal",
|
||||
"Load {what} into the active state? The current state is backed up automatically first and can be brought back via File → “Undo import”. Stored presets stay unchanged – to keep it, store it into a memory slot with “Save” afterwards.": "{what} in den aktiven Zustand laden? Der aktuelle Zustand wird vorher automatisch gesichert und lässt sich über Datei → „Import rückgängig“ zurückholen. Gespeicherte Presets bleiben unverändert – zum Behalten danach mit „Speichern“ in einen Speicherplatz schreiben.",
|
||||
"Loading configuration…": "Lade Konfiguration…",
|
||||
"Loading the configuration from the DSP…": "Lade Konfiguration vom DSP…",
|
||||
"Lock": "Sperren",
|
||||
"Lock (view only)": "Sperren (nur noch ansehen)",
|
||||
"Locked": "Gesperrt",
|
||||
"Locked – click to unlock": "Gesperrt – zum Entsperren klicken",
|
||||
"Locked – unlock at the top right to make changes": "Gesperrt – zum Ändern oben rechts entsperren",
|
||||
"Locked – unlock with the PIN to make changes": "Gesperrt – zum Ändern mit der PIN entsperren",
|
||||
"Locked – values are view-only": "Gesperrt – Werte nur noch ansehen",
|
||||
"login required": "Anmeldung erforderlich",
|
||||
"Low-pass": "Tiefpass",
|
||||
"Lower value": "Kleinerer Wert",
|
||||
"Memory slot": "Speicherplatz",
|
||||
"Mids": "Mitten",
|
||||
"Model": "Modell",
|
||||
"Name (max. 14 characters)": "Name (max. 14 Zeichen)",
|
||||
"Name is full (max. 8 characters, wide letters count more)": "Name ist voll (max. 8 Zeichen, breite Buchstaben zählen mehr)",
|
||||
"Network": "Netzwerk",
|
||||
"New amplifier": "Neuer Verstärker",
|
||||
"New device": "Neues Gerät",
|
||||
"New PIN": "Neue PIN",
|
||||
"Next channel": "Nächster Kanal",
|
||||
"No amplifier assigned": "Kein Verstärker zugeordnet",
|
||||
"No backup available": "Keine Sicherung vorhanden",
|
||||
"No channels linked.": "Keine Kanäle verknüpft.",
|
||||
"no crossover": "ohne Weiche",
|
||||
"No DSP found via USB": "Kein DSP per USB gefunden",
|
||||
"No DSP found via USB – check the cable": "Kein DSP per USB gefunden – Kabel prüfen",
|
||||
"no HP": "ohne HP",
|
||||
"Not a DSP Control preset file": "Keine Preset-Datei von DSP Control",
|
||||
"Not a DSP Control settings backup": "Keine Einstellungs-Sicherung von DSP Control",
|
||||
"Not assigned to any output": "Keinem Ausgang zugeordnet",
|
||||
"not connected": "nicht verbunden",
|
||||
"Not connected.": "Nicht verbunden.",
|
||||
"Off": "Aus",
|
||||
"Off (bypass)": "Aus (Bypass)",
|
||||
"Off – only this window has access.": "Aus – nur dieses Fenster hat Zugriff.",
|
||||
"On": "Ein",
|
||||
"Open channel": "Kanal öffnen",
|
||||
"Open on a phone in the same Wi-Fi:": "Am Handy im selben WLAN öffnen:",
|
||||
"Other devices log in with the PIN (changeable below). Only runs while this app is open. ": "Andere Geräte melden sich mit der PIN an (unten änderbar). Läuft nur, solange diese App offen ist. ",
|
||||
"Output ↓": "Ausgang ↓",
|
||||
"Outputs": "Ausgänge",
|
||||
"Overwrites the selected memory slot in the DSP.": "Überschreibt den gewählten Speicherplatz im DSP.",
|
||||
"Parametric EQ": "Parametrischer EQ",
|
||||
"PIN (same as on the phone)": "PIN (wie am Handy)",
|
||||
"PIN changed – other devices were logged out": "PIN geändert – andere Geräte wurden abgemeldet",
|
||||
"PIN for remote access": "PIN für Fernzugriff",
|
||||
"Please log in": "Bitte anmelden",
|
||||
"Preset exported": "Preset exportiert",
|
||||
"Preset file": "Preset-Datei",
|
||||
"Preset imported": "Preset importiert",
|
||||
"Preset U{n} recalled": "Preset U{n} geladen",
|
||||
"Preset {name} imported": "Preset {name} importiert",
|
||||
"Previous channel": "Vorheriger Kanal",
|
||||
"Previous state restored": "Vorheriger Zustand wiederhergestellt",
|
||||
"Rated RMS power per channel (datasheet, empty = not specified)": "Nennleistung RMS pro Kanal (Datenblatt, leer = nicht angegeben)",
|
||||
"Reading the state from the DSP…": "Lese Zustand vom DSP…",
|
||||
"Recall": "Laden",
|
||||
"Recall preset": "Preset laden",
|
||||
"Recall preset…": "Preset laden…",
|
||||
"Recall {name} (U{n})? Unsaved changes will be lost.": "{name} (U{n}) laden? Nicht gespeicherte Änderungen gehen verloren.",
|
||||
"Reference level in dBu": "Referenzpegel in dBu",
|
||||
"Reference level · ": "Bezugspegel · ",
|
||||
"release ≈ 16 × attack (shorter pumps). “Auto” picks the band preset matching this channel’s high-pass.": "Release ≈ 16 × Attack (zu kurz pumpt). „Auto“ wählt das Band-Preset passend zum Hochpass dieses Kanals.",
|
||||
"Remote access": "Fernzugriff",
|
||||
"Remote access (web server)": "Fernzugriff (Webserver)",
|
||||
"Remove": "Entfernen",
|
||||
"Remove device": "Gerät entfernen",
|
||||
"Remove {name} from the list?": "{name} aus der Liste entfernen?",
|
||||
"Repeat": "Wiederholen",
|
||||
"Reset": "Zurücksetzen",
|
||||
"Reset EQ": "EQ zurücksetzen",
|
||||
"Reset GEQ": "GEQ zurücksetzen",
|
||||
"Restore": "Wiederherstellen",
|
||||
"Restore settings": "Einstellungen wiederherstellen",
|
||||
"Restore the state from {last}?": "Den Zustand vom {last} wiederherstellen?",
|
||||
"Restore…": "Wiederherstellen…",
|
||||
"Restoring…": "Stelle wieder her…",
|
||||
"Routing matrix": "Routing-Matrix",
|
||||
"Rule of thumb: attack ≈ one period of the lowest frequency (faster distorts the bass), ": "Faustregel: Attack ≈ eine Schwingung der tiefsten Frequenz (zu schnell verzerrt Bässe), ",
|
||||
"Save": "Speichern",
|
||||
"Saved": "Gespeichert",
|
||||
"Saved device (not plugged in)": "Gespeichertes Gerät (nicht angesteckt)",
|
||||
"Saves devices, amplifiers & limiter calculator, PIN and remote access to a file. ": "Sichert Geräte, Verstärker & Limiter-Rechner, PIN und Fernzugriff in eine Datei. ",
|
||||
"Search again": "Neu suchen",
|
||||
"Security": "Sicherheit",
|
||||
"Sensitivity": "Empfindlichkeit",
|
||||
"Sensitivity = input voltage for full power (e.g. 0.775 V or 1.4 V). ": "Empfindlichkeit = Eingangsspannung für volle Leistung (z. B. 0.775 V oder 1.4 V). ",
|
||||
"Sensitivity is missing.": "Empfindlichkeit fehlt.",
|
||||
"Sensitivity {v} V": "Empfindlichkeit {v} V",
|
||||
"Server not reachable": "Server nicht erreichbar",
|
||||
"Set": "setzen",
|
||||
"Set all 31 bands to 0 dB?": "Alle 31 Bänder auf 0 dB setzen?",
|
||||
"Set all PEQ bands of this channel to 0 dB and clear bypass?": "Alle PEQ-Bänder dieses Kanals auf 0 dB setzen und Bypass aufheben?",
|
||||
"set the threshold to 0 dB, turn up until the limiter engages and measure the output voltage with a multimeter (AC). ": "Threshold 0 dB, Pegel hochdrehen bis der Limiter greift und die Ausgangsspannung mit einem Multimeter (AC) messen. ",
|
||||
"Settings": "Einstellungen",
|
||||
"Settings backed up": "Einstellungen gesichert",
|
||||
"Settings restored": "Einstellungen wiederhergestellt",
|
||||
"Shown is the continuous sine power (RMS) once the limiter engages – music is well below that on average. ": "Angezeigt wird die Sinus-Dauerleistung (RMS), sobald der Limiter greift – Musik liegt im Mittel deutlich darunter. ",
|
||||
"Snaps at 0 dB · double-tap the knob = 0 dB": "Rastet bei 0 dB ein · Doppeltipp = 0 dB",
|
||||
"Sources → ": "Quellen → ",
|
||||
"Speaker ": "Lautsprecher ",
|
||||
"Speaker at {pct} % of its rating ({w} RMS)": "Lautsprecher zu {pct} % belastet ({w} RMS)",
|
||||
"Speaker RMS": "Lautsprecher RMS",
|
||||
"Speaker RMS (W)": "Lautsprecher RMS (W)",
|
||||
"Store preset": "Preset speichern",
|
||||
"Stored in U{n}": "In U{n} gespeichert",
|
||||
"Tap a crosspoint = connect/disconnect · tap an output = level per input": "Kreuzungspunkt antippen = verbinden/trennen · Ausgang antippen = Pegel pro Eingang",
|
||||
"Tap at least two channels": "Mindestens zwei Kanäle antippen",
|
||||
"Target power": "Ziel-Leistung",
|
||||
"The default PIN is 1234. After changing it only this device stays logged in.": "Standard-PIN ist 1234. Nach dem Ändern bleibt nur dieses Gerät angemeldet.",
|
||||
"The DSP did not take these values:": "Diese Werte hat der DSP nicht übernommen:",
|
||||
"The DSPs accept only one connection: close the Thomann editor first.": "Die DSPs erlauben nur eine Verbindung: den Thomann-Editor vorher schließen.",
|
||||
"The first time, Windows Firewall asks – choose “Allow” for private networks.": "Beim ersten Einschalten fragt die Windows-Firewall – dort „Zulassen“ für private Netzwerke wählen.",
|
||||
"The link is stored in the DSP and also applies in the Thomann editor.": "Die Verknüpfung wird im DSP gespeichert und gilt auch für den Thomann-Editor.",
|
||||
"The new PIN must be 4 digits.": "Die neue PIN muss aus 4 Ziffern bestehen.",
|
||||
"The new PINs do not match.": "Die neuen PINs stimmen nicht überein.",
|
||||
"The PIN must be 4 digits": "Die PIN muss aus 4 Ziffern bestehen",
|
||||
"The settings inside the DSPs are saved per device via “File…” at the top.": "Die Einstellungen in den DSPs sichert man pro Gerät oben über „Datei…“.",
|
||||
"This app needs no PIN. The default is 1234; changing it logs out all phones.": "Diese App braucht keine PIN. Standard ist 1234; nach dem Ändern werden alle Handys abgemeldet.",
|
||||
"Thomann does not specify the reference level – 0 dBu (0.775 V) is assumed. To measure: feed a 1 kHz sine, ": "Thomann gibt den Bezugspegel nicht an – angenommen sind 0 dBu (0,775 V). Nachmessen: Sinus 1 kHz einspeisen, ",
|
||||
"TimeoutError": "Zeitüberschreitung",
|
||||
"Too many attempts – locked for {s} s": "Zu viele Versuche – noch {s} s gesperrt",
|
||||
"Too many attempts – please wait a moment": "Zu viele Versuche – bitte kurz warten",
|
||||
"Type": "Typ",
|
||||
"Undo import": "Import rückgängig",
|
||||
"Unlink": "Trennen",
|
||||
"Unlock": "Entsperren",
|
||||
"Unlocked": "Entsperrt",
|
||||
"USB cable": "USB-Kabel",
|
||||
"USB connection lost": "USB-Verbindung getrennt",
|
||||
"USB device": "USB-Gerät",
|
||||
"USB device is in use by another program": "USB-Gerät ist von einem anderen Programm belegt",
|
||||
"USB device not found – check the cable": "USB-Gerät nicht gefunden – Kabel prüfen",
|
||||
"USB is not supported on this system": "USB wird auf diesem System nicht unterstützt",
|
||||
"USB write error": "USB-Schreibfehler",
|
||||
"Used by: ": "Belegt: ",
|
||||
"View": "Ansicht",
|
||||
"Watts": "Watt",
|
||||
"Wrong PIN": "Falsche PIN",
|
||||
"Wrong PIN – {n} attempts left": "Falsche PIN – noch {n} Versuche",
|
||||
"{db} dB headroom to amplifier clipping": "{db} dB Reserve bis Verstärker-Clipping",
|
||||
"{names} linked": "{names} verknüpft",
|
||||
"{names} unlinked": "{names} getrennt",
|
||||
"{n} channels selected": "{n} Kanäle gewählt",
|
||||
"{pct} % of the speaker rating ({w} RMS)": "{pct} % der Lautsprecher-Belastbarkeit ({w} RMS)",
|
||||
"{pct} % of {rated}": "{pct} % von {rated}",
|
||||
"— empty —": "— leer —",
|
||||
"— no amplifier —": "— kein Verstärker —",
|
||||
"“{s}”": "„{s}“"
|
||||
};
|
||||
|
||||
const DE_PATTERNS = [
|
||||
[/^Port (\d+) is already in use – please choose another port$/, "Port $1 ist schon belegt – bitte einen anderen Port wählen"],
|
||||
[/^Port (\d+) is not available \((.*)\)$/, "Port $1 ist nicht verfügbar ($2)"],
|
||||
[/^Cannot open USB device \(error (.*)\)$/, "USB-Gerät lässt sich nicht öffnen (Fehler $1)"],
|
||||
[/^USB write error \((.*)\)$/, "USB-Schreibfehler ($1)"],
|
||||
[/^The file is for a DSP (\w+), the connected device is a (.*)$/, "Die Datei ist für den DSP $1, verbunden ist ein $2"],
|
||||
[/^Unknown file format \((\d+) bytes\) – expected a DSP Control preset file or a memory image of the (.*) \((\d+) bytes\)$/,
|
||||
"Unbekanntes Dateiformat ($1 Bytes) – erwartet wird eine Preset-Datei dieser App oder ein Speicherabbild des $2 ($3 Bytes)"],
|
||||
[/^unknown device '(.*)' - set the model manually$/, "Unbekanntes Gerät „$1“ – Modell bitte manuell einstellen"],
|
||||
[/^config chunk (\d+) not received$/, "Konfigurations-Teil $1 nicht empfangen"],
|
||||
];
|
||||
|
||||
function t(s, vars) {
|
||||
const text = LANG === "de" && DE[s] != null ? DE[s] : s;
|
||||
return vars ? text.replace(/\{(\w+)\}/g, (m, k) => (k in vars ? vars[k] : m)) : text;
|
||||
}
|
||||
function trMsg(msg) {
|
||||
msg = String(msg ?? "");
|
||||
if (LANG !== "de") return msg;
|
||||
if (DE[msg] != null) return DE[msg];
|
||||
for (const [re, de] of DE_PATTERNS) if (re.test(msg)) return msg.replace(re, de);
|
||||
return msg;
|
||||
}
|
||||
const q = s => t("“{s}”", { s }); // quoted name: “x” / „x“
|
||||
|
||||
// static texts in index.html
|
||||
document.documentElement.lang = LANG;
|
||||
document.querySelectorAll("[data-t]").forEach(el => (el.textContent = t(el.dataset.t)));
|
||||
document.querySelectorAll("[data-t-label]").forEach(el => {
|
||||
el.setAttribute("aria-label", t(el.dataset.tLabel));
|
||||
if (el.title) el.title = t(el.dataset.tLabel);
|
||||
});
|
||||
@@ -0,0 +1,42 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<meta name="theme-color" content="#0b0c0f">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<title>DSP Control</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%23111418'/%3E%3Cpath d='M7 22V10M13 22V6M19 22V14M25 22V9' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E">
|
||||
</head>
|
||||
<body>
|
||||
<div id="login" hidden></div>
|
||||
<div id="app" hidden>
|
||||
<header id="top">
|
||||
<div class="brand" aria-hidden="true">
|
||||
<svg viewBox="0 0 32 32" width="26" height="26"><rect width="32" height="32" rx="7" fill="#161a20"/><path d="M7 22V10M13 22V6M19 22V14M25 22V9" stroke="#38bdf8" stroke-width="3" stroke-linecap="round"/></svg>
|
||||
</div>
|
||||
<div id="devtabs"></div>
|
||||
<nav id="viewtabs" aria-label="View" data-t-label="View">
|
||||
<button data-view="mixer"><svg viewBox="0 0 24 24"><path d="M6 3v18M12 3v18M18 3v18"/><rect x="3.5" y="13" width="5" height="3" rx="1"/><rect x="9.5" y="7" width="5" height="3" rx="1"/><rect x="15.5" y="10" width="5" height="3" rx="1"/></svg><span>Mixer</span></button>
|
||||
<button data-view="channel"><svg viewBox="0 0 24 24"><path d="M2 14c3 0 3-7 6-7s3 10 6 10 3-6 6-6h2"/></svg><span data-t="Channel">Channel</span></button>
|
||||
<button data-view="routing"><svg viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h16M8 3v18M16 3v18"/><circle cx="8" cy="6" r="2.2" class="f"/><circle cx="16" cy="12" r="2.2" class="f"/><circle cx="8" cy="18" r="2.2" class="f"/></svg><span>Routing</span></button>
|
||||
<button data-view="link"><svg viewBox="0 0 24 24"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1"/><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/></svg><span>Link</span></button>
|
||||
<button data-view="limiter"><svg viewBox="0 0 24 24"><path d="M2 7h20" stroke-dasharray="2.5 2.5"/><path d="M2 14c2 0 3-7 5-7h3c2 0 3 11 6 11s3-5 6-5"/></svg><span>Limiter</span></button>
|
||||
</nav>
|
||||
<button id="btn-lock" class="icon" hidden aria-label="Lock" title="Lock"></button>
|
||||
<button id="btn-settings" class="icon" aria-label="Settings" title="Settings" data-t-label="Settings">
|
||||
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"/></svg>
|
||||
</button>
|
||||
</header>
|
||||
<div id="statusbar"></div>
|
||||
<main id="main"></main>
|
||||
</div>
|
||||
<div id="modal" hidden></div>
|
||||
<div id="toast" hidden></div>
|
||||
<script src="/i18n.js"></script>
|
||||
<script src="/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,444 @@
|
||||
:root {
|
||||
--bg: #0b0c0f;
|
||||
--bg2: #101216;
|
||||
--panel: #15181d;
|
||||
--panel2: #1c2027;
|
||||
--panel3: #232831;
|
||||
--line: #2a303a;
|
||||
--line2: #3a4250;
|
||||
--text: #e8edf3;
|
||||
--dim: #8a95a3;
|
||||
--dim2: #5d6773;
|
||||
--accent: #38bdf8;
|
||||
--accent2: #0284c7;
|
||||
--ok: #22c55e;
|
||||
--warn: #f59e0b;
|
||||
--bad: #ef4444;
|
||||
--mute: #dc2626;
|
||||
--led-g: #2bff6b;
|
||||
--led-o: #ffa31a;
|
||||
--led-r: #ff3030;
|
||||
--radius: 12px;
|
||||
--hdr: 56px;
|
||||
--bnav: 0px;
|
||||
--sb: 70px;
|
||||
color-scheme: dark;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; background: var(--bg); color: var(--text); }
|
||||
body {
|
||||
font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
overscroll-behavior-y: contain;
|
||||
min-height: 100dvh;
|
||||
}
|
||||
[hidden] { display: none !important; }
|
||||
button, input, select { font: inherit; color: inherit; }
|
||||
button {
|
||||
background: var(--panel2); border: 1px solid var(--line); border-radius: 9px;
|
||||
padding: 8px 12px; min-height: 40px; cursor: pointer; touch-action: manipulation;
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
||||
transition: background .12s, border-color .12s, color .12s;
|
||||
}
|
||||
button:hover { border-color: var(--line2); }
|
||||
button:active { filter: brightness(1.25); }
|
||||
button:focus-visible, select:focus-visible, input:focus-visible, .fader:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
button.on { background: var(--accent2); border-color: var(--accent); color: #fff; }
|
||||
button:disabled { opacity: .45; cursor: default; }
|
||||
button.danger { color: #fca5a5; }
|
||||
button.danger-on { background: #991b1b; border-color: #ef4444; color: #fff; }
|
||||
button.small { min-height: 32px; padding: 4px 10px; font-size: 13px; text-transform: none; letter-spacing: 0; }
|
||||
button.icon { background: none; border-color: transparent; padding: 8px; min-width: 44px; }
|
||||
button.icon:hover { background: var(--panel2); }
|
||||
button svg, .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
||||
select, input[type=text], input[type=number], input[type=password] {
|
||||
background: var(--panel2); border: 1px solid var(--line); border-radius: 9px;
|
||||
padding: 8px 10px; min-height: 40px; width: 100%; min-width: 0;
|
||||
}
|
||||
select { cursor: pointer; }
|
||||
input.bad { border-color: var(--bad); }
|
||||
label.inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
|
||||
|
||||
/* ------------------------------------------------------------- header */
|
||||
#top {
|
||||
position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
|
||||
padding: calc(6px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left));
|
||||
background: rgba(11, 12, 15, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.brand { display: flex; flex: none; }
|
||||
#devtabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
|
||||
#devtabs::-webkit-scrollbar { display: none; }
|
||||
.devtab { white-space: nowrap; flex: none; max-width: 220px; background: var(--panel); }
|
||||
.devtab .dn { overflow: hidden; text-overflow: ellipsis; }
|
||||
.devtab small { font-size: 11px; color: var(--dim); background: var(--panel3); border-radius: 5px; padding: 1px 5px; }
|
||||
.devtab.active { background: var(--panel3); border-color: var(--accent); }
|
||||
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim2); flex: none; }
|
||||
.dot.online { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
|
||||
.dot.connecting, .dot.loading { background: var(--warn); animation: blink 1s infinite; }
|
||||
.dot.error { background: var(--bad); }
|
||||
@keyframes blink { 50% { opacity: .3; } }
|
||||
|
||||
#viewtabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; flex: none; }
|
||||
#viewtabs button { border: 0; background: none; min-height: 36px; padding: 6px 14px; color: var(--dim); border-radius: 8px; }
|
||||
#viewtabs button svg { width: 18px; height: 18px; }
|
||||
#viewtabs button svg .f { fill: currentColor; stroke: none; }
|
||||
#viewtabs button.active { background: var(--panel3); color: var(--accent); }
|
||||
body[data-view=settings] #viewtabs button.active { background: none; color: var(--dim); }
|
||||
|
||||
#statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); }
|
||||
#statusbar:empty { display: none; }
|
||||
#statusbar .preset { flex: 1 1 180px; min-width: 0; }
|
||||
#statusbar .preset b { display: block; font-size: 18px; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
#statusbar .preset small { color: var(--dim); font-size: 12px; }
|
||||
#statusbar .presetrow { flex: 0 1 380px; display: flex; gap: 8px; min-width: 0; }
|
||||
#statusbar .presetrow select { flex: 1; min-width: 0; }
|
||||
#statusbar .presetrow button { flex: none; }
|
||||
|
||||
#main { padding: 4px max(10px, env(safe-area-inset-right)) calc(24px + var(--bnav)) max(10px, env(safe-area-inset-left)); max-width: 1500px; margin: 0 auto; }
|
||||
|
||||
/* phones: view switcher becomes a bottom navigation bar */
|
||||
@media (max-width: 759px) {
|
||||
:root { --bnav: calc(62px + env(safe-area-inset-bottom)); }
|
||||
.brand { display: none; }
|
||||
/* backdrop-filter would make the header the containing block of the fixed bottom bar */
|
||||
#top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
|
||||
#viewtabs {
|
||||
position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 0; border: 0; border-top: 1px solid var(--line);
|
||||
padding: 4px 6px env(safe-area-inset-bottom); background: rgba(16, 18, 22, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
|
||||
}
|
||||
#viewtabs button { flex: 1; flex-direction: column; gap: 2px; font-size: 11px; min-height: 54px; padding: 4px; }
|
||||
#viewtabs button svg { width: 22px; height: 22px; }
|
||||
#toast { bottom: calc(var(--bnav) + 12px) !important; }
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------- generic blocks */
|
||||
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
|
||||
.card h3 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim);
|
||||
display: flex; align-items: center; gap: 8px; min-height: 22px; }
|
||||
.grow { flex: 1; }
|
||||
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; margin-bottom: 10px; }
|
||||
.cards .wide { grid-column: 1 / -1; }
|
||||
h2.section { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 14px 2px 8px; }
|
||||
.empty { color: var(--dim); text-align: center; padding: 60px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
|
||||
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
|
||||
.spinner.off { display: none; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
||||
.row > * { flex: 1 1 auto; }
|
||||
.row > button { flex: 0 0 auto; }
|
||||
.grow2 { flex: 1 1 160px !important; }
|
||||
.info { font-size: 12px; color: var(--dim); margin: 8px 2px 0; }
|
||||
.info.off { margin: 4px 0 6px; }
|
||||
.hint { text-align: center; }
|
||||
.err { color: #fca5a5; font-size: 13px; }
|
||||
|
||||
/* ------------------------------------------------------------- parameter rows */
|
||||
.param { margin: 10px 0 4px; }
|
||||
.param .lbl { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 2px; }
|
||||
.valbox { display: flex; align-items: center; gap: 4px; }
|
||||
.valbox .val { min-width: 104px; min-height: 32px; padding: 3px 8px; background: var(--bg2); border-color: var(--line);
|
||||
font-variant-numeric: tabular-nums; font-size: 14px; color: var(--text); }
|
||||
.valbox .step { width: 34px; min-width: 34px; min-height: 32px; padding: 0; font-size: 18px; line-height: 1; color: var(--dim); background: var(--panel2); }
|
||||
.valbox .step:hover { color: var(--text); }
|
||||
.param.atzero .val { color: var(--ok); border-color: #1f5f36; }
|
||||
.rangewrap { position: relative; }
|
||||
.rangewrap .zmark { position: absolute; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--line2);
|
||||
left: calc(13px + (100% - 26px) * var(--f)); pointer-events: none; }
|
||||
.param.atzero .zmark { background: var(--ok); }
|
||||
input[type=range] { position: relative; width: 100%; height: 36px; background: transparent; -webkit-appearance: none; appearance: none; margin: 0; cursor: pointer; touch-action: pan-y; }
|
||||
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: var(--line); border-radius: 3px; }
|
||||
input[type=range]::-moz-range-track { height: 6px; background: var(--line); border-radius: 3px; }
|
||||
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
|
||||
background: radial-gradient(circle at 50% 40%, #e2e8f0, #94a3b8); border: 2px solid #0b0c0f; box-shadow: 0 1px 4px #000c; }
|
||||
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #e2e8f0, #94a3b8); border: 2px solid #0b0c0f; }
|
||||
.param.atzero input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 0 3px #22c55e55, 0 1px 4px #000c; }
|
||||
|
||||
/* ------------------------------------------------------------- LED meters (segment bars) */
|
||||
.led { display: flex; gap: 2px; flex: none; }
|
||||
.led > i { flex: 1; border-radius: 1.5px; background: var(--c); opacity: .13; }
|
||||
.led > i.g { --c: var(--led-g); }
|
||||
.led > i.o { --c: var(--led-o); }
|
||||
.led > i.r { --c: var(--led-r); }
|
||||
.led.v { flex-direction: column-reverse; width: 12px; height: 100%; padding: 12px 0; }
|
||||
.led.h { flex-direction: row; height: 10px; width: 120px; }
|
||||
.muted .led > i { filter: saturate(.25); }
|
||||
|
||||
/* ------------------------------------------------------------- fader */
|
||||
/* only the cap grabs: a swipe anywhere else on the fader scrolls the page / the mixer sideways */
|
||||
.fader { --tx: 50%; position: relative; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; border-radius: 8px; }
|
||||
.fader .track { position: absolute; left: var(--tx); top: 12px; bottom: 12px; width: 6px; margin-left: -3px; background: #07080a;
|
||||
border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); }
|
||||
.fader .tick { position: absolute; left: calc(var(--tx) - 14px); width: 28px; height: 1px; background: var(--line2);
|
||||
top: calc(12px + (100% - 24px) * (1 - var(--f))); }
|
||||
.fader .tick.z { background: var(--dim); height: 2px; margin-top: -0.5px; }
|
||||
.fader .tick span { position: absolute; right: calc(100% + 3px); top: -6px; font-size: 9px; line-height: 12px; color: var(--dim2); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.fader .tick.z span { color: var(--dim); font-weight: 600; }
|
||||
.fader .cap { position: absolute; left: calc(var(--tx) - 16px); width: 32px; height: 40px; margin-top: -20px; border-radius: 5px;
|
||||
top: calc(12px + (100% - 24px) * (1 - var(--f)));
|
||||
background: linear-gradient(#3b4250, #262b34 45%, #1b1f26 55%, #2c323c); border: 1px solid #4a5260;
|
||||
box-shadow: 0 3px 8px #000c, inset 0 1px 0 #ffffff1a; }
|
||||
.fader .cap { touch-action: none; cursor: ns-resize; z-index: 1; }
|
||||
.fader .cap::before { content: ""; position: absolute; inset: -10px -8px; } /* larger grip area for fingers */
|
||||
.fader .cap::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; background: #e8edf3; border-radius: 1px; }
|
||||
.fader.atzero .cap::after { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
|
||||
.fader.grab .cap { border-color: var(--accent); }
|
||||
|
||||
/* ------------------------------------------------------------- mixer */
|
||||
.mixer { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
|
||||
.mgroup { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
|
||||
.mgroup h4 { margin: 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 600; }
|
||||
.strips { display: flex; gap: 6px; }
|
||||
.strip { --cc: var(--warn); flex: none; width: 92px; background: linear-gradient(var(--panel), var(--bg2)); border: 1px solid var(--line);
|
||||
border-radius: var(--radius); padding: 0 6px 8px; display: flex; flex-direction: column; align-items: stretch; gap: 8px;
|
||||
scroll-snap-align: start; position: relative; overflow: hidden; }
|
||||
.strip::before { content: ""; height: 3px; margin: 0 -6px; background: var(--cc); opacity: .9; }
|
||||
.strip-head { flex-direction: column; gap: 0; background: none; border: 0; padding: 2px 0; min-height: 38px; border-radius: 6px; }
|
||||
.strip-head:hover { background: var(--panel2); }
|
||||
.strip-head .kind { font-size: 11px; color: var(--dim); letter-spacing: .04em; }
|
||||
.strip-head .nm { font-weight: 650; font-size: 13px; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.faderbox { display: flex; justify-content: center; gap: 4px;
|
||||
height: clamp(170px, calc(100dvh - var(--hdr) - var(--sb) - var(--bnav) - 196px), 560px); }
|
||||
.strip .fader { --tx: 36px; width: 56px; height: 100%; }
|
||||
.strip .db { min-height: 32px; padding: 2px; font-variant-numeric: tabular-nums; font-size: 13px; background: var(--bg2); }
|
||||
.strip .db.z { color: var(--ok); }
|
||||
.strip button.mute { min-height: 38px; font-weight: 700; font-size: 12px; letter-spacing: .06em; }
|
||||
button.mute.on { background: var(--mute); border-color: #f87171; color: #fff; box-shadow: 0 0 10px #dc262655; }
|
||||
.strip.muted { background: linear-gradient(#1f1517, var(--bg2)); }
|
||||
@media (min-width: 1200px) {
|
||||
.mgroup { flex-shrink: 1; flex-basis: 0; }
|
||||
.strip { flex: 1 1 92px; max-width: 128px; }
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------- channel view */
|
||||
.chbar { position: sticky; top: var(--hdr); z-index: 10; display: flex; align-items: center; gap: 6px; margin: 0 -10px 10px; padding: 8px 10px;
|
||||
background: rgba(11, 12, 15, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
|
||||
.chbar .nav { flex: none; background: var(--panel2); border-color: var(--line); min-width: 44px; }
|
||||
.chselwrap { --cc: var(--warn); flex: 1 1 auto; min-width: 0; position: relative; max-width: 420px; }
|
||||
.chselwrap::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--cc); pointer-events: none; }
|
||||
.chsel { font-weight: 650; font-size: 16px; padding-left: 14px; min-height: 44px; background: var(--panel2); }
|
||||
.chbar .led.h { width: clamp(60px, 18vw, 200px); }
|
||||
.chbar .mute { flex: none; min-width: 70px; font-weight: 700; font-size: 12px; letter-spacing: .06em; }
|
||||
@media (max-width: 480px) { .chbar .led.h { display: none; } }
|
||||
|
||||
.sub { font-size: 13px; color: var(--text); font-weight: 600; flex: 0 0 80px !important; }
|
||||
.xo + .xo { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
|
||||
canvas.curve { width: 100%; height: clamp(200px, 32vw, 320px); display: block; background: #08090b; border: 1px solid var(--line); border-radius: 10px; touch-action: none; cursor: crosshair; }
|
||||
.bands { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: thin; }
|
||||
.band { flex: 1 0 58px; flex-direction: column; gap: 0; padding: 5px 4px; min-height: 52px; line-height: 1.15; }
|
||||
.band b { font-size: 14px; }
|
||||
.band small { font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
|
||||
.band.active:not(.on) { border-color: #3b6d8a; }
|
||||
.band.on { background: #3a2a0d; border-color: var(--warn); color: #fff; }
|
||||
.band.on small { color: #fcd9a0; }
|
||||
.band.bypassed { opacity: .45; }
|
||||
.band.bypassed b { text-decoration: line-through; }
|
||||
.bandhead { margin-top: 8px; }
|
||||
.bandhead label { flex: 1 1 200px; }
|
||||
.pgrid { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
|
||||
|
||||
.geq { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 6px; }
|
||||
.gb { flex: 1 0 30px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--dim); }
|
||||
.gb .fader { width: 30px; height: 190px; }
|
||||
.gb .fader .tick { left: 3px; width: 24px; }
|
||||
.gb .fader .cap { left: 1px; width: 28px; height: 24px; margin-top: -12px; }
|
||||
.gb .gv { font-variant-numeric: tabular-nums; }
|
||||
.gb .gv.nz { color: var(--warn); }
|
||||
.gb .gf { white-space: nowrap; }
|
||||
|
||||
.mixrow { display: grid; grid-template-columns: minmax(110px, 0.6fr) 1fr; gap: 4px 12px; align-items: center; padding: 4px 0; }
|
||||
.mixrow + .mixrow { border-top: 1px solid var(--line); }
|
||||
.mixrow .param { margin: 4px 0; }
|
||||
.mixrow .param .lbl > span:first-child { display: none; }
|
||||
.mixrow .param .lbl { justify-content: flex-end; }
|
||||
.mixrow.off .param { opacity: .45; }
|
||||
.src { --cc: var(--accent); justify-content: flex-start; text-align: left; min-height: 44px; }
|
||||
.src .sw { width: 30px; height: 18px; border-radius: 9px; background: var(--line); position: relative; flex: none; transition: background .15s; }
|
||||
.src .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--dim); transition: transform .15s, background .15s; }
|
||||
.src.on { background: var(--panel2); border-color: var(--cc); color: var(--text); }
|
||||
.src.on .sw { background: var(--cc); }
|
||||
.src.on .sw::after { transform: translateX(12px); background: #fff; }
|
||||
@media (max-width: 420px) { .mixrow { grid-template-columns: 1fr; } }
|
||||
|
||||
/* ------------------------------------------------------------- routing matrix */
|
||||
.routing { overflow-x: auto; }
|
||||
.xmatrix { display: grid; grid-template-columns: minmax(104px, 1.1fr) repeat(var(--n), minmax(58px, 1fr)); gap: 0; min-width: min-content; }
|
||||
.xcorner { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 8px 8px 2px; font-size: 11px; color: var(--dim2); }
|
||||
.xin { --cc: var(--accent); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; border-top: 3px solid var(--cc);
|
||||
background: linear-gradient(color-mix(in srgb, var(--cc) 10%, transparent), transparent); border-radius: 6px 6px 0 0; margin: 0 3px; min-width: 0; }
|
||||
.xin b { font-size: 14px; }
|
||||
.xin small { font-size: 11px; color: var(--dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.xin .led.h { width: 80%; height: 6px; margin-top: 4px; }
|
||||
.xout { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; justify-items: start; align-items: center; gap: 0 6px;
|
||||
text-align: left; border-radius: 9px 0 0 9px; border: 0; border-top: 1px solid var(--line); background: none; padding: 8px; min-height: 64px; }
|
||||
.xout:hover { background: var(--panel2); }
|
||||
.xout.open { background: var(--panel3); }
|
||||
.xo-t { display: flex; flex-direction: column; min-width: 0; }
|
||||
.xo-t b { font-size: 14px; }
|
||||
.xo-t small { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
|
||||
.xo-s { grid-column: 1; font-size: 11px; color: var(--accent); }
|
||||
.chev { grid-column: 2; grid-row: 1 / 3; color: var(--dim); font-size: 16px; }
|
||||
.xp { --cc: var(--accent); position: relative; border: 0; border-top: 1px solid var(--line); border-radius: 0; min-height: 64px; padding: 0; background:
|
||||
linear-gradient(var(--line), var(--line)) center / 2px 100% no-repeat,
|
||||
linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat; flex-direction: column; gap: 3px; }
|
||||
.xp:hover { background-color: var(--panel2); }
|
||||
.xp .node { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); transition: transform .12s, background .12s; }
|
||||
.xp:hover .node { border-color: var(--dim); }
|
||||
.xp.on { border-color: var(--line); color: var(--text); --lc: color-mix(in srgb, var(--cc) 60%, transparent); background:
|
||||
linear-gradient(var(--lc), var(--lc)) center / 2px 100% no-repeat,
|
||||
linear-gradient(var(--lc), var(--lc)) center / 100% 2px no-repeat; }
|
||||
.xp.on .node { background: var(--cc); border-color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc) 30%, transparent), 0 0 14px var(--cc); transform: scale(1.08); }
|
||||
.xp small { position: absolute; bottom: 3px; left: 0; right: 0; font-size: 10px; color: var(--text); background: none; font-variant-numeric: tabular-nums; }
|
||||
.xpanel { grid-column: 1 / -1; background: var(--panel3); border-radius: 0 0 10px 10px; padding: 6px 12px 10px; margin-bottom: 6px; }
|
||||
.xpanel-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
|
||||
|
||||
/* ------------------------------------------------------------- settings */
|
||||
.devform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
||||
.devform label { font-size: 12px; color: var(--dim); display: flex; flex-direction: column; gap: 4px; }
|
||||
.devform label.full, .devform .err { grid-column: 1 / -1; }
|
||||
.devform label.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
|
||||
.devform label.chk input { width: 20px; height: 20px; }
|
||||
.devform .actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.devform .actions button { flex: 1 1 auto; }
|
||||
|
||||
/* ------------------------------------------------------------- dialogs */
|
||||
#modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
|
||||
.backdrop { position: absolute; inset: 0; background: #000a; animation: fade .15s; }
|
||||
.dialog { position: relative; width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 16px;
|
||||
padding: 18px; box-shadow: 0 20px 60px #000c; animation: pop .15s ease-out; }
|
||||
.dialog h2 { margin: 0 0 12px; font-size: 17px; }
|
||||
.dlg-text { margin: 0 0 4px; color: var(--dim); }
|
||||
.dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
|
||||
.dlg-actions button { min-width: 110px; }
|
||||
.dialog .row input { flex: 1 1 140px; font-size: 18px; font-variant-numeric: tabular-nums; }
|
||||
.dialog .chip { flex: none; }
|
||||
.form { display: flex; flex-direction: column; gap: 10px; }
|
||||
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); }
|
||||
@keyframes fade { from { opacity: 0; } }
|
||||
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } }
|
||||
@media (max-width: 520px) {
|
||||
#modal { align-items: flex-end; padding: 0; }
|
||||
.dialog { width: 100%; border-radius: 18px 18px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); animation: slideup .18s ease-out; }
|
||||
.dlg-actions button { flex: 1; }
|
||||
}
|
||||
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } }
|
||||
|
||||
#toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
|
||||
background: #1f2937; border: 1px solid var(--line2); padding: 10px 16px; border-radius: 10px; z-index: 120; max-width: 90vw; box-shadow: 0 8px 24px #000a; }
|
||||
|
||||
/* ------------------------------------------------------------- login */
|
||||
#login { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; overflow-y: auto;
|
||||
background: radial-gradient(ellipse at 50% 0%, #13253a 0%, var(--bg) 60%); padding: 20px; }
|
||||
.loginbox { display: flex; flex-direction: column; align-items: center; width: min(320px, 100%); }
|
||||
.loginbox .logo svg { width: 56px; height: 56px; }
|
||||
.loginbox h1 { margin: 12px 0 2px; font-size: 22px; letter-spacing: .02em; }
|
||||
.loginbox p { margin: 0 0 22px; color: var(--dim); }
|
||||
.pindots { display: flex; gap: 18px; margin-bottom: 10px; }
|
||||
.pindots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); transition: background .1s, border-color .1s, transform .1s; }
|
||||
.pindots i.on { background: var(--accent); border-color: var(--accent); transform: scale(1.1); box-shadow: 0 0 10px #38bdf888; }
|
||||
.pindots.shake { animation: shake .4s; }
|
||||
.pindots.shake i { border-color: var(--bad); }
|
||||
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
|
||||
.pinmsg { min-height: 20px; font-size: 13px; color: #fca5a5; margin-bottom: 14px; text-align: center; }
|
||||
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 280px; }
|
||||
.pinpad.locked { opacity: .35; pointer-events: none; }
|
||||
.pk { aspect-ratio: 1; border-radius: 50%; font-size: 26px; font-weight: 500; background: var(--panel); border: 1px solid var(--line); min-height: 0; }
|
||||
.pk:active { background: var(--accent2); border-color: var(--accent); filter: none; }
|
||||
.pk.del { font-size: 22px; background: none; border-color: transparent; color: var(--dim); }
|
||||
@media (max-height: 560px) { .pk { aspect-ratio: auto; height: 52px; border-radius: 14px; } .pinpad { gap: 8px; } .loginbox p { margin-bottom: 10px; } }
|
||||
|
||||
/* ------------------------------------------------------------- limiter calculator */
|
||||
.limcard h3 .led.h { width: clamp(50px, 14vw, 110px); height: 8px; }
|
||||
.lres { --c: var(--ok); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
|
||||
background: linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%); }
|
||||
.lres.warn { --c: var(--warn); }
|
||||
.lres.bad { --c: var(--bad); }
|
||||
.lres.none { --c: var(--line2); background: none; }
|
||||
.lw { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
|
||||
.lw small { font-size: 14px; font-weight: 500; color: var(--dim); }
|
||||
.lsub { font-size: 13px; color: var(--dim); margin-top: 2px; }
|
||||
.lbar { position: relative; height: 8px; border-radius: 4px; background: var(--panel3); margin: 10px 0 4px; }
|
||||
.lres.none .lbar { display: none; }
|
||||
.lbar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: 4px; background: var(--c); transition: width .15s; }
|
||||
.lbar b, .lbar::after { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); left: calc(var(--a) * 100% - 1px); }
|
||||
.lbar::after { content: ""; display: none; background: var(--warn); left: calc(var(--s) * 100% - 1px); }
|
||||
.lbar.hasspk::after { display: block; }
|
||||
.lnotes { display: grid; gap: 2px; margin-top: 6px; font-size: 12.5px; }
|
||||
.lnotes .ok { color: #86efac; } .lnotes .warn { color: #fcd34d; } .lnotes .bad { color: #fca5a5; }
|
||||
.lnotes div::before { content: "● "; font-size: 9px; vertical-align: 2px; }
|
||||
.limgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
|
||||
.limgrid label { font-size: 12px; color: var(--dim); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
||||
.limgrid label.full { grid-column: 1 / -1; }
|
||||
.target { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
|
||||
.target .row input { flex: 1 1 80px; min-width: 0; }
|
||||
.target .sub { flex: 0 0 auto !important; }
|
||||
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
|
||||
button.chip { min-height: 30px; padding: 3px 10px; font-size: 12.5px; text-transform: none; letter-spacing: 0; border-radius: 15px; }
|
||||
details.more { margin-top: 8px; }
|
||||
details.more summary { cursor: pointer; font-size: 13px; color: var(--dim); padding: 6px 0; user-select: none; }
|
||||
.amp .ampspec { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
||||
.amp .actions { display: flex; justify-content: flex-end; margin-top: 8px; }
|
||||
.addcard { min-height: 90px; border-style: dashed; color: var(--dim); background: none; font-size: 14px; }
|
||||
.addcard:hover { color: var(--accent); border-color: var(--accent); }
|
||||
input.short { flex: 0 0 72px !important; width: 72px; text-align: right; }
|
||||
.seg { display: flex; gap: 0; }
|
||||
.seg button { flex: 1; border-radius: 0; text-transform: none; letter-spacing: 0; }
|
||||
.seg button:first-child { border-radius: 8px 0 0 8px; }
|
||||
.seg button:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }
|
||||
.ampform { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.ampform .full { grid-column: 1 / -1; }
|
||||
.ampform input { min-width: 0; width: 100%; }
|
||||
.ampform .sub { margin-top: 4px; }
|
||||
.ampform .full > label { font-size: 12px; color: var(--dim); display: flex; flex-direction: column; gap: 4px; }
|
||||
.ampform label[hidden] { display: none; }
|
||||
.chips.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); margin: 6px 0 10px; }
|
||||
button.chip.preset { flex-direction: column; align-items: flex-start; gap: 0; border-radius: 9px; padding: 5px 9px; min-height: 42px; text-align: left; }
|
||||
button.chip.preset b { font-size: 13px; }
|
||||
button.chip.preset small { font-size: 10.5px; color: var(--dim); font-weight: 400; }
|
||||
button.chip.preset.on small { color: #e0f2fe; }
|
||||
details.more summary .tag { margin-left: 8px; font-size: 11px; padding: 1px 7px; border-radius: 9px; background: var(--panel3); color: var(--accent); }
|
||||
|
||||
/* ------------------------------------------------------------- desktop app: remote access */
|
||||
.remote-urls { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
|
||||
.remote-urls code { font: 600 15px ui-monospace, Consolas, monospace; color: var(--accent); background: var(--panel2);
|
||||
border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; user-select: all; }
|
||||
|
||||
/* ------------------------------------------------------------- device form: network / USB */
|
||||
.devform .full { grid-column: 1 / -1; }
|
||||
.devform [hidden] { display: none !important; }
|
||||
.devform .sub { margin-top: 2px; color: var(--dim); font-weight: 500; font-size: 12px; }
|
||||
.devform .row { flex-wrap: nowrap; }
|
||||
.devform .row select { flex: 1 1 auto; min-width: 0; }
|
||||
|
||||
/* channel links */
|
||||
.lnk { --lc: var(--warn); display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--lc); }
|
||||
.lnk svg, .linknote svg, .lkgroup svg, .lkmark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
|
||||
.linknote { --lc: var(--warn); color: var(--lc); margin: -4px 0 10px; }
|
||||
.linknote svg { vertical-align: -2px; }
|
||||
.lkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
|
||||
.lkch { --lc: var(--line); position: relative; flex-direction: column; gap: 0; min-height: 58px; border-top: 3px solid var(--lc); }
|
||||
.lkch small { color: var(--dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.lkch .lkmark { position: absolute; top: 4px; right: 5px; color: var(--lc); }
|
||||
.lkch.sel { background: var(--accent2); border-color: var(--accent); color: #fff; }
|
||||
.lkch.sel small { color: #dbeafe; }
|
||||
.lkactions { margin-top: 10px; }
|
||||
.lkgroups { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
|
||||
.lkgroup { --lc: var(--warn); border-left: 3px solid var(--lc); padding: 4px 0 4px 10px; background: var(--panel2); border-radius: 6px; }
|
||||
.lkgroup svg { flex: none; color: var(--lc); }
|
||||
|
||||
/* lock (desktop app) */
|
||||
#btn-lock { display: inline-flex; align-items: center; gap: 6px; }
|
||||
#btn-lock[hidden] { display: none; }
|
||||
#btn-lock.on { background: #3a2a0d; border-color: var(--warn); color: #fcd9a0; padding: 8px 12px; }
|
||||
#btn-lock span { font-size: 13px; font-weight: 600; }
|
||||
body.locked #main :is(button, input, select, .fader, canvas):not(.chsel, .nav, .strip-head, .xout, .band, [data-view-ok]),
|
||||
body.locked #statusbar :is(button, select):not([data-view-ok]) { cursor: not-allowed; }
|
||||
|
||||
/* limiter LED (outputs): orange bar under the channel name, lit while the DSP reports the limiter active */
|
||||
.limled { flex: none; display: block; width: 34px; height: 4px; margin-top: 3px; border-radius: 1px;
|
||||
background: color-mix(in srgb, var(--led-o) 16%, transparent); transition: background .08s, box-shadow .08s; }
|
||||
.limled.ph { visibility: hidden; }
|
||||
.limled.on { background: var(--led-o); box-shadow: 0 0 6px var(--led-o), 0 0 2px var(--led-o); }
|
||||
.limled.h { width: auto; height: auto; margin: 0; padding: 2px 6px; font-size: 10px; font-weight: 700; letter-spacing: .06em;
|
||||
color: color-mix(in srgb, var(--led-o) 45%, transparent); }
|
||||
.limled.h.on { color: #1a1000; }
|
||||
Reference in new issue
Block a user