From 4cd771eb5cf61f3b60766b0a937e7d8a200fe02a Mon Sep 17 00:00:00 2001 From: Givou Date: Mon, 2 Nov 2026 21:34:29 +0100 Subject: [PATCH] Measuring tool for meter, gain, threshold and limiter on real hardware Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 + tools/dsp_measure.py | 263 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 265 insertions(+) create mode 100644 tools/dsp_measure.py diff --git a/CLAUDE.md b/CLAUDE.md index b237fe4..3461efa 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -115,6 +115,8 @@ python sim.py --model 408 --port 9762 python server.py --port 8080 --config .json ``` +`tools/dsp_measure.py` measures on real hardware how meter, gain, threshold and limiter relate (lowers only, restores itself). + Log in with PIN `1234`, add devices `127.0.0.1:9761` / `:9762`. Check both languages after UI changes (⚙ → Language / Sprache). For the desktop app run `python desktop.py` (needs `pywebview`). diff --git a/tools/dsp_measure.py b/tools/dsp_measure.py new file mode 100644 index 0000000..6ba0e4a --- /dev/null +++ b/tools/dsp_measure.py @@ -0,0 +1,263 @@ +"""Finds out how a real DSP's output meter relates to its limiter threshold and output gain. + +Play steady music into the DSP, close every other control software and run: + + python tools/dsp_measure.py --usb + python tools/dsp_measure.py --host 192.168.1.101 + +It only ever lowers one output's gain (by 6 dB) and limiter threshold, never raises anything above where it was, stores +nothing in a preset slot and puts both back at the end, also on Ctrl+C. A preset export is written first as a backup. +Takes about three minutes. The result goes to dsp-measure-