We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ebf181 commit 591b2bfCopy full SHA for 591b2bf
1 file changed
LibSource/BiquadFilter.h
@@ -88,8 +88,8 @@ class FilterStage {
88
89
static void setAllPass(float* coefficients, float omega, float q){
90
float K = tanf(omega);
91
- float norm = 1 / (1 + K / Q + K * K);
92
- coefficients[0] = (1 - K / Q + K * K) * norm;
+ float norm = 1 / (1 + K / q + K * K);
+ coefficients[0] = (1 - K / q + K * K) * norm;
93
coefficients[1] = 2 * (K * K - 1) * norm;
94
coefficients[2] = 1;
95
coefficients[3] = coefficients[1];
0 commit comments