Add audio test tab with test generator, test fader and output mutes

- switch the DSP's test generator (pink/white noise, sine 20 Hz-20 kHz, command 0x39)
- entering lowers all outputs to -50 dB before the generator starts; one test fader
  raises them together; mute buttons for every output
- presets cannot be stored, recalled, imported or exported while the test runs
- leaving switches the generator off first, then restores every output gain
- a DSP found playing a test signal on connect goes straight into the audio test;
  saved gains survive an app restart (config.json)
- simulator and memory-image support for the test signal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-01 21:33:01 +01:00
1 parent 61400df667
commit 66f988cf08
12 files changed
+280 -12

No files matched your search

+28
View File
@@ -462,3 +462,31 @@ input.code { width: 7.5em; text-align: center; font-family: ui-monospace, Menlo,
.dialog label.chk input { width: 20px; height: 20px; }
.dialog .err { text-align: center; }
.lockbox input.code { flex: none; width: 7.5em; }
/* ---- audio test */
.test-badge { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #fff !important;
background: var(--bad) !important; border-radius: 5px; padding: 1px 6px; }
.testbanner { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-weight: 600;
background: color-mix(in srgb, var(--bad) 18%, transparent); border: 1px solid var(--bad); }
.cards.testcards { grid-template-columns: minmax(0, 1fr); }
.srcgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.srcgrid .src { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; text-align: left;
text-transform: none; letter-spacing: 0; min-height: 58px; }
.srcgrid .src small { color: var(--dim); font-weight: 400; }
.srcgrid .src.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.srcgrid .src.noise.on { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, var(--panel)); }
.sinefreq { margin-top: 12px; align-items: center; gap: 10px; }
.sinefreq.dim { opacity: .5; }
.testfader.off .tf { opacity: .35; pointer-events: none; }
.testbody { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.tf { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tf .fader { height: 300px; }
.testval { white-space: nowrap; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tmeters { display: flex; gap: 6px; overflow-x: auto; min-width: 0; padding-bottom: 4px; }
.tmeter { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.tmeter .led { height: 300px; }
.testfader h3 .info { margin-left: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tmeter small { font-size: 11px; color: var(--dim); }
button.wide { width: 100%; margin-top: 14px; }
.tmeter button.mute { padding: 6px 8px; font-size: 11px; min-width: 52px; }
.tmeter.muted .led { opacity: .35; }