a-EQ: Revert one of the previous changes
[ardour.git] / libs / plugins / a-eq.lv2 / a-eq.c
index 7a15c8a14f3938f1c5e4e094422740ac71e6a6ab..b0851f2120f73bc3d47829414c19973f3f310ab4 100644 (file)
@@ -270,7 +270,7 @@ activate(LV2_Handle instance)
 static void linear_svf_set_peq(struct linear_svf *self, float gdb, float sample_rate, float cutoff, float bandwidth)
 {
        double f0 = (double)cutoff;
-       double q = (double)pow(2.0, 1.0 / bandwidth) / (pow(2.0, bandwidth) - 1.0);
+       double q = (double)pow(2.0, 0.5 * bandwidth) / (pow(2.0, bandwidth) - 1.0);
        double sr = (double)sample_rate;
        double A = pow(10.0, gdb/40.0);