Pin the plosive burst gain window (three window mutants survived the rendered test); record the mutant table
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c3ebda07cc
commit
4ab3236d91
2 changed files with 27 additions and 0 deletions
|
|
@ -145,5 +145,13 @@ Re-measure 2026-11-12. The stress, nasal and lax-vowel figures were taken on mai
|
|||
/ʊ/ 486/894 against 478/850 (+1.7/+5.2 %), 469/1123 (+3.7/-20.4 %), 437/1023 (+11.3/-12.6 %). No defect found.
|
||||
- Phones the tract cannot make: `WordRender` refuses /t/, /d/, /k/, /l/ with exit 4 (`UNSUPPORTED PHONES (the tract has no gesture for them; nothing rendered): t`); the table holds p b m n s z ʃ ʒ ʍ w and the Story vowels. A direct `phoneme_gesture` on an unknown IPA symbol still falls back to an alveolar approximant (`GestureDescriptor`); not changed here.
|
||||
|
||||
Burst-window mutants (hand-applied in a scratch worktree on af0e44f plus the cut, never committed, 2026-11-12; `BurstGainAroundGesture`). The rendered test `PlosiveBurstExistsOnlyAroundItsOwnRelease` did not kill any of them, so `PlosiveBurstGainWindowIsOneRampEitherSide` reads the window off the spline (opens one ramp, 0.15 of the gesture, before the plosive; closed one ramp after it):
|
||||
|
||||
| Mutant | Rendered test | Window test |
|
||||
|---|---|---|
|
||||
| ramp 0.15 x duration to 0 | survived | killed |
|
||||
| ramp 0.15 x duration to 1.0 x duration | survived | killed |
|
||||
| last point at start+duration+ramp moved to start+duration+3*ramp | survived | killed |
|
||||
|
||||
Mutations (hand-applied, restored, each run against the named tests): pitch ratio ignored, burst removed, burst not shaped by opening, burst gain x20 (0.06 to 1.2), stress duration ignored,
|
||||
stress pitch ignored, stress amplitude ignored, secondary equal to primary, probe timeline sample rate re-hardcoded to 48000: nine of nine killed. Script: `work/mut-b3.sh` in the aqua workspace.
|
||||
|
|
|
|||
|
|
@ -130,6 +130,19 @@ public sealed class StressAndReleaseRenderTests(ITestOutputHelper output)
|
|||
Assert.True(trailing < atRelease / 10, "no burst noise in the vowel, the nasal and the tail after the plosive");
|
||||
}
|
||||
|
||||
// The burst gain's window, read off the spline itself: it opens one ramp (0.15 of the gesture) before the plosive and has closed one ramp after it.
|
||||
// The rendered test above survived three mutants of the window (ramp 0, ramp 1.0 of the gesture, end moved to 3 ramps), so the bound is pinned here.
|
||||
[Fact]
|
||||
public void PlosiveBurstGainWindowIsOneRampEitherSide()
|
||||
{
|
||||
IpaGestureExperimentTarget Phone(string label, string ipa, float seconds) => new($"w_{label}", ipa, "", seconds);
|
||||
var script = IpaGestureExperiment.BuildWordScript(
|
||||
[(Phone("0_n", "n", 0.095f), 1f), (Phone("1_a", "a", 0.18f), 1f), (Phone("2_b", "b", 0.095f), 1f), (Phone("3_a", "a", 0.18f), 1f), (Phone("4_n", "n", 0.095f), 1f)], 140);
|
||||
var window = PatchScript.Parse(script).ControlSplines.Single(s => s.SurfacePath.EndsWith("/release_flow", StringComparison.Ordinal) && s.Points.Any(p => p.Value > 0));
|
||||
const double start = 0.275, duration = 0.095, ramp = 0.15 * duration;
|
||||
Assert.Equal((start - ramp, start + duration + ramp), (window.Points.Min(p => (double)p.TimeSeconds), window.Points.Max(p => (double)p.TimeSeconds)), new TupleTolerance(1e-4));
|
||||
}
|
||||
|
||||
// /ɑ C ɑ/ at the scaffold's own durations (vowel 0.18 s, consonant 0.095 s). Returns the render and the consonant's [start, end).
|
||||
private (float[]? Samples, double From, double To) VowelConsonantVowel(string ipa, float frequency = 140)
|
||||
{
|
||||
|
|
@ -245,3 +258,9 @@ public sealed class FaustSkipTests
|
|||
Assert.Equal(toolchain is null, new FaustTheoryAttribute().Skip is not null);
|
||||
}
|
||||
}
|
||||
|
||||
file sealed class TupleTolerance(double eps) : IEqualityComparer<(double, double)>
|
||||
{
|
||||
public bool Equals((double, double) x, (double, double) y) => Math.Abs(x.Item1 - y.Item1) < eps && Math.Abs(x.Item2 - y.Item2) < eps;
|
||||
public int GetHashCode((double, double) value) => 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue