AquaSynth/tools/aqua-trial
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Aqua d427f046b5 aqua-trial: isolate the noise-slider kill; LF-normalise the DSP hash on both sides
- test.mjs: a failing test no longer aborts the run, so a mutation shows every test that kills it.
- New test: the noise slider is live (noise 20 vs 100 differ, rasp-band ratio 0.2 at rpm 4800) while noise 100 stays identical to thruster.dsp.
- logic.js dspHash (CRLF folded to LF, then sha-256) is the one normalisation; the page export and analyze.mjs both use it. LF text hashes as before, so old exports stay valid.
- Tests: CRLF == LF hash, LF == plain sha-256, analyze CLI raises no foreign-DSP warning for a CRLF checkout.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 10:46:57 +00:00
..
web aqua-trial: isolate the noise-slider kill; LF-normalise the DSP hash on both sides 2026-11-12 10:46:57 +00:00
.gitignore Add blinded A/B listening trial page for the thruster noise sweep 2026-11-04 21:34:18 +00:00
analyze.mjs aqua-trial: isolate the noise-slider kill; LF-normalise the DSP hash on both sides 2026-11-12 10:46:57 +00:00
build.mjs Rename logic.mjs to logic.js so static hosts serve a JavaScript MIME type 2026-11-04 21:34:34 +00:00
logic.js aqua-trial: isolate the noise-slider kill; LF-normalise the DSP hash on both sides 2026-11-12 10:46:57 +00:00
package.json Add blinded A/B listening trial page for the thruster noise sweep 2026-11-04 21:34:18 +00:00
README.md aqua-trial: exports carry the DSP sha-256; analyze rejects hashless exports and keeps v5 out of the noise% context; tests pin the noise knob and mix identity at rpm 300-4800 2026-11-12 09:53:30 +00:00
test.mjs aqua-trial: isolate the noise-slider kill; LF-normalise the DSP hash on both sides 2026-11-12 10:46:57 +00:00
thruster-trial.dsp aqua-trial: add the v5 thruster mix (c6561da) as a variant against the current mix 2026-11-10 13:57:58 +00:00
thruster-v5-c6561da.dsp aqua-trial: add the v5 thruster mix (c6561da) as a variant against the current mix 2026-11-10 13:57:58 +00:00

AquaSynth listening trial

Blinded, randomized A/B ratings of a synthesized thruster, to test Deru's "dead radio" finding: that the thruster's noise layers (rasp, rattle) are what makes it sound dead, and that a tone-forward mix lands better.

Status: the page has never been run in a browser, and nothing has been heard. Node covers the logic and the patch through the same faustwasm runtime the page loads (node test.mjs, 21 checks). The DOM glue (web/trial.js), AudioContext playback and the download are untested. Follow-up: browser-verify.

Entry points

  • web/: the page. Consent checkbox gates Start; the page compiles thruster-trial.dsp in-browser, renders five 4 s variants at the browser's sample rate, and runs ten comparisons (every pair once, order and A/B position randomized from a random seed). Per sound: rating 1-5 ("does it land?") and one word. Variant identity is never shown.
  • thruster-trial.dsp: patches/thruster/thruster.dsp plus a noise control (percent). noise scales the rasp and rattle layers only; the rumble (tone) is untouched, so lowering it moves the mix tone-forward. That reading of "tone-forward mix" is this author's; at 100 the signal equals the thruster (asserted sample for sample). Variants: rpm 600, current mix at noise 100 / 50 / 20 / 0, plus the v5 mix at noise 100 (mix control 0 = current thruster.dsp, 1 = the v5 mix as cut at c6561da; thruster-v5-c6561da.dsp is that file, kept as the test fixture). Not loudness-matched, so level and noise are confounded by design.
  • logic.js: design, statistics, validation and export shape (shared by page and tests).
  • analyze.mjs: dependency-free. node analyze.mjs export1.json [export2.json ...] prints per-variant n, mean, sd, min/max, peak, rms, words, and whether peak / rms predicted the ratings (Spearman rho, permutation p; "predicts" means |rho| >= 0.5 and p < 0.05, fixed before any data).
  • build.mjs: assembles dist/ and prints the content hash used in the publish path. Needs (cd ../aqua-playground && npm ci) for the faustwasm runtime. test.mjs needs dist/.

Privacy

Answers live in the page's memory only. The page makes no network request after loading its own assets and writes nothing to storage. Export downloads a JSON file (patch, the sha-256 of the DSP source it compiled, params, peak, rms, rating, word, time, user agent, sample rate); sending it is the listener's act.

Measured finding before any listening

Peak and rms hardly move across the sweep (48 kHz, current mix: rms 0.0725 / 0.0724 / 0.0723 / 0.0723; peak 0.160 / 0.151 / 0.148 / 0.147). The sweep got narrower on 2026-11-05: patches/thruster/thruster.dsp (and this file, which must equal it at noise 100, mix 0) was changed to cut the idle-level rasp and rattle floors and open the rumble low-pass at low load, after tools/aqua-feel measured the A-weighted noise-to-tone ratio at rpm 300/600 as +21/+23 dB. At rpm 600 the noise layers are now already small, so noise 100 vs 0 differs far less than it did in the original mix (rms 0.0734 / 0.0712 / 0.0706 / 0.0705, peak 0.189 / 0.161 / 0.148 / 0.140). The v5 mix is now a variant (v5noise100), so the noise layers can be compared against the current mix and the old one. The v5 variant measured at 48 kHz, rpm 600: rms 0.0734, peak 0.189, against 0.0725 and 0.160 for the current mix at noise 100: a level difference of about 0.1 dB rms, so the variants again differ mostly in texture, not level. Adding it makes ten comparisons rather than six. analyze.mjs prints mix beside noise%; its (context) noise% correlation uses the current mix only (the v5 variant shares noise 100 and is left out). analyze.mjs rejects an export without dspSha256 (a record from a page build that did not record its DSP could not be told from mix 0) and warns when exports differ from each other or from this checkout's thruster-trial.dsp. Nothing here was heard, before or after the change.