mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Filter cutoff: range 50-20000 Hz, 0.1 step for smooth knob, default 8000 Hz
This commit is contained in:
parent
68e023d08d
commit
1a7ef69d34
3 changed files with 4 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ public:
|
|||
}
|
||||
|
||||
void setCoefficients(float cutoff, float res, FilterType type) {
|
||||
cutoff = std::clamp(cutoff, 20.0f, static_cast<float>(sampleRate * 0.49));
|
||||
cutoff = std::clamp(cutoff, 50.0f, static_cast<float>(sampleRate * 0.49));
|
||||
resonance = std::clamp(res, 0.0f, 1.0f);
|
||||
filterType = type;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue