diff --git a/src/AquaSynth.Core/Model.cs b/src/AquaSynth.Core/Model.cs index 9755f66..ba38129 100644 --- a/src/AquaSynth.Core/Model.cs +++ b/src/AquaSynth.Core/Model.cs @@ -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, diff --git a/tests/AquaSynth.Dsl.Tests/GlottalSourceSpectrumTests.cs b/tests/AquaSynth.Dsl.Tests/GlottalSourceSpectrumTests.cs index 8307d61..d1125f6 100644 --- a/tests/AquaSynth.Dsl.Tests/GlottalSourceSpectrumTests.cs +++ b/tests/AquaSynth.Dsl.Tests/GlottalSourceSpectrumTests.cs @@ -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); diff --git a/tools/aqua-listen/kits/voice-source/render.sh b/tools/aqua-listen/kits/voice-source/render.sh index 37940bb..670edfc 100755 --- a/tools/aqua-listen/kits/voice-source/render.sh +++ b/tools/aqua-listen/kits/voice-source/render.sh @@ -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 [jobs] # Needs CULTLIB_ROOT at the admitted CultLib revision and AQUASYNTH_FAUST_HOME. Under load each render is minutes (a Faust compile).