summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/extra/hlshelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/PDa/extra/hlshelf.c')
-rw-r--r--apps/plugins/pdbox/PDa/extra/hlshelf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugins/pdbox/PDa/extra/hlshelf.c b/apps/plugins/pdbox/PDa/extra/hlshelf.c
index 8a5f82bedd..fd769921d0 100644
--- a/apps/plugins/pdbox/PDa/extra/hlshelf.c
+++ b/apps/plugins/pdbox/PDa/extra/hlshelf.c
@@ -110,7 +110,8 @@ void hlshelf_check(t_hlshelf *x)
110void hlshelf_bang(t_hlshelf *x) 110void hlshelf_bang(t_hlshelf *x)
111{ 111{
112 t_atom at[6]; 112 t_atom at[6];
113 float c0, c1, c2, d0, d1, d2; /* output coefs */ 113 /* float c0; unused */
114 float c1, c2, d0, d1, d2; /* output coefs */
114 float a1, a2, b1, b2, g1, g2; /* temp coefs */ 115 float a1, a2, b1, b2, g1, g2; /* temp coefs */
115 double xf; 116 double xf;
116 117
@@ -157,7 +158,7 @@ void hlshelf_bang(t_hlshelf *x)
157 } 158 }
158 159
159 /* form product */ 160 /* form product */
160 c0 = g1 * g2 * (float)(exp((double)(x->s_gain1) * 0.05f * 2.302585093f)); ; 161 /* c0 = g1 * g2 * (float)(exp((double)(x->s_gain1) * 0.05f * 2.302585093f)); unused */
161 c1 = a1 + a2; 162 c1 = a1 + a2;
162 c2 = a1 * a2; 163 c2 = a1 * a2;
163 d0 = 1.0f; 164 d0 = 1.0f;
@@ -166,7 +167,7 @@ void hlshelf_bang(t_hlshelf *x)
166 167
167 if (!hlshelf_check_stability(-c1/d0,-c2/d0,d0/d0,d1/d0,d2/d0)) { 168 if (!hlshelf_check_stability(-c1/d0,-c2/d0,d0/d0,d1/d0,d2/d0)) {
168 post("hlshelf: filter unstable -> resetting"); 169 post("hlshelf: filter unstable -> resetting");
169 c0=1.;c1=0.;c2=0.; 170 /* c0=1.; unused */ c1=0.;c2=0.;
170 d0=1.;d1=0.;d2=0.; 171 d0=1.;d1=0.;d2=0.;
171 } 172 }
172 173