aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2002-11-26 09:06:36 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2002-11-26 09:06:36 +0000
commit0b82733b98112bb7a094066f6ca9d40d97141bfa (patch)
tree1a1d251809bfd944876d76e3f290e26806192d1b
parenta9b31a37cbab6998e37a8f653d95c79bac66a43f (diff)
fixed coefficients (thanks to B.Saylor
svn path=/trunk/externals/ggee/; revision=245
-rwxr-xr-xfilters/equalizer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/filters/equalizer.c b/filters/equalizer.c
index 80d8410..ea1ebec 100755
--- a/filters/equalizer.c
+++ b/filters/equalizer.c
@@ -30,10 +30,10 @@ void equ_bang(t_rbjfilter *x)
t_float alpha = e_alpha(x->x_bw*0.01,omega);
t_float b0 = 1 + alpha*e_A(x->x_gain);
t_float b1 = -2.*cos(omega);
- t_float b2 = 1;
- t_float a0 = 1 + alpha;
+ t_float b2 = 1 - alpha*e_A(x->x_gain);
+ t_float a0 = 1 + alpha/e_A(x->x_gain);
t_float a1 = -2.*cos(omega);
- t_float a2 = 1 - alpha;
+ t_float a2 = 1 - alpha/e_A(x->x_gain);
/* post("bang %f %f %f",x->x_freq, x->x_gain, x->x_bw);*/