diff options
Diffstat (limited to 'apps/plugins/pdbox/PDa/extra')
-rw-r--r-- | apps/plugins/pdbox/PDa/extra/gcanvas.c | 8 | ||||
-rw-r--r-- | apps/plugins/pdbox/PDa/extra/hlshelf.c | 7 |
2 files changed, 6 insertions, 9 deletions
diff --git a/apps/plugins/pdbox/PDa/extra/gcanvas.c b/apps/plugins/pdbox/PDa/extra/gcanvas.c index 99f5d3de71..1d40fd207e 100644 --- a/apps/plugins/pdbox/PDa/extra/gcanvas.c +++ b/apps/plugins/pdbox/PDa/extra/gcanvas.c | |||
@@ -135,7 +135,7 @@ void gcanvas_drawme(t_gcanvas *x, t_glist *glist, int firsttime) | |||
135 | x->x_obj.te_ypix + x->x_height*i/x->x_ygrid, | 135 | x->x_obj.te_ypix + x->x_height*i/x->x_ygrid, |
136 | x->x_width, 0); | 136 | x->x_width, 0); |
137 | } | 137 | } |
138 | 138 | #ifndef ROCKBOX | |
139 | { | 139 | { |
140 | /* outlets */ | 140 | /* outlets */ |
141 | int n = 3; | 141 | int n = 3; |
@@ -143,7 +143,6 @@ void gcanvas_drawme(t_gcanvas *x, t_glist *glist, int firsttime) | |||
143 | nplus = (n == 1 ? 1 : n-1); | 143 | nplus = (n == 1 ? 1 : n-1); |
144 | for (i = 0; i < n; i++) | 144 | for (i = 0; i < n; i++) |
145 | { | 145 | { |
146 | #ifndef ROCKBOX | ||
147 | int onset = x->x_obj.te_xpix + (x->x_width - IOWIDTH) * i / nplus; | 146 | int onset = x->x_obj.te_xpix + (x->x_width - IOWIDTH) * i / nplus; |
148 | if (firsttime) | 147 | if (firsttime) |
149 | sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xo%d\n", | 148 | sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xo%d\n", |
@@ -156,14 +155,12 @@ void gcanvas_drawme(t_gcanvas *x, t_glist *glist, int firsttime) | |||
156 | glist_getcanvas(glist), x, i, | 155 | glist_getcanvas(glist), x, i, |
157 | onset, x->x_obj.te_ypix + x->x_height - 1, | 156 | onset, x->x_obj.te_ypix + x->x_height - 1, |
158 | onset + IOWIDTH, x->x_obj.te_ypix + x->x_height); | 157 | onset + IOWIDTH, x->x_obj.te_ypix + x->x_height); |
159 | #endif /* ROCKBOX */ | ||
160 | } | 158 | } |
161 | /* inlets */ | 159 | /* inlets */ |
162 | n = 0; | 160 | n = 0; |
163 | nplus = (n == 1 ? 1 : n-1); | 161 | nplus = (n == 1 ? 1 : n-1); |
164 | for (i = 0; i < n; i++) | 162 | for (i = 0; i < n; i++) |
165 | { | 163 | { |
166 | #ifndef ROCKBOX | ||
167 | int onset = x->x_obj.te_xpix + (x->x_width - IOWIDTH) * i / nplus; | 164 | int onset = x->x_obj.te_xpix + (x->x_width - IOWIDTH) * i / nplus; |
168 | if (firsttime) | 165 | if (firsttime) |
169 | sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xi%d\n", | 166 | sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xi%d\n", |
@@ -176,10 +173,9 @@ void gcanvas_drawme(t_gcanvas *x, t_glist *glist, int firsttime) | |||
176 | glist_getcanvas(glist), x, i, | 173 | glist_getcanvas(glist), x, i, |
177 | onset, x->x_obj.te_ypix, | 174 | onset, x->x_obj.te_ypix, |
178 | onset + IOWIDTH, x->x_obj.te_ypix + 1); | 175 | onset + IOWIDTH, x->x_obj.te_ypix + 1); |
179 | #endif /* ROCKBOX */ | ||
180 | } | 176 | } |
181 | } | 177 | } |
182 | 178 | #endif /* ROCKBOX */ | |
183 | } | 179 | } |
184 | 180 | ||
185 | 181 | ||
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) | |||
110 | void hlshelf_bang(t_hlshelf *x) | 110 | void 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 | ||