Route tract playground through graph renderer

This commit is contained in:
Meta Vens 2026-05-26 21:08:23 +01:00
commit d1e55c5872
10 changed files with 353 additions and 182 deletions

View file

@ -156,3 +156,4 @@
{"timestamp":"2026-05-26T20:55:00+01:00","topic":"physical-voice-side-branch-scattering-blocker","claim":"Nasal graph parity is blocked by the side-branch port law, not by a missing scalar gain. Terminal-specific admittance in connection pressure is structurally cleaner but does not move PT log-mel metrics. Per-port outgoing coupling and squared generated velum opening both suppress nasal leakage only by making oral fixtures nearly silent, showing that the current pressure-wave normalization lets a weak side branch become an accidental loudness path. The next architecture needs power/flow-consistent branch-port scattering that separates junction admittance from outgoing wave normalization.","evidence":"Focused optional PT log-mel runs after per-port outgoing coupling produced open/front graph RMS ratios near 0.0017 with nasal cosine 0.5338; squared generated velum opening produced open/front RMS ratios near 0.0038/0.0039 and nasal RMS 1.5729. Both were cut. The retained terminal-admittance pressure solve preserves the previous source/radiation metrics."}
{"timestamp":"2026-05-26T21:20:00+01:00","topic":"physical-voice-side-branch-admittance-progress","claim":"Side-branch graph scattering now uses terminal-specific admittance plus a floored area-ratio pressure normalization for outgoing branch waves. This is not final power parity, but it improves nasal cosine/RMS without erasing the oral vowel cosine win. Raw per-port coupling, squared velum mapping, and lip/beak radiation gain were tested and cut.","evidence":"Latest optional PT log-mel run: graph open 0.6202 RMS 0.1703, graph front 0.6417 RMS 0.1752, graph nasal 0.5159 RMS 1.4815, graph sibilant 0.2268 RMS 1.0643, graph closure 0.1117 RMS 1.8085. Previous source/radiation baseline was open 0.6393 RMS 0.3559, front 0.6596 RMS 0.3661, nasal 0.4607 RMS 1.6914, sibilant 0.2320 RMS 0.9158, closure 0.1170 RMS 1.6650."}
{"timestamp":"2026-05-26T21:35:00+01:00","topic":"physical-voice-frication-source-pressure","claim":"Generated graph `TurbulenceJet` ports now treat sustained turbulence and burst as separate pressure authorities: continuous frication uses max(turbulence, burst) for source pressure instead of being throttled by burst alone, while turbulence still gates noise amount. Fully ungated noise was tested and cut because it hurt closure-release.","evidence":"Optional PT log-mel after pressure fix: sibilant graph cosine 0.2302 / RMS 1.1387 and closure graph cosine 0.1145 / RMS 1.6627. Setting noise to 1 barely changed sibilant (0.2303) and worsened closure (0.1113 / RMS 1.8777), so that part was reverted."}
{"timestamp":"2026-05-26T21:07:36+01:00","topic":"vocal-tract-playground-actual-graph-audition","claim":"The vocal tract playground no longer owns a browser-native source/filter audio witness. Audition audio is now rendered from the actual Aqua DSL tract graph path by posting controls to a .NET renderer that emits tract propagation=graph, lowers through FaustEmitter, renders with FaustCompiler, writes a WAV, and serves it back to the browser.","evidence":"Built tools/TractGraphRenderer successfully with disabled build servers. Direct renderer smoke wrote artifacts/vocal-tract-playground/smoke.wav with peak 0.15414488, RMS 0.066947475, and no warnings. Live POST http://127.0.0.1:5126/render returned a rendered WAV and /renders/... served HTTP 200. node --check passed for playground app.js and serve.mjs."}

View file

@ -29,6 +29,7 @@ surfaces:
zyn_pad_reference_renderer: tools/zyn-reference/ZynPadReference.cpp
zyn_voice_reference_renderer: tools/zyn-reference/ZynVoiceReference.cpp
vocal_tract_playground: tools/vocal-tract-playground/index.html
tract_graph_renderer: tools/TractGraphRenderer/TractGraphRenderer.csproj
zyn_reference_build_patches: tools/zyn-reference/patches
zyn_project_fixtures: tests/AquaSynth.Dsl.Tests/Fixtures/ZynAddSubFX/ProjectAuthored
core_package: AquaSynth.Core 0.1.0-alpha.3
@ -69,6 +70,7 @@ modules:
speech_distributed_training_tests: tests/AquaSynth.Dsl.Tests/SpeechDistributedTrainingTests.cs
vocal_tract_learning_tests: tests/AquaSynth.Dsl.Tests/VocalTractLearningTests.cs
vocal_tract_playground: tools/vocal-tract-playground
tract_graph_renderer: tools/TractGraphRenderer
sfxr: src/AquaSynth.Core/SfxrParams.cs
analysis: src/AquaSynth.Core/AudioAnalysis.cs
mel_cepstral_warp_effect: src/AquaSynth.Core/MelCepstralWarpEffect.cs

View file

@ -2,6 +2,23 @@
Current slice:
- Replaced the vocal tract playground's browser-native source/filter witness
with actual Aqua DSL graph rendering. The page now posts the visible controls
to `/render`; `tools/TractGraphRenderer` emits `tract propagation=graph`,
lowers through `FaustEmitter`, renders through `FaustCompiler.RenderAsync`,
writes a WAV under `artifacts/vocal-tract-playground`, and the browser plays
that returned audio.
- The fake JS `createTractSynth` path was deleted so the playground has one
audio authority: Aqua DSL -> Faust graph lowering. The UI is render-on-demand,
not realtime, because recompiling/rendering Faust per audition is the honest
current machine.
- Verification:
`dotnet build tools\TractGraphRenderer\TractGraphRenderer.csproj --disable-build-servers -p:UseSharedCompilation=false -p:BuildInParallel=false`
passed; direct renderer smoke wrote `artifacts\vocal-tract-playground\smoke.wav`
with peak `0.15414488`, RMS `0.066947475`, and no warnings; live server
`POST http://127.0.0.1:5126/render` returned a WAV and `/renders/...wav`
served HTTP 200; `node --check` passed for `app.js` and `serve.mjs`.
- Added `tools/vocal-tract-playground`, a static WebAudio playground for the
current AquaSynth `VocalTractControlTarget` surface. It exposes the 14 base
voice-patch target controls plus six mel-envelope bands: these are the knobs