Fix rotary knob fader curve mapping functions, lower highpass frequency

in DSP
This commit is contained in:
Armin 2026-07-17 15:26:06 +02:00
commit 8c0f55f1e7
4 changed files with 9 additions and 3 deletions

View file

@ -21,7 +21,7 @@ public:
}
void setCoefficients(float cutoff, float res, FilterType type) {
cutoff = std::clamp(cutoff, 50.0f, static_cast<float>(sampleRate * 0.49));
cutoff = std::clamp(cutoff, 20.0f, static_cast<float>(sampleRate * 0.49));
resonance = std::clamp(res, 0.0f, 1.0f);
filterType = type;