From 5158f1286f118b7aba30e7fc95d722e438d074cd Mon Sep 17 00:00:00 2001 From: Nathan Graule Date: Mon, 30 Sep 2024 17:35:10 +0200 Subject: [PATCH] fix(polysynth): compile errors post rebase --- examples/polysynth/src/dsp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/polysynth/src/dsp.rs b/examples/polysynth/src/dsp.rs index 1542912..62f7050 100644 --- a/examples/polysynth/src/dsp.rs +++ b/examples/polysynth/src/dsp.rs @@ -422,7 +422,7 @@ impl FilterImpl { } FilterType::Svf => Self::Svf( svf_clipper(), - Svf::new(samplerate, cutoff, T::one() - resonance), + Svf::new(samplerate, cutoff, T::one() - resonance).with_saturator(Sinh), ), FilterType::Digital => Self::Biquad( Biquad::lowpass(cutoff / samplerate, T::one()) @@ -549,7 +549,7 @@ impl Filter { } FilterType::Svf if !matches!(self.fimpl, FilterImpl::Svf(..)) => FilterImpl::Svf( svf_clipper(), - Svf::new(self.samplerate, cutoff, T::one() - resonance), + Svf::new(self.samplerate, cutoff, T::one() - resonance).with_saturator(Sinh), ), FilterType::Digital if !matches!(self.fimpl, FilterImpl::Biquad(..)) => { let resonance =