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 3016 additions and 34 deletions
...@@ -82,7 +82,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION) ...@@ -82,7 +82,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
...@@ -112,8 +112,8 @@ ifeq ($(UNAME),Darwin) ...@@ -112,8 +112,8 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include ALL_CFLAGS += $(FAT_FLAGS) -fPIC
ALL_LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib ALL_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
ALL_LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) ALL_LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
ALL_LIBS += -lc ALL_LIBS += -lc
......
...@@ -59,7 +59,7 @@ AC_DEFUN([AC_CHECK_FRAMEWORK], ...@@ -59,7 +59,7 @@ AC_DEFUN([AC_CHECK_FRAMEWORK],
temp_check_ldflags_org="${LDFLAGS}" temp_check_ldflags_org="${LDFLAGS}"
LDFLAGS="-framework [$1] ${LDFLAGS}" LDFLAGS="-framework [$1] ${LDFLAGS}"
AC_LINK_IFELSE(AC_LANG_PROGRAM(,), [temp_check_ldflags_success="yes"],[temp_check_ldflags_success="no"]) AC_LINK_IFELSE([AC_LANG_PROGRAM(,)], [temp_check_ldflags_success="yes"],[temp_check_ldflags_success="no"])
if test "x$temp_check_ldflags_success" = "xyes"; then if test "x$temp_check_ldflags_success" = "xyes"; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
...@@ -81,7 +81,7 @@ AC_DEFUN([AC_CHECK_LDFLAGS], ...@@ -81,7 +81,7 @@ AC_DEFUN([AC_CHECK_LDFLAGS],
temp_check_ldflags_org="${LDFLAGS}" temp_check_ldflags_org="${LDFLAGS}"
LDFLAGS="$1 ${LDFLAGS}" LDFLAGS="$1 ${LDFLAGS}"
AC_LINK_IFELSE(AC_LANG_PROGRAM(,), [temp_check_ldflags_success="yes"],[temp_check_ldflags_success="no"]) AC_LINK_IFELSE([AC_LANG_PROGRAM(,)], [temp_check_ldflags_success="yes"],[temp_check_ldflags_success="no"])
if test "x$temp_check_ldflags_success" = "xyes"; then if test "x$temp_check_ldflags_success" = "xyes"; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
......
This diff is collapsed.
This diff is collapsed.
...@@ -8,6 +8,19 @@ ...@@ -8,6 +8,19 @@
#include "iem16_table.h" #include "iem16_table.h"
/* the following two functions are copied from table16.c so that each class can
be instantiated without a dependency on table16 already existing */
static int table16_getarray16(t_table16*x, int*size,t_iem16_16bit**vec){
*size=x->x_size;
*vec =x->x_table;
return 1;
}
static void table16_usedindsp(t_table16*x){
x->x_usedindsp=1;
}
/* ------------------ tab16write: control ------------------------ */ /* ------------------ tab16write: control ------------------------ */
static t_class *tab16write_class; static t_class *tab16write_class;
......
...@@ -8,6 +8,8 @@ iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006 ...@@ -8,6 +8,8 @@ iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006
# include "g_canvas.h" # include "g_canvas.h"
#else #else
EXTERN t_canvas *glist_getcanvas(t_glist *x); EXTERN t_canvas *glist_getcanvas(t_glist *x);
EXTERN void canvas_unsetcurrent(t_canvas *x);
EXTERN void canvas_setcurrent(t_canvas *x);
#endif #endif
#include "iemlib.h" #include "iemlib.h"
......
...@@ -110,7 +110,7 @@ void protect_against_open_setup(void) ...@@ -110,7 +110,7 @@ void protect_against_open_setup(void)
protect_against_open_widgetbehavior.w_selectfn = NULL; protect_against_open_widgetbehavior.w_selectfn = NULL;
protect_against_open_widgetbehavior.w_activatefn = NULL; protect_against_open_widgetbehavior.w_activatefn = NULL;
protect_against_open_widgetbehavior.w_deletefn = NULL; protect_against_open_widgetbehavior.w_deletefn = NULL;
protect_against_open_widgetbehavior.w_visfn = protect_against_open_vis; protect_against_open_widgetbehavior.w_visfn = (t_method)protect_against_open_vis;
protect_against_open_widgetbehavior.w_clickfn = NULL; protect_against_open_widgetbehavior.w_clickfn = NULL;
#if defined(PD_MAJOR_VERSION) && (PD_MINOR_VERSION >= 37) #if defined(PD_MAJOR_VERSION) && (PD_MINOR_VERSION >= 37)
......
...@@ -67,7 +67,7 @@ ORIGDIR=puredata-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION) ...@@ -67,7 +67,7 @@ ORIGDIR=puredata-$(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
...@@ -97,8 +97,8 @@ ifeq ($(UNAME),Darwin) ...@@ -97,8 +97,8 @@ ifeq ($(UNAME),Darwin)
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=10.4
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
......
...@@ -82,7 +82,7 @@ unsigned char HIDConfigureAction (pRecDevice * ppDevice, pRecElement * ppElement ...@@ -82,7 +82,7 @@ unsigned char HIDConfigureAction (pRecDevice * ppDevice, pRecElement * ppElement
pDevice = HIDGetNextDevice (pDevice); pDevice = HIDGetNextDevice (pDevice);
} }
saveValueArray = (long *) malloc (sizeof (long) * numDevices * maxElements); // 2D array to save values saveValueArray = (long *) malloc (sizeof (long) * numDevices * maxElements); // 2D array to save values
bzero(saveValueArray,sizeof (long) * numDevices * maxElements); // clear array memset(saveValueArray,0,sizeof (long) * numDevices * maxElements); // clear array
// store current values // store current values
deviceNum = 0; deviceNum = 0;
...@@ -168,7 +168,7 @@ void HIDSaveElementConfig (FILE * fileRef, pRecDevice pDevice, pRecElement pElem ...@@ -168,7 +168,7 @@ void HIDSaveElementConfig (FILE * fileRef, pRecDevice pDevice, pRecElement pElem
if (HIDIsValidElement(pDevice,pElement)) if (HIDIsValidElement(pDevice,pElement))
{ {
// clear rec // clear rec
bzero(&saveRec,sizeof(recSaveHID)); memset(&saveRec,0,sizeof(recSaveHID));
saveRec.actionCookie = actionCookie; saveRec.actionCookie = actionCookie;
......
...@@ -290,7 +290,7 @@ static void hid_AddElement (CFTypeRef refElement, pRecElement * ppElementCurrent ...@@ -290,7 +290,7 @@ static void hid_AddElement (CFTypeRef refElement, pRecElement * ppElementCurrent
// it preserves the structure of the lements as collections have children and elements are siblings to each other // it preserves the structure of the lements as collections have children and elements are siblings to each other
// clear record // clear record
bzero(pElement,sizeof(recElement)); memset(pElement,0,sizeof(recElement));
// get element info // get element info
pElement->type = elementType; pElement->type = elementType;
...@@ -587,7 +587,7 @@ static pRecDevice hid_BuildDevice (io_object_t hidDevice) ...@@ -587,7 +587,7 @@ static pRecDevice hid_BuildDevice (io_object_t hidDevice)
kern_return_t result = IORegistryEntryCreateCFProperties (hidDevice, &hidProperties, kCFAllocatorDefault, kNilOptions); kern_return_t result = IORegistryEntryCreateCFProperties (hidDevice, &hidProperties, kCFAllocatorDefault, kNilOptions);
// clear record // clear record
bzero(pDevice, sizeof(recDevice)); memset(pDevice, 0, sizeof(recDevice));
if ((result == KERN_SUCCESS) && (NULL != hidProperties)) if ((result == KERN_SUCCESS) && (NULL != hidProperties))
{ {
......
#!/bin/sh #!/bin/sh
PATH=/sw/bin:$PATH
case `uname -s` in case `uname -s` in
MINGW*) MINGW*)
# autoreconf doesn't always work on MinGW # autoreconf doesn't always work on MinGW
......
...@@ -55,7 +55,7 @@ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx) ...@@ -55,7 +55,7 @@ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx)
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_macosx) SOURCES += $(SOURCES_macosx)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -79,9 +79,9 @@ ifeq ($(UNAME),Darwin) ...@@ -79,9 +79,9 @@ ifeq ($(UNAME),Darwin)
OS = macosx OS = macosx
OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast
FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4 FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ CFLAGS += $(FAT_FLAGS) -fPIC \
-I/Applications/Pd-extended.app/Contents/Resources/include -I/Applications/Pd-extended.app/Contents/Resources/include
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
......
...@@ -55,7 +55,7 @@ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx) ...@@ -55,7 +55,7 @@ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx)
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_macosx) SOURCES += $(SOURCES_macosx)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -79,9 +79,9 @@ ifeq ($(UNAME),Darwin) ...@@ -79,9 +79,9 @@ ifeq ($(UNAME),Darwin)
OS = macosx OS = macosx
OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast
FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4 FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ CFLAGS += $(FAT_FLAGS) -fPIC \
-I/Applications/Pd-extended.app/Contents/Resources/include -I/Applications/Pd-extended.app/Contents/Resources/include
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
......
...@@ -71,7 +71,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION) ...@@ -71,7 +71,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
...@@ -101,8 +101,8 @@ ifeq ($(UNAME),Darwin) ...@@ -101,8 +101,8 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) 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
......
...@@ -59,7 +59,7 @@ static int libdir_add_to_path(const char*dirbuf, t_canvas*canvas) { ...@@ -59,7 +59,7 @@ static int libdir_add_to_path(const char*dirbuf, t_canvas*canvas) {
return 0; return 0;
} }
static int libdir_loader_legacy(t_canvas *canvas, char *classname) static int libdir_loader_legacy(t_canvas *canvas, const char *classname, const char *path)
{ {
int fd = -1; int fd = -1;
char fullclassname[FILENAME_MAX], dirbuf[FILENAME_MAX]; char fullclassname[FILENAME_MAX], dirbuf[FILENAME_MAX];
......
...@@ -86,7 +86,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION) ...@@ -86,7 +86,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
SHARED_EXTENSION = dylib SHARED_EXTENSION = dylib
...@@ -124,7 +124,7 @@ ifeq ($(UNAME),Darwin) ...@@ -124,7 +124,7 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
endif endif
endif endif
ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include ALL_CFLAGS += $(FAT_FLAGS) -fPIC
# 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
BUNDLE_LOADER = $(shell test ! -e $(PD_PATH)/bin/pd || echo -bundle_loader $(PD_PATH)/bin/pd) BUNDLE_LOADER = $(shell test ! -e $(PD_PATH)/bin/pd || echo -bundle_loader $(PD_PATH)/bin/pd)
ALL_LDFLAGS += $(FAT_FLAGS) -headerpad_max_install_names -bundle $(BUNDLE_LOADER) \ ALL_LDFLAGS += $(FAT_FLAGS) -headerpad_max_install_names -bundle $(BUNDLE_LOADER) \
......
...@@ -936,7 +936,7 @@ void bashfest_copy_to_MSP_buffer(t_bashfest *x, int slot) ...@@ -936,7 +936,7 @@ void bashfest_copy_to_MSP_buffer(t_bashfest *x, int slot)
} }
void bashfest_deploy_dsp(t_bashfest *x) void bashfest_deploy_dsp(t_bashfest *x)
{ {
float *b_samples = x->b_samples; float *b_samples = (float*)x->b_samples;
long b_nchans = x->b_nchans; long b_nchans = x->b_nchans;
long b_frames = x->b_frames; long b_frames = x->b_frames;
t_event *events = x->events; t_event *events = x->events;
......
...@@ -351,7 +351,7 @@ void sarec_attach_buffer(t_sarec *x) ...@@ -351,7 +351,7 @@ void sarec_attach_buffer(t_sarec *x)
t_garray *a; t_garray *a;
t_symbol *bufname = x->bufname; t_symbol *bufname = x->bufname;
int b_frames; int b_frames;
float *b_samples = x->b_samples; t_word *b_samples = x->b_samples;
if (!(a = (t_garray *)pd_findbyclass(bufname, garray_class))) { if (!(a = (t_garray *)pd_findbyclass(bufname, garray_class))) {
if (*bufname->s_name) pd_error(x, "%s: %s: no such array",OBJECT_NAME,bufname->s_name); if (*bufname->s_name) pd_error(x, "%s: %s: no such array",OBJECT_NAME,bufname->s_name);
x->b_valid = 0; x->b_valid = 0;
...@@ -397,4 +397,4 @@ void sarec_dsp(t_sarec *x, t_signal **sp) ...@@ -397,4 +397,4 @@ void sarec_dsp(t_sarec *x, t_signal **sp)
dsp_addv(sarec_perform, pointer_count, (t_int *) sigvec); dsp_addv(sarec_perform, pointer_count, (t_int *) sigvec);
free(sigvec); free(sigvec);
} }
\ No newline at end of file
...@@ -45,7 +45,7 @@ void *sel_new(t_symbol *msg, short argc, t_atom *argv) ...@@ -45,7 +45,7 @@ void *sel_new(t_symbol *msg, short argc, t_atom *argv)
outlet_new(&x->x_obj, gensym("signal")); outlet_new(&x->x_obj, gensym("signal"));
} }
x->matches = (t_double *) malloc(x->length * sizeof(double)); x->matches = (t_float *) malloc(x->length * sizeof(t_float));
for(i = 0; i < argc; i++){ for(i = 0; i < argc; i++){
x->matches[i] = (double)atom_getfloatarg(i,argc,argv); x->matches[i] = (double)atom_getfloatarg(i,argc,argv);
...@@ -97,7 +97,7 @@ t_int *sel_perform(t_int *w) ...@@ -97,7 +97,7 @@ t_int *sel_perform(t_int *w)
// clean each outlet // clean each outlet
for(j = 0; j < length; j++){ for(j = 0; j < length; j++){
match_outlet = (t_double *) outs[j]; match_outlet = (t_float *) outs[j];
for(i = 0; i < n; i++){ for(i = 0; i < n; i++){
match_outlet[i] = 0.0; match_outlet[i] = 0.0;
} }
...@@ -107,7 +107,7 @@ t_int *sel_perform(t_int *w) ...@@ -107,7 +107,7 @@ t_int *sel_perform(t_int *w)
if(inlet[i]){ if(inlet[i]){
for(j = 0; j < length; j++){ for(j = 0; j < length; j++){
if( inlet[i] == matches[j]){ if( inlet[i] == matches[j]){
match_outlet = (t_double *) outs[j]; match_outlet = (t_float *) outs[j];
match_outlet[i] = 1.0; // always send a unity click match_outlet[i] = 1.0; // always send a unity click
} }
} }
......
...@@ -16,7 +16,7 @@ typedef struct _shoehorn ...@@ -16,7 +16,7 @@ typedef struct _shoehorn
double pio2; double pio2;
t_float *inarr; t_float *inarr;
t_float **loc_invecs; t_float **loc_invecs;
t_float *outs; t_float **outs;
double advFrac; double advFrac;
double *pangains1; double *pangains1;
double *pangains2; double *pangains2;
......