Map Zyn PAD detune and filter order

This commit is contained in:
Meta Vens 2026-05-15 12:19:04 +01:00
commit 01eea5eccf
10 changed files with 145 additions and 4 deletions

View file

@ -656,6 +656,16 @@ public sealed class PatchScriptTests
Assert.Empty(export.Warnings);
}
[Fact]
public void VoiceLowPassOrderSelectsFaustFilterOrder()
{
var patch = PatchScript.Parse("v w=saw f=80 lpf=.1 lpf_order=2");
var export = FaustEmitter.Emit(patch);
Assert.Equal(2, patch.Voices[0].Filter.LowPassOrder);
Assert.Contains("fi.lowpass(2, max(20.0,", export.Source);
}
[Fact]
public void VoiceEnvelopeUsesStandardAdsrAndNoteGate()
{