Skip to content

Commit 5158f12

Browse files
committed
fix(polysynth): compile errors post rebase
1 parent fbb5688 commit 5158f12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/polysynth/src/dsp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ impl<T: Scalar> FilterImpl<T> {
422422
}
423423
FilterType::Svf => Self::Svf(
424424
svf_clipper(),
425-
Svf::new(samplerate, cutoff, T::one() - resonance),
425+
Svf::new(samplerate, cutoff, T::one() - resonance).with_saturator(Sinh),
426426
),
427427
FilterType::Digital => Self::Biquad(
428428
Biquad::lowpass(cutoff / samplerate, T::one())
@@ -549,7 +549,7 @@ impl<T: Scalar> Filter<T> {
549549
}
550550
FilterType::Svf if !matches!(self.fimpl, FilterImpl::Svf(..)) => FilterImpl::Svf(
551551
svf_clipper(),
552-
Svf::new(self.samplerate, cutoff, T::one() - resonance),
552+
Svf::new(self.samplerate, cutoff, T::one() - resonance).with_saturator(Sinh),
553553
),
554554
FilterType::Digital if !matches!(self.fimpl, FilterImpl::Biquad(..)) => {
555555
let resonance =

0 commit comments

Comments
 (0)