mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-10-11 21:31:54 +02:00
Filter cutoff: range 50-20000 Hz, 0.1 step for smooth knob, default 8000 Hz
This commit is contained in:
parent
7152553a62
commit
4ec3cdf04c
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