mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 09:39:33 +00:00
Make low pass filter formula more straightforward
This commit is contained in:
parent
a268475f7a
commit
5165355abc
@ -22,7 +22,8 @@ public:
|
||||
output = input;
|
||||
initialized = true;
|
||||
}
|
||||
return output = output * (1 - alpha) + input * alpha;
|
||||
|
||||
return output += alpha * (input - output);
|
||||
}
|
||||
|
||||
void setCutOffFrequency(float cutOffFreq, float dt) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user