zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit bff99514595f223ef7a18db1878878ad1838cfec
parent 17f6c22cbbcde40dfdef5d4afde71495b90a7aab
Author: friedolino78 <34608315+friedolino78@users.noreply.github.com>
Date:   Wed, 21 Oct 2020 22:46:16 +0200

Merge pull request #89 from friedolino78/lfoFix

make the cutoff in LFO a member variable
Diffstat:
Msrc/Synth/LFO.cpp | 1-
Msrc/Synth/LFO.h | 2++
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Synth/LFO.cpp b/src/Synth/LFO.cpp @@ -126,7 +126,6 @@ float LFO::baseOut(const char waveShape, const float phase) float LFO::biquad(float input) { float output; - char cutoff = 127; if (lfopars_.Pcutoff!=cutoff ) // calculate coeffs only if cutoff changed { cutoff = lfopars_.Pcutoff; diff --git a/src/Synth/LFO.h b/src/Synth/LFO.h @@ -77,6 +77,8 @@ class LFO float a2 = 0.0007508914611009499; float b1 = -1.519121359805288; float b2 = 0.5221249256496917; + + char cutoff = 127; VecWatchPoint watchOut;