Fix overlay toggling, rework phase view, lock the app during the audio test

- overlay chips read the stored selection on every click (second click hides again)
- phase view: points keep their gain position and can be dragged in both
  directions, phase wraps are drawn as vertical lines like the original software,
  selected band shows Q / frequency / gain next to its point
- audio test: other tabs, settings and device switching are locked until the
  analog input is back; the server only accepts the test controls meanwhile
- test fader value has a fixed width and normal weight (meters no longer shift)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-01 22:01:44 +01:00
1 parent ae9a20fdf8
commit 96640c5bff
5 files changed
+51 -16

No files matched your search

+2 -2
View File
@@ -34,8 +34,8 @@ pi_writer.py → pi_image.py (cloud-init SD card, installs server.py as a system
* **Audio test** – `App.audio_test` / `set_test_level` / `check_audio_test` in `server.py`: entering saves the output
gains (`Device.test_saved`, persisted in `config.json` so an interrupted test is undone on the next connect),
lowers every output to −50 dB, flushes the queue and only then starts the generator (`0x39`); leaving switches the
generator off first, then restores the gains. While `Device.test_active`, preset store/recall/import/export are
refused. The state field is `state["test"] = {source, freq}`.
generator off first, then restores the gains. While `Device.test_active` the server only accepts the test
controls (generator, test fader, output mutes) and the UI stays locked in the audio test tab. The state field is `state["test"] = {source, freq}`.
* **`dsp/preset.py`** – preset files (`dsp-control-preset` JSON with state + raw image), validation, and the minimal
command sequence for an import. Undo backups go to `backups/` next to `config.json` (last 20 per device).
* **`dsp/usbhid.py`** – HID via ctypes only: Windows `hid.dll`/SetupAPI, macOS IOKit, Linux `/dev/hidraw*`.