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