| Filename | Latest commit message | Latest commit date |
|---|---|---|
tools/aqua-feel renders every playground patch (thruster at four rpm) and every Ding event on every instrument offline through faustwasm, measures onset latency, attack, crest, true peak and clipping, BS.1770 loudness, centroid/flux over time, noise-to-tone ratio (flat and A-weighted) and a low-motion flag, writes report.json plus a static gallery, and gates against thresholds.json (waivers must cite a follow-up and go stale). Nothing is heard; metrics are evidence, not verdicts. Uses it: PRC SYNTH1 calibrated peaked at 2.10 (18,633 overs); shipped patch gain 1.4 to 0.45, peak 0.67. Thruster low-rpm A-weighted noise-to-tone 20.7/23.0 dB at rpm 300/600 down to 13.1/5.0 by cutting the idle rasp and rattle floors and opening the rumble low-pass at low load. Trial copy mirrored; its README notes the narrower sweep. AquaLower gains --dings to lower DingCatalog instruments and events. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
| .. | ||
| lowered-dings | ||
| catalog.js | ||
| feel.mjs | ||
| gallery.js | ||
| gate.js | ||
| metrics.js | ||
| package.json | ||
| README.md | ||
| render.js | ||
| report.js | ||
| test.mjs | ||
| thresholds.json | ||
aqua-feel
Headless feel meter for AquaSynth. It renders every shipped patch and every Ding offline, measures the buffers, writes JSON and a static HTML gallery, and gates the numbers against thresholds.
Nothing here was heard. Every number is a measurement of an offline-rendered buffer. Metrics are evidence for a listener to check, not verdicts: a render can pass every threshold and sound wrong, and fail one and sound fine. The WAVs and the gallery exist so a person can press play.
Run
(cd ../aqua-playground && npm ci) # faustwasm runtime, once
node test.mjs # 20 checks of the meter on synthetic signals; renders no patch
node feel.mjs run # render 81 items (~15 s), write out/{report.json,index.html,wav/}, gate; exit 1 on failure
node feel.mjs run --only thruster # a subset; --out DIR; --no-gate
node feel.mjs gate out/report.json # re-gate a saved report
node feel.mjs compare before.json after.json [--only SUBSTR] # before/after table
node feel.mjs correlate trial-export.json ... # feel metrics vs aqua-trial listener ratings
Open out/index.html in a browser (it references wav/ relatively). The gate is the CI step: node feel.mjs run exits
non-zero on any unwaived failure or stale waiver. No CI runner exists in this repo yet; nothing runs it automatically.
What it renders
- Every patch in
tools/aqua-playground/lowered/(41.aquafiles lowered bytools/AquaLower, plus the hand-writtenthruster.dspat rpm 300 / 600 / 1200 / 4800), 3 s each at 48 kHz, no gate or trigger: the sound the patch makes when started.advanced/additive-padandadvanced/electro-drop-demolower to ~1.5 MB of Faust each and are not in the playground, so not here. - Every
DingCatalogevent on every instrument (9 x 4 = 36), mixed the wayDingsPlaybackHostdoes it: each note rendered atroot * 2^(semitones/12)for 1.5 s, scaled by command gain 0.6 and the note gain, placed at its delay.lowered-dings/isdotnet run --project tools/AquaLower -- --dings tools/aqua-feel/lowered-dings.
Render path: the same faustwasm offline processor the playground and the listening trial use (libfaust 2.90.x, -ftz 2),
mono channel 0. It is not the daemon's native libfaust path (-vec); the same Faust source should render alike, but
nobody has diffed the two.
What it measures (per item, report.json items[].metrics)
| metric | meaning | limits |
|---|---|---|
onsetMs |
first sample at or above max(-40 dB re peak, -70 dBFS), from note-on | Offline render has no device latency; this is the patch's own lead-in only |
attackMs, attackSlopeDbPerMs |
10% to 90% of the FIRST peak (running max until the envelope falls 3 dB) on a 0.17 ms envelope | A faster attack reads as one hop. Meaningless on sustained noise: the "first peak" is just the first 3 dB dip |
samplePeak, truePeakDb, overSamples, flatTopRuns |
peak, 4x-oversampled true peak, samples beyond 1.0, runs of 3+ samples at 0.999 | WAVs are float32 so overs survive to disk |
loudnessLufs |
BS.1770-4 integrated, mono, K-weighted, gated | A mono sound with no reference level; compare items, do not read it as a delivered loudness |
crestDb, rmsDb |
over the active span (onset to last frame within 50 dB of peak) | |
centroidMedianHz, centroidCurve, fluxMean, fluxCurve |
STFT 2048/512 over active frames; flux is the change between unit-norm spectra | Flux on stationary noise is high; it is reported, not gated |
noiseToToneDb, noiseToToneADb |
energy not in stable spectral lines vs energy in them, flat and A-weighted | A heuristic split (see metrics.js): steady or decaying partials read tonal, noise-excited resonances read noise, gliding partials read noise. 8192-point window for spans of 1 s or more, else 2048, so compare the same sound across edits, not different sounds |
lowMotion |
span of 1 s or more with centroid spread under 0.08 octave and level range under 6 dB | The song-swarm collapse shape (docs/music-agent-orchestration-lessons.md): a held drone or a wash. A legitimate sustained drone is flagged too |
The gate
thresholds.json: rules scoped to all, patch, ding or an id glob, each with a why; level: warn prints without failing.
waivers turn a known failure into a printed line and must name a reason and a follow-up id; a waiver that no longer matches
a failing rule is itself a failure, so it is deleted when the thing it excuses is fixed. The numbers were chosen after looking
at the shipped renders. They are tripwires, not taste.
Current waivers: sfxr-classic-classic-sfxr-abstract-golf (+0.9 dBTP, -5.3 LUFS, held noise) and sfxr-explosion (3 s of
steady noise without decay). Nobody has listened to either to see if the number is the sound.
Reuse
report.js imports mean, spearman and permutationP from ../aqua-trial/analyze.mjs and the variants from
../aqua-trial/logic.js: correlate renders the trial's four thruster variants, measures them, and asks the trial's own
question (|rho| >= 0.5 and p < 0.05) of each metric against real ratings once listeners export some. With four variants
every correlation is really about the variant ordering.
Recorded first run
docs/renders/aqua-feel-2026-11-05.md: before/after numbers for the PRC SYNTH1 and thruster edits.