Commit graph AquaSynth/tools
Author SHA1 Message Date
e9de895c39 Lowering: patch repeat restarts pitch and arpeggio, not the envelope; README store-kind rollback note (#37) 2026-11-11 09:27:29 +00:00
0b73d5d608 sfxr explosion + abstract golf: patch repeat no longer cuts the envelope; waivers removed (#36) 2026-11-11 07:30:59 +00:00
9f24e0b42b aqua-feel sync: --shape ramp for slow-swell visuals (measures, never gives a verdict) (#34) 2026-11-11 06:24:43 +00:00
84aa12d36d aqua-feel sync: read a browser capture's frame rate and stalls from its frame times (#33) 2026-11-11 02:59:52 +00:00
47dfc540f6 aqua-feel sync: audio-visual onset lag against perceptual windows (#32) 2026-11-10 23:42:58 +00:00
Aqua
652bf86f4a Pages: no horizontal overflow at 360px; trial hint names the play-both rule
Browser check (headless Chromium, 2026-11-10) found the dings page scrolling
to 846px and the playground to 381px at a 360px viewport, and the trial's
Next button staying disabled until both sounds are played while the hint
did not say so. Tables scroll inside themselves on narrow screens, the
playground select and labels may shrink, and the hint says to play both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 22:12:32 +00:00
Aqua
28bfb64a7a gen_page: the neutral rows no longer pass a loudness-match argument
#29 dropped aud()'s match parameter but left the call in plain(): gen_page.py raised TypeError. Equalised
neutrals need no per-element volume, so the call and the unused neu table go.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:37:46 +00:00
Aqua
1df824d1e3 dings-voices: equalise the neutral fallbacks to the sender median in the generator
finish.py shipped the four neutral clips unmodified (decoded from the Ratatoskr handoff), 4.3-13.7 dB louder
than the senders. build.mjs now renders them (Earcon Workshop warm-bell, default sliders, the handoff's
mention/dm/message/invite = warning/waiting/message/done mapping) and finish.py scales them to the sender LAE
target, which they do not move; they must fit under the true-peak limit there. The generator no longer reads
the handoff dir, so sound-guard drops its --neutral/config and its four known_failures: 0 failing, 0 known.
gen_page loses the now-pointless loudness-match checkbox.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:36:54 +00:00
e8c7cc240c Merge pull request 'sound-guard: aqua-ear checks over every shipped Dings and Earcon clip' (#28) from aqua/sound-guard into main 2026-11-10 18:33:57 +00:00
Aqua
a7fc0b91b3 sound-guard: the rendering subprocess must not leave __pycache__ in dings-voices
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:32:50 +00:00
Aqua
797d67fc7c sound-guard: one command that checks every shipped Dings and Earcon clip with aqua-ear
Renders (or takes) the 32 sender and 4 neutral Dings clips and the 24 Earcon Workshop clips and asserts, per clip: one onset per intended
note on the full and high bands, no click/step/DC, no clipping, true peak under a ceiling, settled tails, loudness within a band of the
median. Thresholds live in thresholds.json with a reason each; aqua-ear's own boundaries are pinned. The four neutral fallbacks, 4 to 14 dB
louder than the sender clips, are recorded as expiring known failures. Tests mutate generated clips (v3 knock, clipped tail, click, step,
cut, DC, outlier, echo, late note, ring-over) and require the intended assertion to fail.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:32:34 +00:00
Aqua
c2afdbb6d5 publish-stable: swap the live dir with one atomic exchange; clean stale staging under a lock
The old swap renamed live aside and staging in: between the two renames /aqua/dings/ answered 404 (a
concurrent reader got FileNotFoundError), a kill there left it missing until the next run, and a killed
run leaked .stage-* dirs. Now renameat2(RENAME_EXCHANGE) swaps live and staging in one syscall, a
per-target flock serialises publishers, and the next run deletes stale staging. test_interruption.py kills
the publisher at every filesystem mutation (audit-hook counted), races readers against swaps, and fails
against the old code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:21:45 +00:00
Aqua
f00abc1957 publish-stable: one script publishes the Dings and aqua-ear pages to one URL each
/aqua/dings/ and /aqua/ear/ are replaced in place (staging dir renamed over the old one, so a failed or
repeated run leaves a whole page); `banners` marks every older per-hash page with a pointer and deletes
nothing. Six stdlib tests: idempotence, replacement, refusal of a non-page, failed publish keeps the old
page, banners added once without touching content, ear index.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:15:45 +00:00
5d4c367b94 Merge pull request 'Articulatory tract: Story vowels, nasal branch, stress cue, plosive burst, independent Burg check (unheard)' (#19) from aqua/tract-articulatory into main 2026-11-10 18:13:33 +00:00
6906ae590e Merge pull request 'Vowel gestures calibrated by measurement; exporter sample rate from callers' (#18) from aqua/tract-voice into main 2026-11-10 18:13:29 +00:00
9d721c50a6 Merge pull request 'Speech: n descriptor, word script, WordRender; first /ˈnibu/ render (a hum, unheard)' (#17) from aqua/nibu-first-render into main 2026-11-10 18:12:40 +00:00
21e83ecc85 Merge pull request 'dings-voices v4: Void single onset, Nibu proposal 3 everywhere (unheard)' (#23) from aqua/dings-voices-v4 into main 2026-11-10 17:54:01 +00:00
Aqua
a85316033d dings-voices v4: pin that a followed Void note ends by the next onset; correct loudness text
Test 6: after note N+1 starts, note N is under -120 dB re its peak, for every Void clip
(fails with the cap reverted: invite note 0 still at -33.4 dB). Page text: the loudness target
moved ~0.005 dB (min over clips, set by void/mention) and Vorbis quantisation is not linear in gain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:52:37 +00:00
Aqua
8760b395af aqua-ear: audio perception tool (spectrogram, onsets, envelope, detectors, compare)
Python (numpy, scipy, matplotlib, soundfile). Onsets at 1 ms on a full-band and a >2 kHz channel;
double hit, click/step/DC, clipping/true peak, overlapping tails, abrupt end detectors with stated
assumptions; compare mode. True peak and BS.1770 loudness ported from aqua-feel/metrics.js
(cross-checked against it in a test). 25 synthetic-fixture tests, each detector with a near-miss.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:36:03 +00:00
Aqua
5e9368cd3d dings-voices: inspect_clips tool and v4 page; drop findings.py
inspect_clips.py renders spectrogram/envelope PNGs and onset lists for Void and the multi-note
checks for Nibu. gen_page.py now writes the v4 page (unheard) from them. findings.py (v2 vs v3
numbers) had no consumer once the v3 page was published; removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:31:39 +00:00
Aqua
7da6489a5c dings-voices v4: Void loses its tick, Nibu is proposal 3
Void's soft tick rode every note 95 ms in (190 ms in the mention): a second broadband hit
beside the tone, which is the double hit heard in v3. Removed at the source; a Void note that
something follows now ends by the next onset (invite's note 2 rang under note 3 and made a
second rise). polyphony.test.mjs fails if a Void clip has more onsets than notes (checked in
the full band and above 1.5 kHz, where a tick shows), and checks Nibu notes do not overlap.
Nibu's voice is proposal 3 (8 kHz 5-bit smoothed sine) for all four events; proposals 1 and 2
stay as non-default alternates.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:31:39 +00:00
a6b0c2c38a Merge pull request 'dings-voices: generator for eight Ratatoskr sender voices (unheard)' (#22) from aqua/dings-voices-generator into main 2026-11-10 17:08:49 +00:00
9f6daaed6e Merge pull request 'aqua-listen: listening-test kit (one self-contained page, verdict export)' (#16) from aqua/listen-kit into main 2026-11-10 17:08:37 +00:00
8c9edf3bc9 Merge pull request 'aqua-feel: effects shelf for overlay packaging (unheard)' (#10) from aqua/effects-shelf into main 2026-11-10 17:08:36 +00:00
Aqua
e9216b2f24 dings-voices v3: per-note rendering, Libby tails, Void tick, Kiko struck glass, three Nibu proposals (unheard)
Nobody has heard v3. Each note renders into its own buffer with its own noise stream (a clip is the sum; polyphony.test.mjs). Notes something follows end by the next onset, the last rings (Libby, Kiko). Void's release tick is a soft knock instead of a 0.5 ms click. Kiko is struck glass instead of bowed. Nibu's glided saw is replaced by three no-glide proposals. findings.py and gen_page.py produce the v2-vs-v3 numbers and page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 15:18:55 +00:00
Aqua
35ed701689 dings-voices: generator for eight Ratatoskr sender voices (unheard)
Eight voices x four notifications on a shared rhythm family, Ogg Vorbis 48 kHz mono,
equal A-weighted exposure, manifest in the dings.ts shape, measurements (true peak, onset,
end-of-clip, pair distance) and a static listening page. Nobody has heard any output.
Imports only the sample rate from tools/earcon-workshop.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 15:02:59 +00:00
01719538f1 Merge pull request 'aqua-trial: add the v5 thruster mix as a variant (unheard, browser-unrun)' (#21) from aqua/trial-v5-variant into main 2026-11-10 14:03:15 +00:00
Aqua
46188d13a2 native-diff: fix report and header text found in review (tolerance wording, 13 sources, dx7-32 values, stray table cells)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:01:20 +00:00
Aqua
e0f3f18dd8 aqua-trial: add the v5 thruster mix (c6561da) as a variant against the current mix
The 2026-11-05 aqua-feel edit cut the idle rasp and rattle floors and opened the
rumble low-pass at low load, which narrowed the noise sweep. thruster-trial.dsp gains
a `mix` control (0 = current thruster.dsp, 1 = the v5 mix as cut) and the trial gains
the variant v5noise100: five variants, ten comparisons. thruster-v5-c6561da.dsp is the
old file, a fixture: test.mjs asserts mix=1 equals it sample for sample and mix=0 still
equals patches/thruster/thruster.dsp. analyze.mjs prints mix beside noise%.
Never run in a browser; nothing has been heard.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 13:57:58 +00:00
Aqua
4e6a64b311 native-diff: stdlib identity, 12 smoother sources under three smoothers, tolerance
Record which faustlibraries text each host compiles against (Starfire
2.85.5 has the stalling smooth; the sandbox master has imp(3)). Add
--items smoother and --smoother old|imp3 (same rewritten source on both
sides) and limits fit to the measured deltas; control matching normalises
the leading slash. Report extended; faustlibraries pin proposed, not made.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 06:44:09 +00:00
Aqua
878f91c062 native-diff: correct the cause (stdlib text, not the host) and harden the tool
A Soul pass found the two sides compile against different stdlib text:
the wasm bundle's si.smooth stalls in float32, the sandbox's faustlibraries
master does not. Reword the report, README and render.js; fail on length
mismatch and render errors; check output count; match controls exactly;
default output under the temp dir.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 06:31:54 +00:00
Aqua
e849c624f9 aqua-feel: diff faustwasm against the native libfaust path
Add FaustNativeRender and native-diff.mjs; render thruster, two sfxr
patches and a tract vowel through both and record the numbers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 06:23:08 +00:00
Aqua
4eab1979bd Nasal stops hold their oral closure to 0.8 of the gesture: /n/ murmur -3.8 to -8.8 dB re the flanking vowels (/m/ -12.8)
The alveolar closure began to open at half the gesture while the velum and the contact held to 0.8, so the oral tract radiated over the last third of the murmur. verify_renders.py now measures the murmur on steady parts against the mean flanking-vowel power; the render test holds both nasals 8 to 16 dB under the vowels.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 12:50:59 +00:00
Aqua
5c32bf6453 Render verification: independent Burg/tube-chain table, stress and burst measurements, amplitude-cue test
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 19:36:19 +00:00
Aqua
7343b66709 tube_formants.py: nasal mode (port junction, Dang & Honda nasal table, oral side branch); spectrum_dips.py
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 19:14:35 +00:00
Aqua
f0711cc8b8 ladder_formants.py: --filtered option, the one-pole open-end lip reflectance (DC gain |g|, pole from the lip area); prototype for cut B1 step 0
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 17:45:39 +00:00
Aqua
67c1290589 Vowels are Story 2008 measured area functions blended in log-area, not Gaussian tongue deformations from a grid-searched table
StoryVowelAreas owns the 11x44 table (CSV is the cited copy, a test compares every cell) and the IPA/descriptor -> vowel id lookup. vowel_set attaches the shapes to a morphology and registers /vocal/areas/<i>/area/vowel_<id> weights; DeformedAreaExpression (still the one area owner) blends them as exp(sum w ln A / max(1e-3, sum w)), the geometric mean when weights vanish, and lip_opening caps the lip cells. Vowel gestures raise their vowel to 1 and the rest to 0; VowelShapes and its nearest-anchor logic are gone. The scaffold runs 17.52 cm at 350 m/s (24 cells); ɪ ʊ e ɛ ʌ ɔ o join the IPA table. Scripts without vowel_set emit byte-identical DSP.

Unheard. Against the tube chain only ɪ and ɛ are within 6 percent at the scaffold lip reflection (-.82); the other nine vowels' tests are skipped, with the measurements in docs/research (radiation-model question open).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 17:37:14 +00:00
Aqua
080f236ef2 Articulatory tract sources, Story 2008 vowel area functions as data, independent formant estimators
docs/research/articulatory-vocal-tract-sources.md cites what the tract design takes from Story, Pink Trombone, VocalTractLab,
Maeda, Kelly-Lochbaum, nasal coupling and LF, with what could not be retrieved. The CSV is Story 2008 Table I (11 vowels, 44
sections). burg_formants.py (Burg LPC on a WAV) and tube_formants.py (frequency-domain tube chain on an area function) share no
code with the ladder. Unheard.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 16:13:29 +00:00
Aqua
1d859155d9 WordRender takes the Weksa phones line instead of hand-segmented phone specs; refuses bad input (3) and reports unsupported phones (4)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:43:20 +00:00
Aqua
ec73200093 Callers of FaustEmitter that render at a known rate pass it: the ladder's cell length follows the sample rate
The vocal ladder has one cell per sample, so exporting at the 48 kHz default and rendering at 44.1 kHz (daemon, IPA trial, song worker, graph renderer) shifted every formant down 8%. Speech-loss surface and AquaLower still take the default; the wasm compile path has no rate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 03:41:20 +00:00
Aqua
820c0c2d74 Exporter and probe report take the timeline's merged spline per surface; WordRender uses exporter splines
ControlSplineTimeline.SurfaceSplines is the one owner of which spline decides a surface (>=2 enabled splines merge into one bezier curve over the union of points; one spline unchanged). FaustExport and ProbeTimelineReport no longer sum per-spline offsets; WordRender drops its no-spline emit and timeline-driven sliders.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 02:16:52 +00:00
Aqua
3d01ff4db1 Speech: bare IPA n is an alveolar nasal; word script on the experiment scaffold; WordRender probe
PatchScript.GestureDescriptor had no case for n, so it fell to the alveolar
approximant (no velum). IpaGestureExperiment.BuildWordScript runs gestures back
to back on the same scaffold as BuildCandidateScript (refactored onto one
Scaffold). tools/WordRender renders a word offline through native libfaust,
driving surface sliders from ControlSplineTimeline because the Faust exporter's
summed spline offsets do not sequence gestures. Two tests. Nothing was heard:
the render is a near-pure sine with no vowel quality.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 00:57:36 +00:00
Aqua
9fa30ef9d3 aqua-listen: listening-test kit (manifest + clips -> one self-contained HTML page)
Blind randomized order and A/B pairs, consent first, keep/fix/drop + reason +
1-5 landed + headphones/speakers, localStorage autosave, export of verdict.json
and verdict.md. CSP default-src 'none': no network. 16 node tests; headless
Chromium smoke script. Nothing was heard.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 00:51:14 +00:00
Aqua
5a77dc8e83 AquaLower names lowered .dsp files through StoreFileName; pin Windows forms; note limits
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 10:38:28 +00:00
Aqua
80ebf39033 StoreFileName.Combine: batch ids from the command line cannot leave the artifact root
IpaTrialWorker song-score took --batch-id raw into Path.Combine; the orchestrator
sites share the new Combine. Tests cover traversal and absolute batch ids and the
underscore on device stems (nul.x, LPT1.x); drop the double From on the emitter name.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 10:33:47 +00:00
Aqua
afd0cc9ec3 StoreFileName: device stems no longer survive as the stem; IpaTrialWorker paths use it
"nul.x" was rewritten to "nul.x-<hash>", whose stem is still NUL on Windows;
rewritten device names now get a leading underscore, and the test asserts the
stem is not reserved. IpaTrialWorker candidate directories go through
StoreFileName.From; its remaining SafeName only slugs uuid-suffixed record ids.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 09:54:00 +00:00
Aqua
235a397de0 aqua-feel: effects shelf (SHELF.md, generated shelf.json, render+check)
55 entries (thruster, 9 Ding events, 4 earcon identities, 41 playground
patches): params with the DSP's own ranges, what each reacts to (event,
control or start; none reacts to audio), the render command, duration, and a
listening field that stays 'unheard'. shelf.mjs check runs every render
command and reads the WAVs back: finite, not silent, as long as listed, and
shelf.json/SHELF.md current. No dependencies added. Nothing was heard.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 12:40:06 +00:00
Aqua
33a4ccc0f2 earcon-workshop: review fixes (check count 882, lowpass comment says two poles)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 05:36:46 +00:00
Aqua
0c9708e376 Add Earcon Workshop: static earcon family generator, WAV/zip/JSON pack, node check
Six events x four Dings-derived identities, pure-JS deterministic renderer shared by
page and node, five sliders, offline export. Unheard: signal checks only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 02:07:26 +00:00
Aqua
d4dce3ec0c aqua-feel: keep the held envelope for attack only; activeEnd, crest and the plot use the raw one
The 30 ms release hold inflated activeEnd by up to ~170 ms on percussive items and
shifted crest, rms and noise-to-tone (808-hat activeMs 61 -> 187). Found in the second
review pass; values return to the first run's. Doc cell for PRC attackMs corrected.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 15:44:32 +00:00