[PD] pvoc 64 bit?
gmx
atuc at gmx.de
Tue Dec 17 14:02:49 CET 2013
On 15.12.2013 06:12, sebfumaster at aol.com wrote:
> Hi,
>
> I had luck just editing pvoc.c (in pd source code) and
> changing garray_getfloatarray( to garray_getfloatwords( and then editing
> the makefile (targets) and then "make" in the bsaylor folder
>
> ..hope it helps
>
> I've been following the list for awhile, this is my first post
>
> So hello,
> --Seb
i also had luck, but had to change this:
--- pvoc~.c 2010-11-10 02:32:14.000000000 +0100
+++ pvoc~alex.c 2013-12-17 13:58:48.851109448 +0100
@@ -47,7 +47,7 @@
t_object x_obj;
t_symbol *arrayname;
t_garray *arrayobj;
- t_float *array;
+ t_word *array;
int arraysize;
double *window;
int fftsize;
@@ -90,8 +90,8 @@
return 0.0;
else {
int x_1 = t;
- double y_1 = x->array[x_1];
- double y_2 = x->array[x_1 + 1];
+ double y_1 = x->array[x_1].w_float;
+ double y_2 = x->array[x_1 + 1].w_float;
return (y_2 - y_1) * (t - x_1) + y_1;
}
@@ -281,7 +281,7 @@
if (*x->arrayname->s_name) pd_error(x, "pvoc~: %s: no such array", x->arrayname->s_name);
x->array = NULL;
x->arraysize = 0;
- } else if ( ! garray_getfloatarray(x->arrayobj, &x->arraysize, &x->array)) {
+ } else if ( ! garray_getfloatwords(x->arrayobj, &x->arraysize, &x->array)) {
error("%s: bad template", x->arrayname->s_name);
x->array = NULL;
x->arraysize = 0;
best alex
>
> ------------------------------
>
> _______________________________________________
> Pd-list mailing list
> Pd-list at iem.at <mailto:Pd-list at iem.at>
> to manage your subscription (including un-subscription) see
> http://lists.puredata.info/listinfo/pd-list
>
>
> End of Pd-list Digest, Vol 105, Issue 17
> ****************************************
>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
More information about the Pd-list
mailing list