Skip to content

Commit

Permalink
fix(polysynth): compile errors post rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarLiner committed Sep 30, 2024
1 parent fbb5688 commit 5158f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/polysynth/src/dsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ impl<T: Scalar> FilterImpl<T> {
}
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())
Expand Down Expand Up @@ -549,7 +549,7 @@ impl<T: Scalar> Filter<T> {
}
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 =
Expand Down

0 comments on commit 5158f12

Please sign in to comment.