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 44 additions and 40 deletions
...@@ -73,7 +73,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION) ...@@ -73,7 +73,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
...@@ -103,8 +103,8 @@ ifeq ($(UNAME),Darwin) ...@@ -103,8 +103,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
......
...@@ -33,8 +33,8 @@ OPTIM_FLAGS = -mpowerpc-gpopt -mcpu=750 ...@@ -33,8 +33,8 @@ OPTIM_FLAGS = -mpowerpc-gpopt -mcpu=750
CFLAGS = -DPD -DUNIX -DMACOSX -Dunix $(OPTIM_FLAGS) \ CFLAGS = -DPD -DUNIX -DMACOSX -Dunix $(OPTIM_FLAGS) \
-Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wno-shadow -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wno-shadow
INCLUDES = -I$(pd_src)/src -I/sw/include INCLUDES = -I$(pd_src)/src
LDFLAGS = -bundle -bundle_loader $(PDEXECUTABLE) -L/sw/lib LDFLAGS = -bundle -bundle_loader $(PDEXECUTABLE)
externals: $(EXTERNALS:.c=.pd_darwin) externals: $(EXTERNALS:.c=.pd_darwin)
......
...@@ -77,7 +77,7 @@ static t_int *matrix_perform(t_int *w) ...@@ -77,7 +77,7 @@ static t_int *matrix_perform(t_int *w)
memcpy(x, in, sizeof(t_float)*n); memcpy(x, in, sizeof(t_float)*n);
in = x; in = x;
} }
bzero(out, sizeof(t_float)*n); /* init output */ memset(out, 0, sizeof(t_float)*n); /* init output */
for (j=0; j<n; j++) for (j=0; j<n; j++)
for (i=0; i<n; i++) for (i=0; i<n; i++)
......
...@@ -747,8 +747,8 @@ t_class *dwt_class, *idwt_class, *dwt16_class, *idwt16_class; ...@@ -747,8 +747,8 @@ t_class *dwt_class, *idwt_class, *dwt16_class, *idwt16_class;
static void dwt_reset(t_dwt *x) static void dwt_reset(t_dwt *x)
{ {
bzero(x->x_ctl.c_update, 16*sizeof(t_float)); memset(x->x_ctl.c_update, 0, 16*sizeof(t_float));
bzero(x->x_ctl.c_predict, 16*sizeof(t_float)); memset(x->x_ctl.c_predict, 0, 16*sizeof(t_float));
x->x_ctl.c_update[7] = .25; x->x_ctl.c_update[7] = .25;
x->x_ctl.c_update[8] = .25; x->x_ctl.c_update[8] = .25;
......
...@@ -75,7 +75,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION) ...@@ -75,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
...@@ -105,8 +105,8 @@ ifeq ($(UNAME),Darwin) ...@@ -105,8 +105,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
......
...@@ -22,7 +22,7 @@ static int makeseed(void) ...@@ -22,7 +22,7 @@ static int makeseed(void)
return (random1_nextseed & 0x7fffffff); return (random1_nextseed & 0x7fffffff);
} }
static int rand_random_fl(seed) { static int rand_random_fl(unsigned int seed) {
int q; int q;
double state; double state;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#endif #endif
static int makeseed(void); static int makeseed(void);
static int rand_random1(int); static int rand_random1(unsigned int);
static int makeseed(void) static int makeseed(void)
{ {
...@@ -27,7 +27,7 @@ static int makeseed(void) ...@@ -27,7 +27,7 @@ static int makeseed(void)
/* -------------------------- random1 ------------------------------ */ /* -------------------------- random1 ------------------------------ */
/* linear congruential generator. Generator x[n+1] = a * x[n] mod m */ /* linear congruential generator. Generator x[n+1] = a * x[n] mod m */
static int rand_random1(seed) static int rand_random1(unsigned int seed)
{ {
int state; int state;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#endif #endif
static int makeseed(void); static int makeseed(void);
static int rand_random1(int); static int rand_random1(unsigned int);
static int makeseed(void) static int makeseed(void)
{ {
...@@ -27,7 +27,7 @@ static int makeseed(void) ...@@ -27,7 +27,7 @@ static int makeseed(void)
/* -------------------------- random1 ------------------------------ */ /* -------------------------- random1 ------------------------------ */
/* linear congruential generator. Generator x[n+1] = a * x[n] mod m */ /* linear congruential generator. Generator x[n+1] = a * x[n] mod m */
static int rand_random1(seed) static int rand_random1(unsigned int seed)
{ {
int state; int state;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#endif #endif
static int makeseed(void); static int makeseed(void);
static int rand_random_fl(int); static int rand_random_fl(unsigned int);
static int makeseed(void) static int makeseed(void)
{ {
...@@ -25,7 +25,7 @@ static int makeseed(void) ...@@ -25,7 +25,7 @@ static int makeseed(void)
return (random1_nextseed & 0x7fffffff); return (random1_nextseed & 0x7fffffff);
} }
static int rand_random_fl(seed) { static int rand_random_fl(unsigned int seed) {
int q; int q;
double state; double state;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#endif #endif
static int makeseed(void); static int makeseed(void);
static int rand_random_fl(int); static int rand_random_fl(unsigned int);
static int makeseed(void) static int makeseed(void)
{ {
...@@ -25,7 +25,7 @@ static int makeseed(void) ...@@ -25,7 +25,7 @@ static int makeseed(void)
return (random1_nextseed & 0x7fffffff); return (random1_nextseed & 0x7fffffff);
} }
static int rand_random_fl(seed) { static int rand_random_fl(unsigned int seed) {
int q; int q;
double state; double state;
......
...@@ -27,7 +27,7 @@ static int makeseed(void) ...@@ -27,7 +27,7 @@ static int makeseed(void)
return (random1_nextseed & 0x7fffffff); return (random1_nextseed & 0x7fffffff);
} }
static int rand_random_icg(seed, p) static int rand_random_icg(int seed, int p)
{ {
static int a, b, q, r; static int a, b, q, r;
int state; int state;
...@@ -123,7 +123,7 @@ static void random_icg_bang(t_random_icg *x) ...@@ -123,7 +123,7 @@ static void random_icg_bang(t_random_icg *x)
{ {
double nval; double nval;
x->x_state = rand_random_icg(x->x_state, x->x_p); x->x_state = rand_random_icg(x->x_state, (int)x->x_p);
nval = (((x->x_state / x->x_p) - 1) * (double)(x->x_g - x->x_f) + (double)x->x_f); nval = (((x->x_state / x->x_p) - 1) * (double)(x->x_g - x->x_f) + (double)x->x_f);
......
...@@ -26,7 +26,7 @@ static int makeseed(void) ...@@ -26,7 +26,7 @@ static int makeseed(void)
return (random1_nextseed & 0x7fffffff); return (random1_nextseed & 0x7fffffff);
} }
static int rand_random_icg(seed, p) static int rand_random_icg(int seed, int p)
{ {
static int a, b, q, r; static int a, b, q, r;
int state; int state;
...@@ -115,7 +115,7 @@ static void random_icg_tilde_bang(t_random_icg_tilde *x) ...@@ -115,7 +115,7 @@ static void random_icg_tilde_bang(t_random_icg_tilde *x)
{ {
double nval; double nval;
x->x_state = rand_random_icg(x->x_state, x->x_p); x->x_state = rand_random_icg(x->x_state, (int)x->x_p);
nval = (((x->x_state / x->x_p) - 1) * (double)(x->x_g - x->x_f) + (double)x->x_f); nval = (((x->x_state / x->x_p) - 1) * (double)(x->x_g - x->x_f) + (double)x->x_f);
......
...@@ -56,7 +56,7 @@ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx) ...@@ -56,7 +56,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
...@@ -80,9 +80,9 @@ ifeq ($(UNAME),Darwin) ...@@ -80,9 +80,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
......
...@@ -417,7 +417,7 @@ ifeq ($(system), Darwin) ...@@ -417,7 +417,7 @@ ifeq ($(system), Darwin)
/Applications/Pd-extended*.app/Contents/Resources/include/pdextended \ /Applications/Pd-extended*.app/Contents/Resources/include/pdextended \
/Applications/Pd*.app/Contents/Resources/src)) /Applications/Pd*.app/Contents/Resources/src))
extension = pd_darwin extension = pd_darwin
cpp.flags := -DUNIX -DMACOSX -I /sw/include cpp.flags := -DUNIX -DMACOSX
c.flags := c.flags :=
c.ldflags := -undefined suppress -flat_namespace -bundle c.ldflags := -undefined suppress -flat_namespace -bundle
c.ldlibs := -lc c.ldlibs := -lc
......
Subproject commit 3046fa0248999819c4709b9e53679c6824bd0168 Subproject commit 03b0722d7c9f09d12cc5043abd4d2094c3d0114f
...@@ -6,8 +6,6 @@ class.sources = disis_phasor~.c ...@@ -6,8 +6,6 @@ class.sources = disis_phasor~.c
disis_munger~.class.sources = disis_munger.c ADSR.c disis_munger~.class.sources = disis_munger.c ADSR.c
define forLinux define forLinux
class.sources += disis_netsend.c disis_netreceive.c class.sources += disis_netsend.c disis_netreceive.c
disis_wiimote.class.sources = disis_wiimote.c
disis_wiimote.class.ldlibs = $(CWIID_LIB_STATIC) -lbluetooth -lpthread
endef endef
define forDarwin define forDarwin
class.sources += disis_netsend.c disis_netreceive.c class.sources += disis_netsend.c disis_netreceive.c
......
...@@ -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
......
...@@ -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
......
...@@ -77,7 +77,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION) ...@@ -77,7 +77,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
...@@ -107,8 +107,8 @@ ifeq ($(UNAME),Darwin) ...@@ -107,8 +107,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
......
#include "ext13.h" #include "ext13.h"
#include "m_pd.h" #include "m_pd.h"
/* Just go ahead and include the private header since the author wants it.
Anyway, I think this can be handled natively now so it should only be here
for compatibility purposes anyway. */
#include "m_imp.h"
/* /*
#ifndef PD_MAJOR_VERSION #ifndef PD_MAJOR_VERSION
#include "s_stuff.h" #include "s_stuff.h"
......