From ea114969b8c1aa2b3ba5385833fac82b4c49aaef Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 26 May 2026 20:23:57 +0100 Subject: [PATCH] Gate graph tract parity smoke metrics --- .../PinkTromboneLogMelParityTests.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/AquaSynth.Dsl.Tests/PinkTromboneLogMelParityTests.cs b/tests/AquaSynth.Dsl.Tests/PinkTromboneLogMelParityTests.cs index c7f636b..d8b9311 100644 --- a/tests/AquaSynth.Dsl.Tests/PinkTromboneLogMelParityTests.cs +++ b/tests/AquaSynth.Dsl.Tests/PinkTromboneLogMelParityTests.cs @@ -10,6 +10,14 @@ public sealed class PinkTromboneLogMelParityTests { ["closure-release"] = -0.1f }; + private static readonly IReadOnlyDictionary GraphSmokeCosineFloors = new Dictionary + { + ["open-vowel"] = 0.55f, + ["front-vowel"] = 0.57f, + ["nasal-vowel"] = 0.48f, + ["sibilant"] = 0.18f, + ["closure-release"] = 0.05f + }; [Fact] public void PinkTromboneReferenceRendererProducesAudibleFixtureAudio() @@ -76,6 +84,12 @@ public sealed class PinkTromboneLogMelParityTests Assert.True( comparison.LogMelCosineSimilarity >= FixtureSmokeCosineFloors.GetValueOrDefault(fixture.Id, SmokeCosineFloor), $"{Report(fixture, comparison, "waveguide")}{Environment.NewLine}artifacts: {artifactDir}"); + Assert.True( + graphComparison.LogMelCosineSimilarity >= GraphSmokeCosineFloors.GetValueOrDefault(fixture.Id, SmokeCosineFloor), + $"{Report(fixture, graphComparison, "graph")}{Environment.NewLine}artifacts: {artifactDir}"); + Assert.True( + graphComparison.RmsRatio is > 0.03f and < 2.25f, + $"{Report(fixture, graphComparison, "graph")}{Environment.NewLine}artifacts: {artifactDir}"); } Directory.CreateDirectory(artifactDir);