Commit graph

398 commits

Author SHA1 Message Date
Aqua
11bcbd0621 Weksa phones line reader: strict typed parse, unsupported phones reported, stress moves only intensity
The DSL's IPA table becomes PatchScript.TryIpaDescriptor so the reader asks the one table instead of keeping its own.
Fixture is Weksa PR 16 at a7bc2478, byte for byte.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:43:20 +00:00
Aqua
3fe877cbf4 Radiation highpass is a fixed 200 Hz, not 40 + 500 * aperture
The corner sat at 540 Hz for a vowel, above /u/'s F1, and the envelope read that F1 at 450 Hz. The ladder's lip cell already carries the lip area; aperture stays the gain consonant closures use. Tests: u F1 250-350 and F2 near 876; i F1 band widened to 20% (the harmonic-line reading of i moves 230-260 Hz with the corner).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:29:17 +00:00
Aqua
0242f385e5 Vowel gestures keep the radiating aperture open: the lip cell already carries the lip area
The gesture also scaled the aperture (an output gain and highpass corner) by lip cm / 2.2, so /u/ (lip .05 cm) rendered 29 dB under /i/. A vowel now holds aperture at 1; consonant closures still use it. Test: /u/ rms within -10..+3 dB of /i/, F2 under 1000 Hz.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:04:03 +00:00
Aqua
f633804bd3 Vowel gestures: tract shapes found by grid search over the exported ladder
EmitVowelGesture now holds tongue index, tongue and lip diameters (cm) from anchors measured by impulse response toward textbook F1/F2 (i 271/2313, u 292/876, a 703/1084, plus ae, e, o, schwa), with the constriction opened. The old targets put a at 310/2130 and i at 620/1620 through the same ladder. Tests render the authored gestures end to end and read LPC envelope peaks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 03:41: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
840d95a092 vocal_network: Kelly-Lochbaum ladder replaces the per-path delay*loss primitive
Each waveguide path is a one-sample-per-cell ladder (N = round(L*SampleRate/c)) written as a Faust letrec; the glottal source
feeds cell 0 and the lip wave is the radiated signal. A branch port joining two paths of the network is a three-port velum
junction (Pink Trombone's), opening*coupling*0.4 cm wide. Lip reflection is the radiation load's live reflection.
The Gaussian area deformation of TerminalAreaExpression and SegmentAreaExpression is one helper, DeformedAreaExpression,
which the ladder cells also use. PrimitiveAreaExpression and PrimitiveDelayExpression are deleted. FaustExportOptions.SampleRate
(default 48000) is passed by the native runtime. Scaffold: contact opening 1, nostril radiation load.
Tests: F1/F2 of i, schwa, a, vowel ordering, stability with velum open, nasal exit with the mouth shut; the aliasing test
now measures the whole non-harmonic grid since the tract reshapes the harmonics.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 03:21:59 +00:00
Aqua
e9273775c2 Tests: serialize the classes that compile through native libfaust
Three native-compiling classes running at once crashed the test host (reproduced at 271 passed, every run, once a third
native class existed). They now share one xUnit collection.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 03:21:59 +00:00
Aqua
c7c4086e45 Glottal source: band-limited saw through a one-pole lowpass with SourcePort.Tilt
Replaces the sine os.osc in the primitive vocal source. Tilt (default .5, DSL tilt=, surface /vocal/sources/i/tilt): 0 brightest, 1 steepest rolloff; cutoff 200*2^((1-tilt)*5) Hz. Opening and tension amplitude factors kept. ProbeTimelineReport models only the source's flow level (no oscillator), so tilt does not enter it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 02:23:57 +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
91bea79b30 Merge pull request 'StoreFileName tests: device lookalikes and IPA pair distinctness' (#15) from aqua/store-filename-hardening into main 2026-11-07 11:52:47 +00:00
Aqua
aec15751cc StoreFileName tests: device lookalikes and IPA pair distinctness
Adds CON.tar.gz to the device-stem cases, a lookalike theory (trailing
space, superscript digit, accented letter, trailing dot) and a 6x6 IPA
round grid whose ids and script paths must stay distinct. Tests only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 11:51:44 +00:00
84f892fc99 Merge pull request 'IpaGestureExperiment onto StoreFileName (stacked on #11)' (#14) from aqua/store-filename-ipa into main 2026-11-07 10:39:13 +00:00
d11872e815 Merge pull request 'One StoreFileName in Core: no id collisions, no '..' escape' (#11) from aqua/safe-filename-collide-dotdot into main 2026-11-07 10:39:10 +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
30b926c776 Merge branch 'aqua/safe-filename-collide-dotdot' into aqua/store-filename-ipa
# Conflicts:
#	tests/AquaSynth.Dsl.Tests/StoreFileNameTests.cs
2026-11-07 10:33:56 +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
b906d98ed5 Merge remote-tracking branch 'origin/aqua/safe-filename-collide-dotdot' into aqua/store-filename-ipa 2026-11-07 09:54:00 +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
4865830d82 IpaGestureExperiment: make the target/variant candidate id injective
("a","b-c") and ("a-b","c") both joined to "a-b-c" before the map and wrote the
same files. Each part goes through StoreFileName.From first and the pair is
joined with '/', which no mapped part can contain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 09:54:00 +00:00
Aqua
4a3921c1a9 Merge remote-tracking branch 'origin/aqua/safe-filename-collide-dotdot' into aqua/store-filename-ipa 2026-11-07 09:29:55 +00:00
Aqua
de754b5b8c StoreFileName: route IpaTrialOrchestrator and FaustCompiler through it; daemon test uses ".."
Nibu's review at abfc816: the daemon test passed against the old sanitizer
because "../../escape" never escaped there; the bare ".." did. IpaTrialOrchestrator
(SafeName, raw BatchId in Path.Combine) and FaustCompiler.SafeArtifactName were
second owners of the same decision.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 09:29:43 +00:00
Aqua
28e37f5cbb IpaGestureExperiment: use StoreFileName, delete the last SafeFileName copy
Round and candidate ids in the IPA experiment bundle went through a private
sanitiser that mapped distinct ids ("a/b", "a-b") to one file and accepted
".." as a round id. They now go through the shared StoreFileName.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 06:35:25 +00:00
Aqua
81362a7013 Merge remote-tracking branch 'origin/main' into aqua/store-filename-ipa 2026-11-07 06:33:52 +00:00
d6252dd6a5 Merge pull request 'Spike: AOT-compile thruster v5 to a native lib with bounded rpm (Linux; Windows/Unity unverified)' (#13) from aqua/faust-aot-thruster-spike into main 2026-11-07 06:33:47 +00:00
Aqua
dda7a4f26b spike: README reports 74 of 400000 as a single run's figure
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 05:33:49 +00:00
Aqua
a42cc13e5f spike: reword to Nibu's #13 review (no preemption reading, cheap-on-this-host, control counts)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 04:28:50 +00:00
c136e8fea0 Merge pull request 'Scoping: Faust DSP (thruster v5) in a Unity player on Windows and Linux' (#12) from aqua/faust-unity-player-scoping into main 2026-11-07 02:24:21 +00:00
Aqua
e4c6b2d3b3 spike: pin cores, per-overrun wall timestamps, noop control; max block time marked unexplained
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 01:24:21 +00:00
Aqua
489405a377 Merge branch 'aqua/faust-unity-player-scoping' into aqua/faust-aot-thruster-spike 2026-11-07 01:24:21 +00:00
Aqua
9c3ae654ca docs: mark spike max block time unexplained; spike is a bare C loop, not a player
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 01:24:09 +00:00
Aqua
5d724f5f5b spike: drop stray generated header (run.sh generates it into build/)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:21:17 +00:00
Aqua
22af1e935e spike: AOT-compile thruster v5 to a C-ABI native lib with bounded rpm, test, timing script
Linux only; Windows/Unity unverified.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:21:17 +00:00
Aqua
ecf381e714 docs: apply review 824 to Faust Unity scoping
Restate the AOT limit in Recommendation and Unverified list, drop the unsourced
"browser lane", and make the p99.9/max pass lines Aqua's ruling with the
quiet-host caveat for the max line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:21:10 +00:00
Aqua
0efce042f3 docs: state the AOT patch-set limitation up front
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 23:19:35 +00:00
Aqua
448e3b04b0 docs: scope Faust DSP delivery to a Unity player (Windows/Linux)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 22:17:59 +00:00
Aqua
abfc816804 StoreFileName: close review findings (collisions, case, device stems, length, renderId)
- Pass-through ids may not end in "-<16 hex>", so a rewritten name fed back as an id cannot alias it; hash widened 32 -> 64 bits.
- Ids with uppercase are rewritten (case-insensitive filesystems).
- Windows device stems (CON PRN AUX NUL COM0-9 LPT0-9, any extension) are rewritten.
- Stem capped at 100 chars; longer ids carry the hash.
- Daemon samples/ write now goes through StoreFileName.From(renderId).
- Tests: rewritten-as-id, case-only, device stems, overlong; daemon test uses a compiling patch so the samples/ write is reached when Faust is present.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 20:00:30 +00:00
Aqua
396da106cd One StoreFileName in Core: no id collisions, no '..' escape
The daemon and native-runtime SafeFileName copies sanitised differently:
the daemon mapped a/b, a b, a:b and a-b to the same name (a later patch
overwrote an earlier artifact) and returned ".." unchanged, so a
sessionId or runId of ".." resolved one directory above the store.

Replace both with AquaSynth.Dsl.StoreFileName.From. Ids within
[A-Za-z0-9._-] pass through; any other id is sanitised and suffixed with
the first 8 hex of SHA-256 of the original. Empty, "." and all-dot ids
are refused (ArgumentException).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 18:29:25 +00:00
df21ea7bea Merge pull request 'Earcon Workshop: static earcon family generator with WAV/JSON export (unheard)' (#9) from aqua/earcon-workshop into main 2026-11-06 05:36:47 +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
fa1bf3fdbc Merge pull request 'aqua-feel: headless feel meter + gate; fix PRC SYNTH1 clipping and thruster low-rpm hiss' (#8) from aqua/aqua-feel into main 2026-11-05 15:44:33 +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
Aqua
1bf99e5c3f aqua-feel: review fixes (attack on low tones, disarmed guards, bounded waivers, drift test)
- attack: peak-hold envelope and a 150 ms window; a 261 Hz tone no longer reads its
  first half-cycle as the attack (warm-bell 0.67 ms -> 3.8 ms, declared 4 ms).
- gate: a rule whose id matches no item fails a full run; waivers carry a bound and
  cover only up to it; a missing metric fails its rule; silent items fail once;
  --only runs gate as partial; silent threshold is -70 dBFS.
- DingCatalogTests: lowered Dings fed to the meter must match the catalog.
- README states NTR window/Q dependence, short-buffer loudness padding and the assumed
  Ding command gain; faust-toolchain-boundary notes the v5 manifest predates the mix change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 15:42:13 +00:00
Aqua
eb35ca545d Add aqua-feel: headless feel meter and gate; fix PRC SYNTH1 clipping and thruster low-rpm hiss
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>
2026-11-05 15:31:35 +00:00
d8c625c532 Merge pull request 'Docs: soundscape grammar for the Ratatoskr generative symphony (draft)' (#4) from aqua/docs/soundscape-grammar into main 2026-11-05 11:54:51 +00:00
810b44db9e Merge pull request 'Faust on Linux: FaustRender probe, toolchain notes, thruster v5 manifest' (#5) from aqua/faust-linux-render into main 2026-11-05 11:54:44 +00:00
5f85effc07 Merge pull request 'Listening trial: blinded A/B thruster noise sweep (static page)' (#7) from aqua/listening-trial into main 2026-11-05 11:54:39 +00:00
c1d2a9468e Merge pull request 'Static in-browser playground (faustwasm) for AquaSynth patches' (#6) from aqua/playground into main 2026-11-05 11:54:38 +00:00
4b965f39b5 Merge pull request 'Add thruster Faust patch with an rpm control' (#3) from aqua/thruster-patch into main 2026-11-05 11:54:38 +00:00