Make graph radiation aperture own boundary flow
This commit is contained in:
parent
6540e5b54d
commit
683ee36b04
6 changed files with 85 additions and 13 deletions
|
|
@ -286,6 +286,20 @@ band instead of mostly 80-200 Hz vibration. `mama` still lacks enough
|
|||
500-1000 Hz vowel body, so nasal/oral coupling and radiation remain live
|
||||
pressure.
|
||||
|
||||
The next radiation cut moved aperture out of the output-only lane. Lip/beak
|
||||
opening now blends graph boundary reflection between a near-closed termination
|
||||
and the declared open-end reflection. Radiation reads boundary flow
|
||||
(`incoming - outgoing`) rather than raw incoming pressure, then applies a
|
||||
stronger radiation slope. Latest accepted utterance smoke is `mama` 0.5650,
|
||||
`papa` 0.8613, and `thrombosis` 0.4347 under
|
||||
`artifacts/parity/pink-trombone-utterance-logmel/20260527T122757617`; latest
|
||||
static smoke is open/front/nasal/ma/sibilant/closure
|
||||
0.6088/0.6826/0.6468/0.6153/0.4158/0.6198 under
|
||||
`artifacts/parity/pink-trombone-logmel/20260527T123141625`. This is a real
|
||||
authority fix, not the final mouth. The remaining articulation failure points
|
||||
at pressure storage/release around severe constrictions and better nasal/oral
|
||||
coupling, not another output color patch.
|
||||
|
||||
## Cut Line
|
||||
|
||||
The current `Voice.Tract` scalar proxy may survive only as an adapter over real
|
||||
|
|
|
|||
|
|
@ -181,8 +181,12 @@ Trombone anatomy:
|
|||
- Listening pressure remains active, but the smartphone-vibration failure has a
|
||||
named tract owner now. The signed two-port scatter moved `papa` into a
|
||||
PT-like 500-1000 Hz body band and pulled `thrombosis` RMS under reference
|
||||
level. `mama` still under-radiates the 500-1000 Hz vowel body, so nasal/oral
|
||||
branch and radiation behavior remain pressure.
|
||||
level. Radiation aperture now also owns boundary reflection, and graph
|
||||
radiation reads boundary flow (`incoming - outgoing`) through a stronger
|
||||
radiation high-pass slope instead of acting as a raw pressure tap. That
|
||||
reduces pressure-tap vocoder behavior and gives `mama`/`papa` better
|
||||
500-1000 Hz body, but `thrombosis` still loses too much voiced body during
|
||||
articulation. Pressure storage/release remains the next live cut.
|
||||
- `tools/vocal-tract-playground` exposes the same control surface for fast
|
||||
knob-twiddling through a small WebAudio witness.
|
||||
- `PinkTromboneReferenceDeclaresMissingWaveguideAuthority` prevents graph
|
||||
|
|
@ -198,9 +202,8 @@ sound like an actual mouth.
|
|||
Do not add another formant workaround. The next coherent implementation is one
|
||||
of these:
|
||||
|
||||
1. Improve graph source/radiation impedance normalization so source injection
|
||||
and radiation read/write pressure through path admittance rather than raw
|
||||
per-node gain.
|
||||
1. Add graph-native pressure storage/release around severe constrictions so
|
||||
stops are released by the acoustic graph instead of only by a source burst.
|
||||
2. Improve nasal/oral branch and radiation behavior so `mama` gets vowel body
|
||||
without reverting to low-band motor buzz.
|
||||
3. Use the log-mel artifact loop to golf `mama`, `papa`, and `thrombosis`
|
||||
|
|
|
|||
|
|
@ -634,7 +634,14 @@ public static class FaustEmitter
|
|||
var terminalIndex = AcousticTerminalIndex(patch, terminal);
|
||||
var terminalPath = $"/acoustic/terminals/{terminalIndex}";
|
||||
source.AppendLine($"{name}_graph_terminal_area_{SafeIdentifier(terminal.Name)} = max(0.000001, {TerminalAreaExpression(patch, paths, parameters, terminal)} * max(0.0, {parameters.Expression(OwnerField(terminalPath, "area_scale"), terminal.AreaScale)}));");
|
||||
source.AppendLine($"{name}_graph_terminal_reflection_{SafeIdentifier(terminal.Name)} = {parameters.Expression(OwnerField(terminalPath, "reflection"), terminal.Reflection)};");
|
||||
var reflection = parameters.Expression(OwnerField(terminalPath, "reflection"), terminal.Reflection);
|
||||
if (terminal.Kind == AcousticTerminalKind.Radiation &&
|
||||
radiation.TryGetValue(terminal.Port.Length == 0 ? terminal.Name : terminal.Port, out var terminalRadiation))
|
||||
{
|
||||
reflection = RadiationBoundaryReflectionExpression(patch, parameters, terminalRadiation, reflection);
|
||||
}
|
||||
|
||||
source.AppendLine($"{name}_graph_terminal_reflection_{SafeIdentifier(terminal.Name)} = {reflection};");
|
||||
}
|
||||
foreach (var node in graphNodes)
|
||||
{
|
||||
|
|
@ -766,17 +773,17 @@ public static class FaustEmitter
|
|||
var radiationPort = radiation[terminal.Port.Length == 0 ? terminal.Name : terminal.Port];
|
||||
var radiationIndex = AcousticRadiationPortIndex(patch, radiationPort);
|
||||
var radiationPath = $"/acoustic/radiation/{radiationIndex}";
|
||||
var opening = $"max(0.0, {parameters.Expression(OwnerField(radiationPath, "opening"), radiationPort.Opening)})";
|
||||
var opening = RadiationApertureExpression(patch, parameters, radiationPort);
|
||||
var loss = $"clip01({parameters.Expression(OwnerField(radiationPath, "loss"), radiationPort.Loss)})";
|
||||
var highpass = radiationPort.Kind is AcousticRadiationKind.Lip or AcousticRadiationKind.Beak
|
||||
? "80.0"
|
||||
? "220.0"
|
||||
: radiationPort.Kind == AcousticRadiationKind.Nostril
|
||||
? "40.0"
|
||||
? "90.0"
|
||||
: "20.0";
|
||||
var filter = $"fi.highpass(1, {highpass})";
|
||||
var kindGain = radiationPort.Kind == AcousticRadiationKind.Nostril ? "0.75" : "1.55";
|
||||
var pressure = $"({string.Join(" + ", ports.Select(port => GraphIncoming(name, port)))})";
|
||||
radiated.Add($"(({pressure} * 0.35 + ({pressure} : {filter}) * 0.65) * {opening} * {loss} * {kindGain})");
|
||||
var flow = $"({string.Join(" + ", ports.Select(port => $"({GraphIncoming(name, port)} - {GraphOutgoing(name, port)})"))})";
|
||||
radiated.Add($"(({flow} * 0.15 + ({flow} : {filter}) * 0.85) * {opening} * {loss} * {kindGain})");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -799,6 +806,32 @@ public static class FaustEmitter
|
|||
return $"{name}_acoustic_graph_radiated";
|
||||
}
|
||||
|
||||
private static string RadiationApertureExpression(
|
||||
SynthPatch patch,
|
||||
ParameterMap parameters,
|
||||
AcousticRadiationPort radiationPort)
|
||||
{
|
||||
var radiationIndex = AcousticRadiationPortIndex(patch, radiationPort);
|
||||
var radiationPath = $"/acoustic/radiation/{radiationIndex}";
|
||||
var rawOpening = $"max(0.0, {parameters.Expression(OwnerField(radiationPath, "opening"), radiationPort.Opening)})";
|
||||
return radiationPort.Kind is AcousticRadiationKind.Lip or AcousticRadiationKind.Beak
|
||||
? $"pow(clip01(({rawOpening}) / 1.5), 2.0)"
|
||||
: rawOpening;
|
||||
}
|
||||
|
||||
private static string RadiationBoundaryReflectionExpression(
|
||||
SynthPatch patch,
|
||||
ParameterMap parameters,
|
||||
AcousticRadiationPort radiationPort,
|
||||
string openReflection)
|
||||
{
|
||||
var aperture = RadiationApertureExpression(patch, parameters, radiationPort);
|
||||
var closedReflection = radiationPort.Kind is AcousticRadiationKind.Lip or AcousticRadiationKind.Beak
|
||||
? "0.96"
|
||||
: "0.72";
|
||||
return $"(({closedReflection}) * (1.0 - clip01({aperture})) + ({openReflection}) * clip01({aperture}))";
|
||||
}
|
||||
|
||||
private static string AcousticSourceExpression(
|
||||
SynthPatch patch,
|
||||
AcousticSourcePort port,
|
||||
|
|
|
|||
|
|
@ -172,3 +172,4 @@
|
|||
{"evidence":"Added `AcousticSourcePositionControl`, parser support for source position index/width/scale, Faust lowering as triangular source weights, and generated graph-tract injection source banks. Focused structural, utterance, and static graph parity tests passed. Latest utterance artifact artifacts/parity/pink-trombone-utterance-logmel/20260527T111349174: mama cosine 0.3418 RMS 1.0295, papa 0.8318 RMS 0.1806, thrombosis 0.4521 RMS 1.2855. Latest static artifact artifacts/parity/pink-trombone-logmel/20260527T111427660: open/front/nasal/ma/sibilant/closure cosine 0.5870/0.6632/0.6965/0.6598/0.4053/0.6137.","claim":"Moving constriction sources belong in graph-native source weighting, not in a PT-shaped moving backend. A fixed Faust graph can express moving frication/release by distributing one source gesture over fixed source terminals with live differentiable weights; this materially improves thrombosis because the b release no longer fires at the initial dental position.","timestamp":"2026-05-27T11:18:00+01:00","topic":"acoustic-source-position-control"}
|
||||
{"evidence":"Added mild cubic shaping to graph glottal source lowering after listening/spectral probes showed candidates were dominated by 80-200 Hz motor buzz. A direct LF coefficient expression was tested and cut: it improved some utterance cosines but overdrove the recursive graph and failed the static open-vowel fixture. Kept waveshaping passes static and utterance graph tests. Latest utterance artifact artifacts/parity/pink-trombone-utterance-logmel/20260527T114901634: mama cosine 0.4822 RMS 1.7942, papa 0.8602 RMS 0.4354, thrombosis 0.5202 RMS 1.6360. Latest static artifact artifacts/parity/pink-trombone-logmel/20260527T114959007: open/front/nasal/ma/sibilant/closure cosine 0.5827/0.6270/0.6342/0.5963/0.4496/0.5749. Band probes still show weak 500-1000 Hz vowel-body energy, so tract scattering/radiation remains the next pressure.","claim":"The graph voice needed richer glottal excitation, but not a half-ported LF formula. Mild waveshaping is a reusable source primitive improvement; the remaining smartphone-vibration character comes from missing formant-producing tract/radiation behavior, not only source harmonic poverty.","timestamp":"2026-05-27T11:52:00+01:00","topic":"acoustic-glottal-harmonic-shaping"}
|
||||
{"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"}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,27 @@
|
|||
|
||||
Current slice:
|
||||
|
||||
- Latest graph radiation pass moved articulation authority into the acoustic
|
||||
boundary instead of the output tap. `AcousticRadiationPort` aperture now
|
||||
blends boundary reflection between near-closed termination and declared
|
||||
open-end reflection. Radiation reads boundary flow (`incoming - outgoing`)
|
||||
and applies a stronger high-pass radiation slope, instead of reading raw
|
||||
incoming pressure and painting it after the fact.
|
||||
- Verification:
|
||||
`dotnet test tests\AquaSynth.Dsl.Tests\AquaSynth.Dsl.Tests.csproj --no-restore --disable-build-servers -p:UseSharedCompilation=false -p:BuildInParallel=false --filter "PinkTromboneAcceptedUtterancesReportGraphLogMelParityWhenFaustIsInstalled" -v minimal`
|
||||
passed. Latest utterance artifact:
|
||||
`artifacts/parity/pink-trombone-utterance-logmel/20260527T122757617`;
|
||||
`mama` cosine `0.5650` RMS `0.3297`, `papa` `0.8613` / `0.1282`,
|
||||
`thrombosis` `0.4347` / `0.2502`.
|
||||
- Static parity also passed:
|
||||
`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`.
|
||||
- The pass improved `mama`/`papa` band shape and made aperture a real graph
|
||||
impedance control, but `thrombosis` still loses voiced body and stops remain
|
||||
underpowered. Next pressure is graph-native pressure storage/release around
|
||||
severe constrictions and nasal/oral branch coupling, not more output color.
|
||||
|
||||
- Added time-varying Pink Trombone utterance reference fixtures before any Aqua
|
||||
utterance metric golf. `PinkTromboneReferenceRenderer.RenderUtterance`
|
||||
interpolates timestamped `PinkTromboneControlPoint` curves sample by sample,
|
||||
|
|
|
|||
|
|
@ -119,8 +119,8 @@ live_invariants:
|
|||
- The physical voice research packet now includes a practical implementation/researcher map (`research/physical-voice-modeling/PEOPLE.md`) and talk/transcript ledger (`research/physical-voice-modeling/talks/TALKS.md`). Birkholz/VocalTractLab pressures multi-level articulatory control and gestures; Story/TubeTalker pressures continuous parametric area functions and length/coupling; Smith pressures bidirectional delay-line scattering and fractional-delay waveguides; Fels/ArtiSynth pressures separation between biomechanics, acoustics, timeline controls, and diagnostics. These are reusable DSL semantics, not modules to clone.
|
||||
- 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 blends raw pressure with high-passed pressure instead of throwing away body energy. Latest static graph evidence: open/front/nasal/ma/sibilant/closure cosine 0.6067/0.6573/0.6871/0.6476/0.4502/0.6168.
|
||||
- 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 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; `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/20260527T120741887`: mama cosine 0.3262 / RMS 1.0722, papa 0.8567 / 0.1801, thrombosis 0.5762 / 0.8389. 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 nasal/oral branch and radiation behavior, especially `mama` 500-1000 Hz body.
|
||||
- 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 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/20260527T122757617`: mama cosine 0.5650 / RMS 0.3297, papa 0.8613 / 0.1282, thrombosis 0.4347 / 0.2502. 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue