Commit 15ac8a10 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Merge branch 'master' into handle-mingw64-correctly

parents 148ca8f4 f6a5677a

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
......@@ -11,8 +11,9 @@ debian_stable_i386_deb:
- ./tar_em_up.sh -B
- cd ..
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- pd-l2ork -nogui -nrt -noaudio scripts/load_all_binaries.pd
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio scripts/external-tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- pd*.deb
......@@ -30,8 +31,29 @@ debian_stable_amd64_deb:
- ./tar_em_up.sh -B
- cd ..
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- pd-l2ork -nogui -nrt -noaudio scripts/load_all_binaries.pd
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio scripts/external-tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- pd*.deb
debian_stretch_amd64_deb:
tags:
- debian
- stretch
- amd64
script:
- echo "" | sudo -S apt-get -qq purge -y pd-l2ork > /dev/null || echo "couldn't purge..."
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive apt-get -qq -y update > /dev/null
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive apt-get -qq -y upgrade > /dev/null
- cd l2ork_addons
- ./tar_em_up.sh -B
- cd ..
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio scripts/external-tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- pd*.deb
......@@ -49,8 +71,10 @@ ubuntu_14.04_i386_deb:
- ./tar_em_up.sh -B
- cd ..
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- pd-l2ork -nogui -nrt -noaudio scripts/load_all_binaries.pd
- cd scripts
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio external-tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- pd*.deb
......@@ -68,8 +92,10 @@ ubuntu_14.04_amd64_deb:
- ./tar_em_up.sh -B
- cd ..
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- pd-l2ork -nogui -nrt -noaudio scripts/load_all_binaries.pd
- cd scripts
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio external-tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- pd*.deb
......@@ -87,8 +113,10 @@ ubuntu_16.04_amd64_deb:
- ./tar_em_up.sh -B
- cd ..
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- pd-l2ork -nogui -nrt -noaudio scripts/load_all_binaries.pd
- cd scripts
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio external-tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- pd*.deb
......@@ -102,11 +130,13 @@ osx_amd64_dmg:
- echo `pwd`
- cd l2ork_addons
- ./tar_em_up.sh -X
- cd ../scripts
- ../packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork -noprefs -nostdpath -nogui -noaudio external-tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- Pd*.dmg
osx_10.8_amd64_dmg:
tags:
- osx
......@@ -116,34 +146,43 @@ osx_10.8_amd64_dmg:
- echo `pwd`
- cd l2ork_addons
- osx_version=10.8 ./tar_em_up.sh -X
- cd ../scripts
- ../packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork -noprefs -nostdpath -nogui -noaudio external-tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- Pd*.dmg
debian_stable_arm_deb:
windows_i386_installer:
tags:
- debian
- arm
- stable
- windows
- i386
script:
- echo `pwd`
- cd l2ork_addons
- ./tar_em_up.sh -r
- ./tar_em_up.sh -Z
- cd ../scripts
- ../packages/win32_inno/build/bin/pd.exe -noprefs -nostdpath -nogui -noaudio external-tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- pd*.deb
- Purr*.exe
windows_i386_installer:
debian_stable_arm_deb:
tags:
- windows
- i386
- debian
- arm
- stable
script:
- echo `pwd`
- cd l2ork_addons
- ./tar_em_up.sh -Z
- ./tar_em_up.sh -r
- cd ..
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio scripts/external-tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- Purr*.exe
- pd*.deb
......@@ -15,4 +15,4 @@
url = https://git.purrdata.net/jwilkes/Gem.git
[submodule "externals/lyonpotpourri"]
path = externals/lyonpotpourri
url = https://github.com/ericlyon/lyonpotpourri3.0.git
url = https://git.purrdata.net/jwilkes/lyonpotpourri3.0.git
......@@ -81,7 +81,7 @@ Pd-L2ork has the following goals:
You can download a precompiled installer for Gnu/Linux, Windows, or OSX
from the following site:
[https://github.com/agraef/purr-data/releases](https://github.com/agraef/purr-data/releases)
[https://github.com/jonwwilkes/purr-data/releases](https://github.com/jonwwilkes/purr-data/releases)
### Build Guide
......@@ -219,6 +219,7 @@ that case, but I haven't tested doing it like that. Sorry. Get a better OS...)
mingw-w64-i686-ladspa-sdk mingw-w64-i686-lame \
mingw-w64-i686-libsndfile mingw-w64-i686-libvorbis \
mingw-w64-i686-lua mingw-w64-i686-toolchain \
mingw-w64-i686-libjpeg-turbo \
rsync unzip wget
5. Download the source code *(3-6 minutes)*
......
......@@ -81,7 +81,8 @@ deb: $(debsrc) $(addprefix debian/nwjs/, $(nwjs))
# This can be removed once Ubuntu 12.04 finally goes the way of the dodo.
# cd $(debdist) && patch -p1 < ../precise-configure.patch
# Patch the user config dir name so that purr-data can coexist with pd-l2ork.
cd $(debdist) && patch -Np1 < ../userconfig.patch
# Not needed with purr-data 2.4.5+ any more.
# cd $(debdist) && patch -Np1 < ../userconfig.patch
# Make sure to copy the Debian files which may have uncommitted changes.
# Then run debuild to create the package.
cd $(debdist) && cp -R ../debian . && debuild $(DEBUILD_FLAGS)
......
......@@ -129,7 +129,7 @@ CXXFLAGS = $(CFLAGS)
#
# WARNING! this MUST be all on one line because the automatic package
# building scripts rely on it being that way.
LIB_TARGETS = adaptive arraysize autotune bassemu boids bsaylor comport creb cxc cyclone disis earplug ekext ext13 fftease fluid freeverb ggee hcs iem_ambi iem_bin_ambi iemlib iemgui iemguts iem_adaptfilt iemmatrix iemxmlrpc iem_delay iem_roomsim iem_spec2 iem_tab jasch_lib loaders-hexloader loaders-libdir lyonpotpourri mapping markex maxlib mjlib moocow moonlib motex mrpeach oscx pan pdcontainer pddp pdogg plugin pmpd rjlib sigpack smlib tof unauthorized vbap windowing zexy
LIB_TARGETS = adaptive arraysize autotune bassemu boids bsaylor comport creb cxc cyclone disis earplug ekext ext13 fftease fluid freeverb ggee hcs iem_ambi iem_bin_ambi iemlib iemgui iemguts iem_adaptfilt iemmatrix iemxmlrpc iem_delay iem_roomsim iem_spec2 iem_tab jasch_lib loaders-libdir lyonpotpourri mapping markex maxlib mjlib moocow moonlib motex mrpeach oscx pan pdcontainer pddp pdogg plugin pmpd rjlib sigpack smlib tof unauthorized vbap windowing zexy
# DISABLED: flatgui
......@@ -642,6 +642,9 @@ $(gem_src)/Gem.dll: $(gem_src)/configure
CXXFLAGS="-DHAVE_S_STUFF_H" \
--host=i686-w64-mingw32 \
--without-ALL \
--with-jpeg \
--with-jpeg-cflags="-I/mingw32/include" \
--with-jpeg-libs="-L/mingw32/lib -ljpeg" \
--with-ftgl \
--with-ftgl-cflags="-I/mingw32/include -I/mingw32/include/freetype2" \
--with-ftgl-libs="-L/mingw32/lib -lftgl" \
......@@ -937,7 +940,7 @@ iem16_install: iem16
install -d $(DESTDIR)$(objectsdir)/$(IEM16_NAME)
$(scripts_src)/generate-libdir-metafile.sh $(DESTDIR)$(objectsdir) $(IEM16_NAME) \
--author "IOhannes m zmoelnig" \
--description "16bit table, array objects for low memory usage" \
--description "16bit table/array objects for low memory usage" \
--license "GNU GPL" \
--version "0.1"
install -p $(IEM16_DIR)/*.$(EXTENSION) $(DESTDIR)$(objectsdir)/$(IEM16_NAME)
......@@ -1108,29 +1111,6 @@ jasch_lib_clean:
-rm -f -- $(externals_src)/jasch_lib/*/*.bak
-rm -f -- $(externals_src)/jasch_lib/*/*.*~
#------------------------------------------------------------------------------#
# LOADERS-HEXLOADER
LOADERS-HEXLOADER_NAME = hexloader
LOADERS-HEXLOADER_OBJECTS := $(externals_src)/loaders/hexloader/hexloader.c
loaders-hexloader: $(LOADERS-HEXLOADER_OBJECTS:.c=.$(EXTENSION))
echo $(LOADERS-HEXLOADER_OBJECTS)
loaders-hexloader_install: loaders-hexloader
install -d $(DESTDIR)$(objectsdir)/$(LOADERS-HEXLOADER_NAME)
install -p $(LOADERS-HEXLOADER_OBJECTS:.c=.$(EXTENSION)) \
$(DESTDIR)$(objectsdir)/$(LOADERS-HEXLOADER_NAME)
install -p $(externals_src)/loaders/hexloader/README.txt \
$(externals_src)/loaders/hexloader/FAQ.txt \
$(DESTDIR)$(objectsdir)/$(LOADERS-HEXLOADER_NAME)
loaders-hexloader_clean:
-rm -f -- $(LOADERS-HEXLOADER_OBJECTS:.c=.$(EXTENSION))
-rm -f -- $(externals_src)/loaders/hexloader/*.o
-rm -f -- $(externals_src)/loaders/*.bak
-rm -f -- $(externals_src)/loaders/hexloader/*.*~
#------------------------------------------------------------------------------#
# LOADERS-LIBDIR
loaders-libdir:
......@@ -1857,26 +1837,26 @@ zexy_install: zexy
# add missing aliases
# can't do these on Windows because FAT, NTFS don't support these chars in filenames
# on Windows, these are faked in by loading them as libs
ifneq ($(OS_NAME),windows)
test -e $(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/..$(EXTENSION) || \
ln -s 0x2e.$(EXTENSION) \
$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/..$(EXTENSION)
test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/&&~.$(EXTENSION)' || \
ln -s 0x260x260x7e.$(EXTENSION) \
'$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/&&~.$(EXTENSION)'
test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/<~.$(EXTENSION)' || \
ln -s 0x3c0x7e.$(EXTENSION) \
'$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/<~.$(EXTENSION)'
test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/==~.$(EXTENSION)' || \
ln -s 0x3d0x3d0x7e.$(EXTENSION) \
'$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/==~.$(EXTENSION)'
test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/>~.$(EXTENSION)' || \
ln -s 0x3e0x7e.$(EXTENSION) \
'$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/>~.$(EXTENSION)'
test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/||~.$(EXTENSION)' || \
ln -s 0x7c0x7c0x7e.$(EXTENSION) \
'$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/||~.$(EXTENSION)'
endif
#ifneq ($(OS_NAME),windows)
# test -e $(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/..$(EXTENSION) || \
# ln -s 0x2e.$(EXTENSION) \
# $(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/..$(EXTENSION)
# test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/&&~.$(EXTENSION)' || \
# ln -s 0x260x26_tilde.$(EXTENSION) \
# '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/&&~.$(EXTENSION)'
# test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/<~.$(EXTENSION)' || \
# ln -s 0x3c_tilde.$(EXTENSION) \
# '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/<~.$(EXTENSION)'
# test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/==~.$(EXTENSION)' || \
# ln -s 0x3d0x3d_tilde.$(EXTENSION) \
# '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/==~.$(EXTENSION)'
# test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/>~.$(EXTENSION)' || \
# ln -s 0x3e_tilde.$(EXTENSION) \
# '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/>~.$(EXTENSION)'
# test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/||~.$(EXTENSION)' || \
# ln -s 0x7c0x7c_tilde.$(EXTENSION) \
# '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/||~.$(EXTENSION)'
#endif
zexy_clean:
cd $(externals_src)/zexy && ./autogen.sh
......
/* config.h. Generated by configure. */
/* config.h. Generated from config.h.in by configure. */
......@@ -4,7 +4,7 @@ ARFLAGS=srv
# DEFS= -Dunix
LIB=libOSC.a
CFLAGS=-g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 -fPIC -I../libOSC -I../../pd/src -I../../../pd/src -I../src
CFLAGS=-g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O1 -fPIC -I../libOSC -I../../pd/src -I../../../pd/src -I../src
INCLUDES=-I../libOSC -I../../pd/src -I../../../pd/src -I../src
LIBOBJS= ${LIB}(OSC-client.o) ${LIB}(OSC-timetag.o)
......
LIBS = -lc -lm
LIBS = -L../../../pd/bin -lc -lm
LIBOSCDIR = ../libOSC
LIBOSC = ${LIBOSCDIR}/libOSC.a
# strange bug requires this...
CFLAGS= -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 -fPIC -I../libOSC -I../../pd/src -I../../../pd/src -I../src -I../libOSC -I../../pd/src -I../../../pd/src -I../src
CFLAGS= -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O1 -fPIC -I../libOSC -I../../pd/src -I../../../pd/src -I../src -I../libOSC -I../../pd/src -I../../../pd/src -I../src
# INCLUDES= -I../libOSC -I../../pd/src -I../../../pd/src -I../src
DUMPOBJS=dumpOSC.o
......
......@@ -17,10 +17,10 @@
EXT=o
LIBS = -lc -lm
LIBS = -L../../../pd/bin -lc -lm
LIBOSC = ../libOSC/libOSC.a
CFLAGS = -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 -fPIC -I../libOSC -I../../pd/src -I../../../pd/src -I../src
CFLAGS = -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O1 -fPIC -I../libOSC -I../../pd/src -I../../../pd/src -I../src
INCLUDES = -I../libOSC -I../../pd/src -I../../../pd/src -I../src
LDFLAGS = -Wl,--export-dynamic -shared
......
......@@ -345,12 +345,26 @@ static void *partconv_new(t_symbol *s, int argc, t_atom *argv)
t_partconv *x = (t_partconv *)pd_new(partconv_class);
outlet_new(&x->x_obj, gensym("signal"));
t_atom sane_defaults[2];
if (argc != 2) {
/* Give some sane defaults with no args so we can at least
instantiate and get to the help patch */
if (!argc)
{
post("partconv~: warning: no arguments given");
SETSYMBOL(sane_defaults, &s_);
SETFLOAT(sane_defaults+1, 2.);
argc = 2;
argv = sane_defaults;
}
else
{
post("argc = %d", argc);
error("partconv~: usage: [partconv~ <arrayname> <partsize>]\n\t- partition size must be a power of 2 >= blocksize");
return NULL;
}
}
x->arrayname = atom_getsymbol(argv);
x->partsize = atom_getfloatarg(1, argc, argv);
......
......@@ -315,15 +315,28 @@ static void *pvoc_new(t_symbol *s, int argc, t_atom *argv)
{
t_pvoc *x = (t_pvoc *)pd_new(pvoc_class);
int i;
t_atom sane_defaults[3];
inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal, &s_signal); // pitch-shift inlet
outlet_new(&x->x_obj, gensym("signal"));
if (argc != 3) {
if (!argc)
{
post("partconv~: warning: no arguments given");
SETSYMBOL(sane_defaults, &s_);
SETFLOAT(sane_defaults+1, 2.);
SETFLOAT(sane_defaults+2, 2.);
argc = 3;
argv = sane_defaults;
}
else
{
post("argc = %d", argc);
error("pvoc~: usage: [pvoc~ <arrayname> <fftsize> <overlap>]");
return NULL;
}
}
x->fftsize = atom_getfloatarg(1, argc, argv);
x->overlap = atom_getfloatarg(2, argc, argv);
......
......@@ -97,6 +97,10 @@ typedef struct _iemgui
unsigned int x_locked:1; // 7 matches ([bng] only)
unsigned int x_reverse:1; // 4 matches (sliders only)
unsigned int dummy:20;
int legacy_x; // legacy x offset
int legacy_y; // legacy y offset
//int click_x; // click getrect x offset
//int click_y; // click getrect y offset
} t_iemgui;
typedef struct _bng
......@@ -180,7 +184,7 @@ typedef struct _my_numbox
double x_k;
int x_lin0_log1; // bool
char x_buf[IEMGUI_MAX_NUM_LEN];
int x_numwidth; // unsigned
int x_numwidth; // unsigned (width in pixels)
int x_scalewidth; /* temporary value for scalehandle */
int x_scaleheight; /* temporary value for scalehandle */
int x_tmpfontsize; /* temporary value for scalehandle */
......@@ -280,3 +284,4 @@ EXTERN void iemgui_out_bang(t_iemgui *x, int o, int chk_putin);
EXTERN void iemgui_out_float(t_iemgui *x, int o, int chk_putin, t_float f);
EXTERN void iemgui_out_list(t_iemgui *x, int o, int chk_putin, t_symbol *s, int argc, t_atom *argv);
EXTERN int sys_legacy; // found in s_main.c, used for legacy iemgui positioning
......@@ -31,11 +31,11 @@ typedef struct ffpoly_struct
t_float x_f;
t_outlet *x_outlet;
t_int *x_coef;
t_int x_poly_order;
t_int x_field_order;
int *x_coef;
int x_poly_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)
int in = (int)fcoef;
int fo = x->x_field_order;
int po = x->x_poly_order;
t_int* c = x->x_coef;
int* c = x->x_coef;
int i, out;
in %= fo;
......@@ -124,8 +124,8 @@ t_class *ffpoly_class;
static void *ffpoly_new(t_floatarg fpolyorder, t_floatarg ffieldorder)
{
t_int polyorder = (int)fpolyorder;
t_int fieldorder = (int)ffieldorder;
int polyorder = (int)fpolyorder;
int fieldorder = (int)ffieldorder;
t_ffpoly *x = (t_ffpoly *)pd_new(ffpoly_class);
......@@ -135,7 +135,7 @@ static void *ffpoly_new(t_floatarg fpolyorder, t_floatarg ffieldorder)
x->x_poly_order = polyorder;
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 */
ffpoly_coefficients(x, x->x_field_order);
......
......@@ -81,8 +81,8 @@ void ENV_setup(void)
ENV_class = class_new(gensym("ENV"), (t_newmethod)ENV_new, 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_getenv, gensym("getenv"), A_SYMBOL);
class_addmethod(ENV_class, (t_method)ENV_setenv, gensym("setenv"), A_SYMBOL, 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, 0);
class_addfloat(ENV_class, ENV_float);
}
......@@ -23,7 +23,7 @@ typedef struct _counter
t_outlet *t_out2; /* the outlet */
} t_counter;
void counter_bang(t_counter *x)
static void counter_bang(t_counter *x)
{
int sendBang = 0;
switch(x->c_dir)
......@@ -93,23 +93,23 @@ void counter_bang(t_counter *x)
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;
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;
}
void counter_low(t_counter *x, t_floatarg n)
static void counter_low(t_counter *x, t_floatarg 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)
{
......@@ -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);
}
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)
{
......@@ -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);
x->t_out1 = outlet_new(&x->x_obj, 0);
......
......@@ -213,10 +213,10 @@ void proc_setup(void)
proc_class = class_new(gensym("proc"), (t_newmethod)proc_new, 0,
sizeof(t_proc), 0, 0);
class_addmethod(proc_class, (t_method)proc_cpuinfo, gensym("cpuinfo"), 0);
class_addmethod(proc_class, (t_method)proc_proc, gensym("proc"), A_SYMBOL);
class_addmethod(proc_class, (t_method)proc_proc, gensym("proc"), A_SYMBOL, 0);
//class_addmethod(proc_class, (t_method)proc_RAND_MAX, gensym("RAND_MAX"), 0);
//class_addmethod(proc_class, (t_method)proc_getenv, gensym("getenv"), A_SYMBOL);
//class_addmethod(proc_class, (t_method)proc_setenv, gensym("setenv"), A_SYMBOL, A_SYMBOL);
//class_addmethod(proc_class, (t_method)proc_getenv, gensym("getenv"), A_SYMBOL, 0);
//class_addmethod(proc_class, (t_method)proc_setenv, gensym("setenv"), A_SYMBOL, A_SYMBOL, 0);
class_addfloat(proc_class, proc_float);
}
......@@ -177,7 +177,7 @@ void maskxor_print(t_maskxor *x)
post("mode = %f, lengthl = %d, lengthr = %d, lengthm = %d",x->mode,x->lengthl,x->lengthr,x->lengthm);
}
void *maskxor_new(t_symbol *s, t_floatarg fmode)
void *maskxor_new(t_floatarg fmode)
{
int i;
t_maskxor *x = (t_maskxor *)pd_new(maskxor_class);
......
#N canvas 304 280 450 300 10;
#X obj 224 205 dac~;
#X obj 224 32 inlet~;
#X obj 259 60 inlet~;
#X obj 318 69 tgl 16 0 \$0-d \$0-d DSP 0 -6 1728 8 -260818 -123526
-33289 0 1;
#X msg 318 93 \; pd dsp \$1;
#X obj 69 186 hsl 64 16 0 1 0 0 \$0-v \$0-v volume -2 -6 1728 8 -260818
-123526 -1 0 1;
#X obj 269 108 r \$0-v;
#X obj 262 206 outlet~;
#X obj 166 206 outlet~;
#X obj 357 28 r pd;
#X obj 357 52 route dsp;
#X obj 269 155 line~;
#X msg 269 132 \$1 10;
#X obj 259 180 *~;
#X obj 224 180 *~;
#X connect 1 0 14 0;
#X connect 2 0 13 0;
#X connect 3 0 4 0;
#X connect 6 0 12 0;
#X connect 9 0 10 0;
#X connect 10 0 3 0;
#X connect 11 0 13 1;
#X connect 11 0 14 1;
#X connect 12 0 11 0;
#X connect 13 0 0 1;
#X connect 13 0 7 0;
#X connect 14 0 0 0;
#X connect 14 0 8 0;
#X coords 0 0 1 1 90 55 1;
#N canvas 243 11 1015 761 10;
#X text 35 71 A soundfont player using If I Were You \, from www.iiwu.org
;
#X text 173 286 fluid~ wants channel # first: should I change this?
;
#X text 263 595 Program change ("prog" or "p" + chan + value);
#X text 173 254 Note messages start with "note" \, "n" or with nothing
(pure list input): chan + note + velocity;
#X obj 36 34 cnv 15 102 32 empty empty empty 20 12 1 14 -1 -66577 0
;
#X obj 37 35 cnv 15 100 30 empty empty fluid~ 20 15 1 14 -257472 -66577
0;
#X obj 593 55 cnv 15 374 160 empty empty empty 20 12 1 14 -1 -66577
0;
#X text 181 120 "load" soundfonts. Creation argument is possible as
well:;
#X obj 594 56 cnv 15 372 158 empty Notes Soundfonts 20 12 65 14 -228992
-66577 0;
#X msg 650 146 load /usr/lib/awe/sfbank/2gmgsmt.sf2;
#X msg 644 126 load \$1;
#X obj 644 104 openpanel;
#X obj 644 84 bng 15 250 50 0 empty empty empty 0 -6 0 8 -260818 -1
-1;
#X obj 629 171 s \$0-iiwu;
#X obj 375 146 fluid~ notavail.sf2;
#X obj 593 219 cnv 15 374 160 empty empty empty 20 12 1 14 -1 -66577
0;
#X obj 594 220 cnv 15 372 158 empty Notes Notes 20 12 65 14 -228992
-66577 0;
#X obj 837 261 notein;
#X obj 837 283 pack 0 0 0;
#X msg 695 325 n 1 60 0;
#X obj 640 348 s \$0-iiwu;
#X obj 695 281 bang;
#X msg 837 305 \$3 \$1 \$2;
#X obj 837 327 s \$0-iiwu;