Add low-level tract waveguide primitives

This commit is contained in:
Meta Vens 2026-05-25 20:41:59 +01:00
commit 44c4e4feea
12 changed files with 438 additions and 45 deletions

View file

@ -18,7 +18,7 @@ named failure against Pink Trombone, but it does not own the anatomy:
- no derived area/reflection coefficient primitive;
- no traveling-wave state owner;
- no nasal junction primitive;
- no positioned excitation/injection events;
- no waveguide-applied positioned excitation/injection events;
- no substep/rate semantics;
- no parity renderer/score loop against PT output.
@ -47,20 +47,28 @@ named failure against Pink Trombone, but it does not own the anatomy:
2. `glottis`: reusable excitation primitive.
- Owns frequency, intensity, tenseness, aspiration, and reflection intent.
- Can feed tract voices or other voice treatments.
- Implemented as a named source primitive consumed by `tract` voices.
3. `tract_injection`: positioned noise/burst excitation.
- Owns constriction position, diameter/opening, turbulence, and release
transient behavior.
- Can be driven by envelopes, LFOs, learned speech controls, or consonant
gestures.
- Implemented as a named injection primitive consumed by `tract` voices; it
is not yet injected into waveguide cell state.
4. `nasal_junction`: velum-controlled branch primitive.
- Owns nasal opening and branch shape.
- Derives the three-way junction coefficients from local areas.
- Implemented as `nasal_branch` plus generated three-way junction equations
when a waveguide tract references the branch.
5. `waveguide_tract`: propagation primitive.
- Owns right/left traveling-wave state, substep rate, loss, and radiation.
- Consumes area/reflection fields and source/injection events.
- First oral-tube lowering exists: generated right/left section equations
consume `tract_shape` reflection coefficients and boundary reflections.
True substep execution and cell-local injection remain missing.
6. PT parity harness.
- Renders fixed PT references for vowels, nasals, fricatives, closures, and
@ -70,12 +78,20 @@ named failure against Pink Trombone, but it does not own the anatomy:
## First Cut
First owner implemented: `tract_shape`. It is the smallest useful owner:
reflection, waveguide, constriction, nasal junction, and morphology all depend
on a section diameter/area field. The current Faust proxy now consumes this
primitive through shape summaries and derived reflection energy instead of
silently inventing one universal tube. The next cut is to make a propagation
primitive consume the full reflection coefficient field.
Implemented owners: `tract_shape`, `glottis`, `tract_injection`,
`nasal_branch`, and first-pass `propagation=waveguide`.
`tract_shape` owns section diameter/area fields and reflection derivation.
`glottis` owns excitation quality. `tract_injection` owns positioned
frication/burst pressure. The current Faust proxy consumes these primitives
through shape summaries, reflection energy, glottal shaping, and injection
pressure instead of silently inventing all of them inside one helper. The
waveguide lowering consumes the derived oral reflection field as right/left
section state equations.
The next cut is cell-local events and timing: the oral/nasal tube now consumes
the full reflection coefficient fields, but PT's two tract steps per output
sample, cell-positioned turbulence injection, and obstruction-state transients
still need low-level owners.
## Cut Line

View file

@ -53,12 +53,18 @@ Current AquaSynth can express:
- runtime parameters with stable paths;
- reusable `tract_shape` declarations with authored diameter or area samples;
- derived tract areas and adjacent-section reflection coefficients;
- reusable `glottis` declarations for tract excitation quality;
- reusable `tract_injection` declarations for positioned frication/burst
pressure;
- reusable `nasal_branch` declarations with velum-controlled junctions;
- a `tract` voice command owned by `Voice.Tract`;
- Pink Trombone-shaped controls for intensity, tenseness, tongue body,
constriction, velum/nasal opening, turbulence, lip opening, and end
reflections;
- a Faust-lowered tract voice proxy with LF-style excitation, aspiration,
frication, oral resonators, and a velum-controlled nasal lane;
- generated oral bidirectional waveguide equations over a `tract_shape` section
field when `propagation=waveguide`;
- oscillator/noise sources;
- ADSR and staged rate/level envelopes;
- low/high/band/notch filters;
@ -68,16 +74,10 @@ Current AquaSynth can express:
Current AquaSynth cannot exactly express:
- a 44-cell bidirectional tract waveguide;
- independent right/left traveling-wave state arrays;
- a 28-cell nasal waveguide branch;
- a three-way velum/nose junction;
- per-section diameter targets as synthesis authority;
- application of diameter-squared reflection coefficients to bidirectional
waveguide propagation;
- a subgraph that steps twice per output sample;
- turbulence injected at a tract position into neighboring cells;
- obstruction-state release transients;
- turbulence applied to bidirectional waveguide cells;
- obstruction-state release transients derived from prior closure state;
- exact Pink Trombone LF glottal coefficient updates.
## Current Parity Rung
@ -94,6 +94,12 @@ Trombone anatomy:
- `tract_shape` owns reusable section diameter/area functions. The current
proxy consumes its shape summaries and derived reflection energy; future
waveguide lowering should consume the full coefficients.
- `glottis` and `tract_injection` own excitation and positioned noise/burst
controls consumed by tract voices.
- `propagation=waveguide` emits an oral right/left tube from the derived
reflection field. It is the first low-level propagation path, not full PT.
- `nasal_branch` adds a second diameter/area tube and generated three-way
oral/nasal scattering junction when used by a waveguide tract.
- The proxy script parses and emits Faust with live controls, but its missing
features explicitly name the waveguide authorities AquaSynth does not own.
- `tools/vocal-tract-playground` exposes the same control surface for fast