Honor wave clocks in acoustic graph lowering

This commit is contained in:
Meta Vens 2026-05-26 19:09:14 +01:00
commit 6bc51fb287
6 changed files with 193 additions and 67 deletions

View file

@ -255,8 +255,12 @@ The first graph compiler cut now exists. It splits paths at terminal positions,
creates bidirectional segment state in Faust, scatters connected terminals by
area-weighted pressure continuity, injects declared source ports at source
terminals, and radiates declared radiation ports. Faust validation passes for a
three-path trachea/oral/nasal graph. The remaining limits are named rather than
hidden: segment delays are currently integer sample delays at the 44.1 kHz
target, co-located terminals fall back to the response proxy until same-node
aggregation is explicit, and the connection laws are compiled only as the first
area-scattering form.
three-path trachea/oral/nasal graph. The next cut added wave-clock lowering and
same-node aggregation: segment delay now follows the network's `wave_clock`
strategy (`unit`, half-sample, linear fractional, Lagrange, or Thiran/allpass),
and co-located terminals on one path become a shared graph node so source,
junction, boundary, and radiation roles can inhabit the same anatomical point.
The remaining limits are now parity and law depth rather than graph ownership:
connection laws beyond area/pressure/bypass need sharper physical semantics,
runtime morphology changes still require care around recompilation boundaries,
and PT-shaped `Voice.Tract` has not yet been demoted to graph sugar.

View file

@ -173,10 +173,16 @@ ports deterministically, scatters connection groups with area-weighted pressure
continuity, injects source terminals, and sums radiation terminals. Faust
validation passes on a three-path trachea/oral/nasal graph.
The remaining implementation pressure is now narrower: replace integer segment
delays with wave-clock-driven fractional delays, add explicit same-node
terminal aggregation for co-located sources/junctions, and broaden connection
laws beyond the first area-scattering form.
The graph compiler now also honors `wave_clock` delay strategy. Segment delay
comes from physical segment length, propagation speed, and `ma.SR`, then lowers
through unit-grid, half-sample, linear fractional, Lagrange, or Thiran/allpass
Faust delay primitives. Co-located terminals on one path now aggregate into a
single graph node, so a source can share an anatomical point with a junction or
boundary without disappearing.
The remaining implementation pressure is now narrower: broaden connection laws
with sharper physical semantics, demote PT-shaped `Voice.Tract` into graph
authoring sugar, and run the log-mel parity loop against the graph renderer.
Authority map for the required rebuild:
@ -200,11 +206,10 @@ Authority map for the required rebuild:
`branch` can remain only as shorthand that emits those records.
Exact Pink Trombone timing still needs pressure, but the next backend cut is no
longer "add more substeps." The current Faust-friendly compromise chooses a
unit-delay scattering grid from physical length. The deeper target remains
fractional-delay waveguide lowering whose clock comes from physical length,
propagation speed, and sample rate while morphology moves through runtime
controls without recompiling the patch.
longer "add more substeps." The graph renderer now has fractional-delay clock
semantics; the remaining parity question is whether PT compatibility commands
can be lowered into the graph closely enough to beat the current weak
`Voice.Tract` baseline.
## Cut Line