Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • jwilkes/purr-data
  • aggraef/purr-data
  • samthursfield/purr-data
  • prakhar/purr-data
  • yadu05/purr-data
  • NegiAkash890/purr-data
  • prateekpardeshi/purr-data
  • Shruti3004/purr-data
  • hidimpu/purr-data
  • Atseosi/purr-data
  • piyushjasaiwal/purr-data
  • deveshprasad/purr-data
  • skm_7/purr-data
  • sankt/purr-data
  • ashim_tom/purr-data
  • dineshsoni02/purr-data
  • chaitanya1-coder/purr-data
  • Nitish0007/purr-data
  • nitin/purr-data
  • shuvam09/purr-data
  • gabrielabittencourt/purr-data
  • sivasai/purr-data
  • flachyjoe/purr-data
  • ishankaler/purr-data
  • prateek/purr-data
  • RukshanJS/purr-data
  • rajatshrm648/purr-data
  • Srashti/purr-data
  • Paarth/purr-data
  • AniruddhaGawali/purr-data
  • brittneyjuliet/purr-data
  • prakharagarwal1/purr-data
  • Shreyanshpaliwalcmsmn/purr-data
  • k_amrut/purr-data
  • AyushAnand/purr-data
  • Va16hav07/purr-data
36 results
Show changes
Showing
with 45 additions and 40 deletions
...@@ -255,7 +255,7 @@ static void fdn_dsp(t_fdn *x, t_signal **sp) ...@@ -255,7 +255,7 @@ static void fdn_dsp(t_fdn *x, t_signal **sp)
dsp_add(fdn_perform, dsp_add(fdn_perform,
5, 5,
&x->x_ctl, &x->x_ctl,
sp[0]->s_n, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[0]->s_vec,
sp[1]->s_vec, sp[1]->s_vec,
sp[2]->s_vec); sp[2]->s_vec);
......
...@@ -31,11 +31,11 @@ typedef struct ffpoly_struct ...@@ -31,11 +31,11 @@ typedef struct ffpoly_struct
t_float x_f; t_float x_f;
t_outlet *x_outlet; t_outlet *x_outlet;
t_int *x_coef; int *x_coef;
t_int x_poly_order; int x_poly_order;
t_int x_field_order; int x_field_order;
t_int x_lastpackedcoef; int x_lastpackedcoef;
...@@ -49,7 +49,7 @@ static void ffpoly_compute(t_ffpoly *x, t_floatarg fcoef) ...@@ -49,7 +49,7 @@ static void ffpoly_compute(t_ffpoly *x, t_floatarg fcoef)
int in = (int)fcoef; int in = (int)fcoef;
int fo = x->x_field_order; int fo = x->x_field_order;
int po = x->x_poly_order; int po = x->x_poly_order;
t_int* c = x->x_coef; int* c = x->x_coef;
int i, out; int i, out;
in %= fo; in %= fo;
...@@ -124,8 +124,8 @@ t_class *ffpoly_class; ...@@ -124,8 +124,8 @@ t_class *ffpoly_class;
static void *ffpoly_new(t_floatarg fpolyorder, t_floatarg ffieldorder) static void *ffpoly_new(t_floatarg fpolyorder, t_floatarg ffieldorder)
{ {
t_int polyorder = (int)fpolyorder; int polyorder = (int)fpolyorder;
t_int fieldorder = (int)ffieldorder; int fieldorder = (int)ffieldorder;
t_ffpoly *x = (t_ffpoly *)pd_new(ffpoly_class); t_ffpoly *x = (t_ffpoly *)pd_new(ffpoly_class);
...@@ -135,7 +135,7 @@ static void *ffpoly_new(t_floatarg fpolyorder, t_floatarg ffieldorder) ...@@ -135,7 +135,7 @@ static void *ffpoly_new(t_floatarg fpolyorder, t_floatarg ffieldorder)
x->x_poly_order = polyorder; x->x_poly_order = polyorder;
x->x_field_order = fieldorder; x->x_field_order = fieldorder;
x->x_coef = (t_int *)malloc((x->x_poly_order + 1) * sizeof(int)); x->x_coef = (int *)malloc((x->x_poly_order + 1) * sizeof(int));
/* set poly to f(x) = x */ /* set poly to f(x) = x */
ffpoly_coefficients(x, x->x_field_order); ffpoly_coefficients(x, x->x_field_order);
......
...@@ -145,9 +145,9 @@ static void junction_dsp(t_junction *x, t_signal **sp) ...@@ -145,9 +145,9 @@ static void junction_dsp(t_junction *x, t_signal **sp)
x->x_ctl.c_norm = norm; x->x_ctl.c_norm = norm;
dsp_add(junction_perform, 2, &x->x_ctl, sp[0]->s_n); dsp_add(junction_perform, 2, &x->x_ctl, (t_int)sp[0]->s_n);
/* dsp_add(junction_perform, 4, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);*/ /* dsp_add(junction_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);*/
} }
......
...@@ -85,7 +85,7 @@ static t_int *lattice_perform(t_int *w) ...@@ -85,7 +85,7 @@ static t_int *lattice_perform(t_int *w)
static void lattice_dsp(t_lattice *x, t_signal **sp) static void lattice_dsp(t_lattice *x, t_signal **sp)
{ {
dsp_add(lattice_perform, 4, &x->x_ctl, sp[0]->s_n, dsp_add(lattice_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec); sp[0]->s_vec, sp[1]->s_vec);
} }
......
...@@ -149,7 +149,7 @@ static t_int *permut_perform(t_int *w) ...@@ -149,7 +149,7 @@ static t_int *permut_perform(t_int *w)
static void permut_dsp(t_permut *x, t_signal **sp) static void permut_dsp(t_permut *x, t_signal **sp)
{ {
permut_resize_table(x, sp[0]->s_n); permut_resize_table(x, sp[0]->s_n);
dsp_add(permut_perform, 4, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec); dsp_add(permut_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
} }
......
...@@ -129,7 +129,7 @@ static void qmult_dsp(t_qmult *x, t_signal **sp) ...@@ -129,7 +129,7 @@ static void qmult_dsp(t_qmult *x, t_signal **sp)
x->x_ctl.c_output[i] = sp[i+8]->s_vec; x->x_ctl.c_output[i] = sp[i+8]->s_vec;
} }
dsp_add(qmult_perform, 2, &x->x_ctl, sp[0]->s_n); dsp_add(qmult_perform, 2, &x->x_ctl, (t_int)sp[0]->s_n);
} }
......
...@@ -101,7 +101,7 @@ static void qnorm_dsp(t_qnorm *x, t_signal **sp) ...@@ -101,7 +101,7 @@ static void qnorm_dsp(t_qnorm *x, t_signal **sp)
x->x_ctl.c_output[i] = sp[i+4]->s_vec; x->x_ctl.c_output[i] = sp[i+4]->s_vec;
} }
dsp_add(qnorm_perform, 2, &x->x_ctl, sp[0]->s_n); dsp_add(qnorm_perform, 2, &x->x_ctl, (t_int)sp[0]->s_n);
} }
......
...@@ -75,7 +75,7 @@ static t_int *ramp_perform(t_int *w) ...@@ -75,7 +75,7 @@ static t_int *ramp_perform(t_int *w)
static void ramp_dsp(t_ramp *x, t_signal **sp) static void ramp_dsp(t_ramp *x, t_signal **sp)
{ {
dsp_add(ramp_perform, 3, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec); dsp_add(ramp_perform, 3, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec);
} }
void ramp_free(void) void ramp_free(void)
......
...@@ -357,7 +357,7 @@ static void resofilt_dsp(t_resofilt *x, t_signal **sp) ...@@ -357,7 +357,7 @@ static void resofilt_dsp(t_resofilt *x, t_signal **sp)
dsp_add(x->x_dsp, dsp_add(x->x_dsp,
6, 6,
&x->x_ctl, &x->x_ctl,
sp[0]->s_n, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[0]->s_vec,
sp[1]->s_vec, sp[1]->s_vec,
sp[2]->s_vec, sp[2]->s_vec,
......
...@@ -139,7 +139,8 @@ static t_int *sbosc_tilde_perform(t_int *w) ...@@ -139,7 +139,8 @@ static t_int *sbosc_tilde_perform(t_int *w)
static void sbosc_tilde_dsp(t_sbosc_tilde *x, t_signal **sp) static void sbosc_tilde_dsp(t_sbosc_tilde *x, t_signal **sp)
{ {
dsp_add(sbosc_tilde_perform, 6, x, dsp_add(sbosc_tilde_perform, 6, x,
sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[3]->s_vec, sp[0]->s_n); sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[3]->s_vec,
(t_int)sp[0]->s_n);
} }
......
...@@ -159,7 +159,7 @@ static void scrollgrid1D_dsp(t_scrollgrid1D *x, t_signal **sp) ...@@ -159,7 +159,7 @@ static void scrollgrid1D_dsp(t_scrollgrid1D *x, t_signal **sp)
dsp_add(scrollgrid1D_perform, dsp_add(scrollgrid1D_perform,
9, 9,
&x->x_ctl, &x->x_ctl,
sp[0]->s_n, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[0]->s_vec,
sp[1]->s_vec, sp[1]->s_vec,
sp[2]->s_vec, sp[2]->s_vec,
......
...@@ -129,7 +129,7 @@ static void statwav_tilde_dsp(t_statwav_tilde *x, t_signal **sp) ...@@ -129,7 +129,7 @@ static void statwav_tilde_dsp(t_statwav_tilde *x, t_signal **sp)
statwav_tilde_set(x, x->x_arrayname); statwav_tilde_set(x, x->x_arrayname);
dsp_add(statwav_tilde_perform, 4, x, dsp_add(statwav_tilde_perform, 4, x,
sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); sp[0]->s_vec, sp[1]->s_vec, (t_int)sp[0]->s_n);
} }
......
...@@ -276,7 +276,7 @@ static void tabreadmix_tilde_dsp(t_tabreadmix_tilde *x, t_signal **sp) ...@@ -276,7 +276,7 @@ static void tabreadmix_tilde_dsp(t_tabreadmix_tilde *x, t_signal **sp)
tabreadmix_tilde_set(x, x->x_arrayname); tabreadmix_tilde_set(x, x->x_arrayname);
dsp_add(tabreadmix_tilde_perform, 4, x, dsp_add(tabreadmix_tilde_perform, 4, x,
sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); sp[0]->s_vec, sp[1]->s_vec, (t_int)sp[0]->s_n);
} }
......
...@@ -203,7 +203,7 @@ static void xfm_dsp(t_xfm *x, t_signal **sp) ...@@ -203,7 +203,7 @@ static void xfm_dsp(t_xfm *x, t_signal **sp)
dsp_add(xfm_perform, dsp_add(xfm_perform,
8, 8,
&x->x_ctl, &x->x_ctl,
sp[0]->s_n, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[0]->s_vec,
sp[1]->s_vec, sp[1]->s_vec,
sp[2]->s_vec, sp[2]->s_vec,
......
...@@ -81,8 +81,8 @@ void ENV_setup(void) ...@@ -81,8 +81,8 @@ void ENV_setup(void)
ENV_class = class_new(gensym("ENV"), (t_newmethod)ENV_new, 0, ENV_class = class_new(gensym("ENV"), (t_newmethod)ENV_new, 0,
sizeof(t_ENV), 0, 0); sizeof(t_ENV), 0, 0);
class_addmethod(ENV_class, (t_method)ENV_RAND_MAX, gensym("RAND_MAX"), 0); class_addmethod(ENV_class, (t_method)ENV_RAND_MAX, gensym("RAND_MAX"), 0);
class_addmethod(ENV_class, (t_method)ENV_getenv, gensym("getenv"), A_SYMBOL); class_addmethod(ENV_class, (t_method)ENV_getenv, gensym("getenv"), A_SYMBOL, 0);
class_addmethod(ENV_class, (t_method)ENV_setenv, gensym("setenv"), A_SYMBOL, A_SYMBOL); class_addmethod(ENV_class, (t_method)ENV_setenv, gensym("setenv"), A_SYMBOL, A_SYMBOL, 0);
class_addfloat(ENV_class, ENV_float); class_addfloat(ENV_class, ENV_float);
} }
...@@ -45,6 +45,10 @@ LIBS = ...@@ -45,6 +45,10 @@ LIBS =
# #
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
ifeq ($(macos_target),)
macos_target = 10.9
endif
# get library version from meta file # get library version from meta file
LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd)
...@@ -71,7 +75,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION) ...@@ -71,7 +75,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -96,13 +100,13 @@ ifeq ($(UNAME),Darwin) ...@@ -96,13 +100,13 @@ ifeq ($(UNAME),Darwin)
OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast
# build universal 32-bit on 10.4 and 32/64 on newer # build universal 32-bit on 10.4 and 32/64 on newer
ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8)
FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target)
else else
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include CFLAGS += $(FAT_FLAGS) -fPIC
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
...@@ -49,7 +49,7 @@ static void ascwave_open(t_ascwave *x, t_symbol *filename) ...@@ -49,7 +49,7 @@ static void ascwave_open(t_ascwave *x, t_symbol *filename)
post("ascwave: open"); post("ascwave: open");
x->filename = filename; x->filename = filename;
post("ascwave: filename = %s",x->filename->s_name); post("ascwave: filename = %s",x->filename->s_name);
if ((x->x_file = fopen(x->filename->s_name,"w")) < 0) if ((x->x_file = sys_fopen(x->filename->s_name,"w")) < 0)
{ {
error("can't create %s",filename->s_name); error("can't create %s",filename->s_name);
return; return;
......
...@@ -23,7 +23,7 @@ typedef struct _counter ...@@ -23,7 +23,7 @@ typedef struct _counter
t_outlet *t_out2; /* the outlet */ t_outlet *t_out2; /* the outlet */
} t_counter; } t_counter;
void counter_bang(t_counter *x) static void counter_bang(t_counter *x)
{ {
int sendBang = 0; int sendBang = 0;
switch(x->c_dir) switch(x->c_dir)
...@@ -93,23 +93,23 @@ void counter_bang(t_counter *x) ...@@ -93,23 +93,23 @@ void counter_bang(t_counter *x)
outlet_bang(x->t_out2); outlet_bang(x->t_out2);
} }
void counter_dir(t_counter *x, t_floatarg n) static void counter_dir(t_counter *x, t_floatarg n)
{ {
if (n == 1 || n == 2 || n == 3) x->c_dir = (int)n; if (n == 1 || n == 2 || n == 3) x->c_dir = (int)n;
else error("bad dir"); else error("bad dir");
} }
void counter_high(t_counter *x, t_floatarg n) static void counter_high(t_counter *x, t_floatarg n)
{ {
x->c_high = (int)n; x->c_high = (int)n;
} }
void counter_low(t_counter *x, t_floatarg n) static void counter_low(t_counter *x, t_floatarg n)
{ {
x->c_low = (int)n; x->c_low = (int)n;
} }
void counter_reset(t_counter *x, t_symbol *s, int argc, t_atom *argv) static void counter_reset(t_counter *x, t_symbol *s, int argc, t_atom *argv)
{ {
if (!argc) if (!argc)
{ {
...@@ -144,7 +144,7 @@ void counter_reset(t_counter *x, t_symbol *s, int argc, t_atom *argv) ...@@ -144,7 +144,7 @@ void counter_reset(t_counter *x, t_symbol *s, int argc, t_atom *argv)
outlet_float(x->t_out1, (float)x->c_current); outlet_float(x->t_out1, (float)x->c_current);
} }
void counter_clear(t_counter *x, t_symbol *s, int argc, t_atom *argv) static void counter_clear(t_counter *x, t_symbol *s, int argc, t_atom *argv)
{ {
if (!argc) if (!argc)
{ {
...@@ -178,7 +178,7 @@ void counter_clear(t_counter *x, t_symbol *s, int argc, t_atom *argv) ...@@ -178,7 +178,7 @@ void counter_clear(t_counter *x, t_symbol *s, int argc, t_atom *argv)
} }
} }
void *counter_new(t_floatarg f, t_floatarg g, t_floatarg h) /* init vals in struc */ static void *counter_new(t_floatarg f, t_floatarg g, t_floatarg h) /* init vals in struc */
{ {
t_counter *x = (t_counter *)pd_new(counter_class); t_counter *x = (t_counter *)pd_new(counter_class);
x->t_out1 = outlet_new(&x->x_obj, 0); x->t_out1 = outlet_new(&x->x_obj, 0);
......
...@@ -30,8 +30,8 @@ typedef struct _split ...@@ -30,8 +30,8 @@ typedef struct _split
void split_symbol(t_split *x, t_symbol *s) void split_symbol(t_split *x, t_symbol *s)
{ {
t_atom* a; t_atom a;
split_anything(x, s, 0, a); split_anything(x, s, 0, &a);
} }
......
...@@ -35,7 +35,7 @@ static t_int *delta_perform(t_int *w) ...@@ -35,7 +35,7 @@ static t_int *delta_perform(t_int *w)
static void delta_dsp(t_delta *x, t_signal **sp) static void delta_dsp(t_delta *x, t_signal **sp)
{ {
dsp_add(delta_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); dsp_add(delta_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, (t_int)sp[0]->s_n);
} }
static void *delta_new(void) static void *delta_new(void)
......