commit e5ffdd531bef86f24cae6ef80e6c67026b3a1c0a
parent 17f6c22cbbcde40dfdef5d4afde71495b90a7aab
Author: Friedolino <mkirchn@freenet.de>
Date: Wed, 21 Oct 2020 20:29:59 +0200
make the cutoff in LFO a member variable
Diffstat:
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;