voice-source-1 record: rosenberg output deficit is -2.5 dB (measured -2.54), render.sh ref runs noise=.05

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Aqua 2026-11-14 00:23:53 +00:00
commit 1c18ca5347
3 changed files with 3 additions and 3 deletions

View file

@ -479,7 +479,7 @@ public sealed record SourcePort(
float NoiseHighPassHz = 0f);
// The glottal flow waveform of a primitive source port. Saw is the band-limited saw the tilt lowpass shapes; Rosenberg is the
// Rosenberg C pulse (open phase 0.4 of the period, return phase 0.16), zero-mean and scaled to the saw's rms at the source. The rendered level still differs: the tract passes less of the pulse (-2.4 dB output rms on /ɑmi/).
// Rosenberg C pulse (open phase 0.4 of the period, return phase 0.16), zero-mean and scaled to the saw's rms at the source. The rendered level still differs: the tract passes less of the pulse (-2.5 dB output rms on /ɑmi/, measured -2.54).
public enum GlottalPulse
{
Saw,

View file

@ -155,7 +155,7 @@ public sealed class GlottalSourceSpectrumTests(ITestOutputHelper output)
double Rms(float[] w) => Math.Sqrt(w.Sum(v => (double)v * v) / w.Length);
var difference = Db(Rms(pulse) / Rms(saw));
output.WriteLine($"rosenberg rms {Rms(pulse):E3} saw rms {Rms(saw):E3} ({difference:F2} dB)");
// The source rms is matched, the rendered level is not: the tract passes the saw's strong upper harmonics and the pulse has none (-3.2 dB here, -2.4 dB on /ɑmi/).
// The source rms is matched, the rendered level is not: the tract passes the saw's strong upper harmonics and the pulse has none (-3.2 dB here, -2.5 dB on /ɑmi/, measured -2.54).
Assert.InRange(difference, -6, 0);
var fundamental = Magnitude(pulse, Pitch);
var between = Magnitude(pulse, Pitch * 1.5);

View file

@ -1,6 +1,6 @@
#!/bin/bash
# Renders the voice-source-1 kit: the phrase /ɑmi/ (WordRender, 140 Hz, 48 kHz mono 16-bit), six renders that differ from the scaffold in ONE source field each:
# ref (none) ros (pulse=rosenberg) w20 (noise=.33, white, HNR ~20) h20 (noise_hp=2000 noise=.33) h25 (noise_hp=2000 noise=.165) h15 (noise_hp=2000 noise=.6)
# ref (noise=.05, the scaffold's own effective level: byte-identical to a render with no --source) ros (pulse=rosenberg) w20 (noise=.33, white, HNR ~20) h20 (noise_hp=2000 noise=.33) h25 (noise_hp=2000 noise=.165) h15 (noise_hp=2000 noise=.6)
# then ros_matched: ros scaled by the measured output-rms ratio saw/rosenberg, so a pair can be heard without the level difference.
# render.sh <repo-root> <out-root> [jobs]
# Needs CULTLIB_ROOT at the admitted CultLib revision and AQUASYNTH_FAUST_HOME. Under load each render is minutes (a Faust compile).