Normalize graph radiation flow gain

This commit is contained in:
Meta Vens 2026-05-27 13:45:07 +01:00
commit 8d49e13d2a
5 changed files with 18 additions and 11 deletions

View file

@ -301,11 +301,14 @@ at pressure storage/release around severe constrictions and better nasal/oral
coupling, not another output color patch.
A small glottal-brightness pass then added higher modal harmonics to the
reusable glottal source rather than adding a PT-only exciter. Latest accepted
utterance smoke is `mama` 0.5705, `papa` 0.8622, and `thrombosis` 0.4355 under
`artifacts/parity/pink-trombone-utterance-logmel/20260527T123628148`; static
smoke remains stable under
`artifacts/parity/pink-trombone-logmel/20260527T123734700`. This helps the
reusable glottal source rather than adding a PT-only exciter. The post-flow
radiation normalization now uses `4.0`, a middle point that improves utterance
RMS without pushing static closure into the soft-clip guardrail. Latest
accepted utterance smoke is `mama` 0.5712, `papa` 0.8659, and `thrombosis`
0.4379 under
`artifacts/parity/pink-trombone-utterance-logmel/20260527T124230804`; static
smoke remains passing under
`artifacts/parity/pink-trombone-logmel/20260527T124311305`. This helps the
voiced fixtures a little, but it is not the missing articulation mechanism.
## Cut Line

View file

@ -664,7 +664,7 @@ public static class FaustEmitter
source.AppendLine($"{name}_graph_connection_coupling_{SafeIdentifier(connection.Name)} = clip01({parameters.Expression(OwnerField(connectionPath, "coupling"), connection.Coupling)});");
source.AppendLine($"{name}_graph_connection_loss_{SafeIdentifier(connection.Name)} = clip01({parameters.Expression(OwnerField(connectionPath, "loss"), connection.Loss)});");
}
source.AppendLine($"{name}_graph_radiation_gain = 3.0;");
source.AppendLine($"{name}_graph_radiation_gain = 4.0;");
foreach (var sourceName in network.SourcePorts)
{

View file

@ -174,3 +174,4 @@
{"evidence":"Added signed two-port area-discontinuity scattering for ordinary same-path graph interior nodes, using live adjacent segment areas. The first sign convention worsened low-band buzz and failed papa; reversing the reflection sign for Aqua's right/left state convention passed utterance and static graph tests. Latest utterance artifact artifacts/parity/pink-trombone-utterance-logmel/20260527T120741887: mama cosine 0.3262 RMS 1.0722, papa 0.8567 RMS 0.1801, thrombosis 0.5762 RMS 0.8389. Latest static artifact artifacts/parity/pink-trombone-logmel/20260527T120832506: open/front/nasal/ma/sibilant/closure cosine 0.6067/0.6573/0.6871/0.6476/0.4502/0.6168. Band probe shows papa now has about 49% of energy in 500-1000 Hz instead of mostly 80-200 Hz; mama still lacks enough 500-1000 Hz vowel body.","claim":"The graph needed a real tube-discontinuity owner, not transparent internal averaging. Same-path interior nodes now scatter by signed adjacent segment area, which materially reduces the vibrating-smartphone failure for papa/thrombosis while leaving nasal/oral coupling and radiation as the next audible pressure.","timestamp":"2026-05-27T12:10:00+01:00","topic":"acoustic-graph-area-discontinuity-scatter"}
{"evidence":"Graph radiation aperture now feeds boundary reflection, blending lip/beak ports from near-closed positive reflection to the declared open-end reflection, and radiation output reads boundary flow (`incoming - outgoing`) through a stronger radiation high-pass slope instead of raw incoming pressure. Focused utterance parity passed with artifacts/parity/pink-trombone-utterance-logmel/20260527T122757617: mama cosine 0.5650 RMS 0.3297, papa 0.8613 RMS 0.1282, thrombosis 0.4347 RMS 0.2502. Static parity passed with artifacts/parity/pink-trombone-logmel/20260527T123141625: open/front/nasal/ma/sibilant/closure cosine 0.6088/0.6826/0.6468/0.6153/0.4158/0.6198. A burst-pressure boost was tested and cut because it did not improve release articulation.","claim":"Radiation aperture is a graph boundary impedance owner, not an output-only mute. Reading radiated boundary flow reduces PT-shaped vocoder behavior and improves mama/papa body bands, but thrombosis still exposes missing graph-native pressure storage/release around severe constrictions.","timestamp":"2026-05-27T12:35:00+01:00","topic":"acoustic-radiation-boundary-flow"}
{"evidence":"Added a small higher-harmonic brightness term to graph glottal source lowering after radiation-flow normalization exposed weak 1-2.5 kHz voiced energy. Focused utterance parity passed with artifacts/parity/pink-trombone-utterance-logmel/20260527T123628148: mama cosine 0.5705 RMS 0.3355, papa 0.8622 RMS 0.1326, thrombosis 0.4355 RMS 0.2504. Static parity passed with artifacts/parity/pink-trombone-logmel/20260527T123734700: open/front/nasal/ma/sibilant/closure cosine 0.6081/0.6823/0.6495/0.6162/0.4158/0.6193.","claim":"Glottal brightness belongs in the reusable source primitive, not in a PT-only post-filter. The tweak slightly improves voiced utterance body without destabilizing static fixtures, but it does not solve the remaining articulation failure.","timestamp":"2026-05-27T12:40:00+01:00","topic":"acoustic-glottal-brightness"}
{"evidence":"After switching graph radiation from raw pressure to boundary flow, recalibrated the graph radiation gain from 3.0 to 4.0. A 4.5 trial improved utterance RMS but pushed static fixtures closer to soft-clip influence, so 4.0 was kept. Focused utterance parity passed with artifacts/parity/pink-trombone-utterance-logmel/20260527T124230804: mama cosine 0.5712 RMS 0.4431, papa 0.8659 RMS 0.1768, thrombosis 0.4379 RMS 0.3324. Static parity passed with artifacts/parity/pink-trombone-logmel/20260527T124311305: open/front/nasal/ma/sibilant/closure cosine 0.5942/0.6710/0.6369/0.5955/0.4201/0.6143.","claim":"Radiation gain is part of the post-flow normalization contract, not a substitute for articulation. The kept value improves underpowered utterance output while preserving static guardrails; pressure storage/release remains the actual consonant problem.","timestamp":"2026-05-27T12:45:00+01:00","topic":"acoustic-radiation-flow-normalization"}

View file

@ -24,11 +24,14 @@ Current slice:
severe constrictions and nasal/oral branch coupling, not more output color.
- Added a small higher-harmonic brightness term to the reusable glottal source.
Utterance smoke passed under
`artifacts/parity/pink-trombone-utterance-logmel/20260527T123628148`:
`mama` `0.5705`, `papa` `0.8622`, `thrombosis` `0.4355`.
`artifacts/parity/pink-trombone-utterance-logmel/20260527T123628148`.
Post-flow radiation gain was then recalibrated from `3.0` to `4.0`; `4.5`
was tested and rejected as too close to static soft-clip pressure.
Latest utterance artifact:
`artifacts/parity/pink-trombone-utterance-logmel/20260527T124230804`;
`mama` `0.5712`, `papa` `0.8659`, `thrombosis` `0.4379`.
Static smoke passed under
`artifacts/parity/pink-trombone-logmel/20260527T123734700` and stayed close
to the radiation checkpoint.
`artifacts/parity/pink-trombone-logmel/20260527T124311305`.
- Added time-varying Pink Trombone utterance reference fixtures before any Aqua
utterance metric golf. `PinkTromboneReferenceRenderer.RenderUtterance`

View file

@ -120,7 +120,7 @@ live_invariants:
- Physical voice implementation has started moving PT pressure into neutral acoustic owners: `AcousticPath`, `AcousticTerminal`, `AcousticConnection`, `AcousticSourcePort`, `AcousticBranch`, `AcousticRadiationPort`, `WaveClockPolicy`, and `AcousticPortNetwork`. Parser commands `path`, `terminal`, `connect`, `source_port`, `branch`, `radiation_port`, `wave_clock`, and `acoustic_network` now exist. Existing `tract_shape`, `glottis`, `tract_injection`, `nasal_branch`, and `tract` commands populate acoustic records as compatibility aliases while the current `Voice.Tract` Faust renderer still owns audio.
- `acoustic` / `acoustic_voice` can now render an `AcousticPortNetwork` through a compact Faust response proxy or, when typed terminals are present, a compiled bidirectional Faust segment graph. Graph lowering splits paths at terminal positions, aggregates co-located terminals into graph nodes, orders connection ports deterministically, scatters area-weighted/pressure/bypass connection groups, injects source terminals even at connected nodes, and sums radiation terminals. Segment delay follows physical segment length and the network `wave_clock` strategy through unit-grid, half-sample, linear fractional, Lagrange, or Thiran/allpass Faust delay primitives. Source, branch, radiation, terminal, and connection controls can bind through ordinary Aqua parameters into emitted Faust. PT-shaped `tract` authoring now routes accepted parity through `propagation=graph`; the old waveguide parity lane is not a comparison baseline or historical pressure lane.
- Pink Trombone log-mel parity now writes graph candidates only. Generated tract graphs mirror live `/pink/...` tract bindings into acoustic source, terminal, connection, radiation, and path-area fields. Graph generation stopped baking first-frame tongue/constriction/lip morphology into the path; `AcousticPath.AreaControl` now turns tongue/constriction/lip controls into live area expressions at graph sample points. Velum owns nasal branch coupling/aperture, and the first nasal tube sample is no longer allowed to decide the velum opening. Graph radiation now uses aperture as a boundary impedance owner: lip/beak opening blends boundary reflection from near-closed termination to declared open-end reflection, and radiation reads boundary flow (`incoming - outgoing`) through a stronger radiation slope instead of raw incoming pressure. Latest static graph evidence: open/front/nasal/ma/sibilant/closure cosine 0.6088/0.6826/0.6468/0.6153/0.4158/0.6198.
- PT expressive parity should decompose into reusable Aqua primitives before audio golf: `tract_shape` owns continuous diameter/area geometry over normalized position, physical length (`length_cm`), interpolation/resampling, derived reflection coefficients, and per-cell acoustic delay; `AcousticAreaControl` owns live sampled morphology controls on a path; ordinary same-path graph interiors now own signed two-port area-discontinuity scattering; `glottis` owns excitation controls with mild harmonic waveshaping and a small higher-harmonic brightness term for graph sources; `tract_injection` owns positioned frication/burst controls; `AcousticSourcePort.Transient` owns graph-native release/click energy; sustained `TurbulenceJet` lowering owns a narrow-open aperture gate so closed constrictions no longer hiss; `AcousticSourcePositionControl` owns differentiable runtime weights over fixed source terminals so moving articulators can move source energy without recompiling the graph; `AcousticRadiationPort` owns aperture-dependent boundary reflection and flow radiation; `nasal_branch` owns a second diameter/area tube and branch aperture; `tract_motion` owns control slew and obstruction threshold; `AcousticPortNetwork` owns graph lowering. `PinkTromboneReferenceRenderer` ports the pinned MIT `chdh/pink-trombone-mod` DSP source (`external/pink-trombone-mod` at 359c2d3b42b10280404c1650dc601902112b4c90), and reference WAVs before `artifacts/parity/pink-trombone-utterances/20260526T211902375` are invalid. The accepted PT utterance curriculum is mama, papa, and thrombosis; lulek was cut because its control sketch taught a bad artifact. Latest graph-only utterance smoke under `artifacts/parity/pink-trombone-utterance-logmel/20260527T123628148`: mama cosine 0.5705 / RMS 0.3355, papa 0.8622 / 0.1326, thrombosis 0.4355 / 0.2504. A direct LF coefficient source was tested and cut because it overdrove the graph and broke static open vowel. A naive midpoint admittance scatter was tested and cut because it collapsed `mama`; the kept area-discontinuity scatter needed the opposite reflection sign for this graph state convention. Next pressure is graph-native storage/release around severe constrictions plus nasal/oral branch coupling; output coloring alone is not allowed to impersonate articulation.
- PT expressive parity should decompose into reusable Aqua primitives before audio golf: `tract_shape` owns continuous diameter/area geometry over normalized position, physical length (`length_cm`), interpolation/resampling, derived reflection coefficients, and per-cell acoustic delay; `AcousticAreaControl` owns live sampled morphology controls on a path; ordinary same-path graph interiors now own signed two-port area-discontinuity scattering; `glottis` owns excitation controls with mild harmonic waveshaping and a small higher-harmonic brightness term for graph sources; `tract_injection` owns positioned frication/burst controls; `AcousticSourcePort.Transient` owns graph-native release/click energy; sustained `TurbulenceJet` lowering owns a narrow-open aperture gate so closed constrictions no longer hiss; `AcousticSourcePositionControl` owns differentiable runtime weights over fixed source terminals so moving articulators can move source energy without recompiling the graph; `AcousticRadiationPort` owns aperture-dependent boundary reflection, flow radiation, and current post-flow normalization; `nasal_branch` owns a second diameter/area tube and branch aperture; `tract_motion` owns control slew and obstruction threshold; `AcousticPortNetwork` owns graph lowering. `PinkTromboneReferenceRenderer` ports the pinned MIT `chdh/pink-trombone-mod` DSP source (`external/pink-trombone-mod` at 359c2d3b42b10280404c1650dc601902112b4c90), and reference WAVs before `artifacts/parity/pink-trombone-utterances/20260526T211902375` are invalid. The accepted PT utterance curriculum is mama, papa, and thrombosis; lulek was cut because its control sketch taught a bad artifact. Latest graph-only utterance smoke under `artifacts/parity/pink-trombone-utterance-logmel/20260527T124230804`: mama cosine 0.5712 / RMS 0.4431, papa 0.8659 / 0.1768, thrombosis 0.4379 / 0.3324. A direct LF coefficient source was tested and cut because it overdrove the graph and broke static open vowel. A naive midpoint admittance scatter was tested and cut because it collapsed `mama`; the kept area-discontinuity scatter needed the opposite reflection sign for this graph state convention. Next pressure is graph-native storage/release around severe constrictions plus nasal/oral branch coupling; output coloring alone is not allowed to impersonate articulation.
- If dotnet builds hang in this workspace, stop orphan dotnet workers and retry with `--disable-build-servers -p:UseSharedCompilation=false -p:BuildInParallel=false`; plain parallel/shared builds can stall without useful diagnostics.
- eSpeak NG is an early parity reference for timing, IPA coverage, and log-mel pressure, not an anatomy oracle or final target.
- Do not expand into prosody, emotional context, personality, or broad Weksa expressivity until the tiny IPA utterance harness can show useful loss movement.