aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--KNOWNBUGS12
-rw-r--r--build.bat32
-rw-r--r--clean.bat32
-rwxr-xr-xgui/slider.c45
-rw-r--r--gui/sliderh.c10
-rw-r--r--install77
-rw-r--r--install-sh251
-rwxr-xr-xsignal/pipewrite~.c3
-rw-r--r--version1
9 files changed, 29 insertions, 434 deletions
diff --git a/KNOWNBUGS b/KNOWNBUGS
deleted file mode 100644
index 546c1d3..0000000
--- a/KNOWNBUGS
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-envgen has different methods of data output (indexed, line~pairs, dump) which
-all go to the same outlet
-
-sfread doesn't work on Windows (and will never do, use readsf~^H^H^H^H^H
-sfplay instead)
-
-the objects for serial control only work under Linux
-
-
diff --git a/build.bat b/build.bat
deleted file mode 100644
index 50ce235..0000000
--- a/build.bat
+++ /dev/null
@@ -1,32 +0,0 @@
-current: nt
-
-
-# TARGETS += stk
-
-VERSION = \"0.24\"
-
-.SUFFIXES: .dll .obj
-# ----------------------- NT ----------------------------
-
-
-
-cd control
-nmake
-cd ..
-cd experimental
-nmake
-cd ..
-cd filters
-nmake
-cd ..
-cd gui
-nmake
-cd ..
-cd other
-nmake
-cd ..
-cd signal
-nmake
-cd ..
-
-
diff --git a/clean.bat b/clean.bat
deleted file mode 100644
index 8f29a39..0000000
--- a/clean.bat
+++ /dev/null
@@ -1,32 +0,0 @@
-current: nt
-
-
-# TARGETS += stk
-
-VERSION = \"0.16\"
-
-.SUFFIXES: .dll .obj
-# ----------------------- NT ----------------------------
-
-
-
-cd control
-nmake clean
-cd ..
-cd experimental
-nmake clean
-cd ..
-cd filters
-nmake clean
-cd ..
-cd gui
-nmake clean
-cd ..
-cd other
-nmake clean
-cd ..
-cd signal
-nmake clean
-cd ..
-
-
diff --git a/gui/slider.c b/gui/slider.c
index 8e74a8e..a2bb293 100755
--- a/gui/slider.c
+++ b/gui/slider.c
@@ -9,44 +9,45 @@ static void slider_save(t_gobj *z, t_binbuf *b)
{
t_fatom *x = (t_fatom *)z;
- binbuf_addv(b, "ssiisiii", gensym("#X"),gensym("obj"),
+ binbuf_addv(b, "ssiisiiisss", gensym("#X"),gensym("obj"),
x->x_obj.te_xpix, x->x_obj.te_ypix ,
- gensym("slider"),x->x_max,x->x_min,x->x_width);
+ gensym("slider"),x->x_max,x->x_min,x->x_width,x->x_send,x->x_color,x->x_bgcolor);
binbuf_addv(b, ";");
}
-static void *slider_new(t_floatarg max, t_floatarg min, t_floatarg h)
+static void *slider_new(t_symbol* s,t_int argc, t_atom* argv)
{
t_fatom *x = (t_fatom *)pd_new(slider_class);
x->x_type = gensym("vslider");
- return fatom_new(x,max,min,h,&s_);
+ return fatom_new(x,argc,argv);
}
t_widgetbehavior slider_widgetbehavior;
-void slider_setup() {
+void slider_setup(void) {
slider_class = class_new(gensym("slider"), (t_newmethod)slider_new, 0,
- sizeof(t_fatom),0,A_DEFFLOAT,A_DEFFLOAT,A_DEFFLOAT,0);
-
- slider_widgetbehavior.w_getrectfn = fatom_getrect,
- slider_widgetbehavior.w_displacefn = fatom_displace,
- slider_widgetbehavior.w_selectfn = fatom_select,
- slider_widgetbehavior.w_activatefn = fatom_activate,
- slider_widgetbehavior.w_deletefn = fatom_delete,
- slider_widgetbehavior.w_visfn= fatom_vis,
-#if PD_MINOR_VERSION < 37
- slider_widgetbehavior.w_savefn = slider_save,
- slider_widgetbehavior.w_propertiesfn = NULL,
-#endif
- slider_widgetbehavior.w_clickfn = NULL,
-
- fatom_setup_common(slider_class);
+ sizeof(t_fatom),0,A_GIMME,0);
+
+ slider_widgetbehavior.w_getrectfn = fatom_getrect;
+ slider_widgetbehavior.w_displacefn = fatom_displace;
+ slider_widgetbehavior.w_selectfn = fatom_select;
+ slider_widgetbehavior.w_activatefn = fatom_activate;
+ slider_widgetbehavior.w_deletefn = fatom_delete;
+ slider_widgetbehavior.w_visfn= fatom_vis;
+ slider_widgetbehavior.w_clickfn = NULL;
+
+ fatom_setup_common(slider_class);
class_setwidget(slider_class,&slider_widgetbehavior);
-#if PD_MINOR_VERSION >= 37
+
+#if PD_MINOR_VERSION < 37
+ slider_widgetbehavior.w_savefn = slider_save;
+ slider_widgetbehavior.w_propertiesfn = NULL;
+#else
class_setsavefn(slider_class,&slider_save);
-#endif
class_setpropertiesfn(slider_class,&fatom_properties);
+#endif
+
}
diff --git a/gui/sliderh.c b/gui/sliderh.c
index d89b6de..5d86e5d 100644
--- a/gui/sliderh.c
+++ b/gui/sliderh.c
@@ -18,18 +18,18 @@ static void sliderh_save(t_gobj *z, t_binbuf *b)
t_fatom *x = (t_fatom *)z;
- binbuf_addv(b, "ssiisiii", gensym("#X"),gensym("obj"),
+ binbuf_addv(b, "ssiisiiisss", gensym("#X"),gensym("obj"),
x->x_obj.te_xpix, x->x_obj.te_ypix ,
- gensym("sliderh"),x->x_max,x->x_min,x->x_width);
+ gensym("sliderh"),x->x_max,x->x_min,x->x_width,x->x_send,x->x_color,x->x_bgcolor);
binbuf_addv(b, ";");
}
-static void *sliderh_new(t_floatarg max, t_floatarg min,t_floatarg h)
+static void *sliderh_new(t_symbol* s, int argc, t_atom* argv)
{
t_fatom *x = (t_fatom *)pd_new(sliderh_class);
x->x_type = gensym("hslider");
- return fatom_new(x,max,min,h,&s_);
+ return fatom_new(x,argc,argv);
}
@@ -38,7 +38,7 @@ t_widgetbehavior sliderh_widgetbehavior;
-void sliderh_setup() {
+void sliderh_setup(void) {
sliderh_class = class_new(gensym("sliderh"), (t_newmethod)sliderh_new, 0,
sizeof(t_fatom),0,A_DEFFLOAT,A_DEFFLOAT,A_DEFFLOAT,0);
diff --git a/install b/install
deleted file mode 100644
index bf92264..0000000
--- a/install
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-For the copyright notice read the file LICENCE.txt.
-I would like to be notified if you use this code, change it for your own
-project or would like to have some improvement. I will even accept patches
-if the don't break anything.
-
-
-Installation Instructions for ggee
-===================================
-
-To compile ggee under Linux and IRIX:
-
-Unpack ggee.**.tar.gz (you have already done that).
-
-cd to the ggee directory and type
-
-"configure" followed by
-"make" for building single externals
-"make ggext" for building the "classical" ggext library.
-
-that should do it for Linux. Any other platform I haven't tested
-yet, and I would like to hear how the compilation works there.
-
-For building on NT, use the build.bat script.
-Before doing that, take a look if there are some dll's hanging around,
-I may have included them.
-
-
-*****NEW****
-ggee now comes with support for pd-0.32. If you want to compile ggee for
-earlier versions of pd, copy the files m_pd.h, m_imp.h and !! g_canvas.h
-to the ggee "include" directory and configure with
-
-./configure --with-minor-version=30
-
-
-
-STK external (with STK 3.2)
-=============
-
-Get the STK toolkit from:
-
-<http://www-ccrma.stanford.edu/CCRMA/Software/STK/>
-
-To use the stk object, you have to download Perry Cooks STK toolkit.
-Unpack it besides ggee.
-
-Then you have to remove the file stk/include/Object.h
-
-call configure with
- configure --with-stk=../stk
-
-and then do a make.
-
- and finally, as stk needs some sound samples, you have to call
-
-make install_stk
-
- as root.
-
-
-Usage
-======
-
-To use the ggext library within pd you have to load it with the "-lib" switch. (see pd -help)
-If you built the single externals you can copy them either to a common place and use the
-"-path" option for pd (e.g. copy them to /usr/lib/pd/externs and call pd like
-"pd -path /usr/lib/pd/externs". Or, you can just put them into the same
-directory as you put the patches which use them.
-
-make install by default puts either ggext.pd_linux or all the single externals into /usr/lib/pd/externs.
-
-You can put these default options into your ".pdrc" file.
-
-
-Guenter <geiger@epy.co.at>
diff --git a/install-sh b/install-sh
deleted file mode 100644
index 7dc2f28..0000000
--- a/install-sh
+++ /dev/null
@@ -1,251 +0,0 @@
-#!/bin/sh
-#
-# install - install a program, script, or datafile
-# This comes from X11R5 (mit/util/scripts/install.sh).
-#
-# Copyright 1991 by the Massachusetts Institute of Technology
-#
-# Permission to use, copy, modify, distribute, and sell this software and its
-# documentation for any purpose is hereby granted without fee, provided that
-# the above copyright notice appear in all copies and that both that
-# copyright notice and this permission notice appear in supporting
-# documentation, and that the name of M.I.T. not be used in advertising or
-# publicity pertaining to distribution of the software without specific,
-# written prior permission. M.I.T. makes no representations about the
-# suitability of this software for any purpose. It is provided "as is"
-# without express or implied warranty.
-#
-# Calling this script install-sh is preferred over install.sh, to prevent
-# `make' implicit rules from creating a file called install from it
-# when there is no Makefile.
-#
-# This script is compatible with the BSD install script, but was written
-# from scratch. It can only install one file at a time, a restriction
-# shared with many OS's install programs.
-
-
-# set DOITPROG to echo to test this script
-
-# Don't use :- since 4.3BSD and earlier shells don't like it.
-doit="${DOITPROG-}"
-
-
-# put in absolute paths if you don't have them in your path; or use env. vars.
-
-mvprog="${MVPROG-mv}"
-cpprog="${CPPROG-cp}"
-chmodprog="${CHMODPROG-chmod}"
-chownprog="${CHOWNPROG-chown}"
-chgrpprog="${CHGRPPROG-chgrp}"
-stripprog="${STRIPPROG-strip}"
-rmprog="${RMPROG-rm}"
-mkdirprog="${MKDIRPROG-mkdir}"
-
-transformbasename=""
-transform_arg=""
-instcmd="$mvprog"
-chmodcmd="$chmodprog 0755"
-chowncmd=""
-chgrpcmd=""
-stripcmd=""
-rmcmd="$rmprog -f"
-mvcmd="$mvprog"
-src=""
-dst=""
-dir_arg=""
-
-while [ x"$1" != x ]; do
- case $1 in
- -c) instcmd="$cpprog"
- shift
- continue;;
-
- -d) dir_arg=true
- shift
- continue;;
-
- -m) chmodcmd="$chmodprog $2"
- shift
- shift
- continue;;
-
- -o) chowncmd="$chownprog $2"
- shift
- shift
- continue;;
-
- -g) chgrpcmd="$chgrpprog $2"
- shift
- shift
- continue;;
-
- -s) stripcmd="$stripprog"
- shift
- continue;;
-
- -t=*) transformarg=`echo $1 | sed 's/-t=//'`
- shift
- continue;;
-
- -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
- shift
- continue;;
-
- *) if [ x"$src" = x ]
- then
- src=$1
- else
- # this colon is to work around a 386BSD /bin/sh bug
- :
- dst=$1
- fi
- shift
- continue;;
- esac
-done
-
-if [ x"$src" = x ]
-then
- echo "install: no input file specified"
- exit 1
-else
- true
-fi
-
-if [ x"$dir_arg" != x ]; then
- dst=$src
- src=""
-
- if [ -d $dst ]; then
- instcmd=:
- chmodcmd=""
- else
- instcmd=mkdir
- fi
-else
-
-# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
-# might cause directories to be created, which would be especially bad
-# if $src (and thus $dsttmp) contains '*'.
-
- if [ -f $src -o -d $src ]
- then
- true
- else
- echo "install: $src does not exist"
- exit 1
- fi
-
- if [ x"$dst" = x ]
- then
- echo "install: no destination specified"
- exit 1
- else
- true
- fi
-
-# If destination is a directory, append the input filename; if your system
-# does not like double slashes in filenames, you may need to add some logic
-
- if [ -d $dst ]
- then
- dst="$dst"/`basename $src`
- else
- true
- fi
-fi
-
-## this sed command emulates the dirname command
-dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
-
-# Make sure that the destination directory exists.
-# this part is taken from Noah Friedman's mkinstalldirs script
-
-# Skip lots of stat calls in the usual case.
-if [ ! -d "$dstdir" ]; then
-defaultIFS='
-'
-IFS="${IFS-${defaultIFS}}"
-
-oIFS="${IFS}"
-# Some sh's can't handle IFS=/ for some reason.
-IFS='%'
-set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
-IFS="${oIFS}"
-
-pathcomp=''
-
-while [ $# -ne 0 ] ; do
- pathcomp="${pathcomp}${1}"
- shift
-
- if [ ! -d "${pathcomp}" ] ;
- then
- $mkdirprog "${pathcomp}"
- else
- true
- fi
-
- pathcomp="${pathcomp}/"
-done
-fi
-
-if [ x"$dir_arg" != x ]
-then
- $doit $instcmd $dst &&
-
- if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
- if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
- if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
- if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
-else
-
-# If we're going to rename the final executable, determine the name now.
-
- if [ x"$transformarg" = x ]
- then
- dstfile=`basename $dst`
- else
- dstfile=`basename $dst $transformbasename |
- sed $transformarg`$transformbasename
- fi
-
-# don't allow the sed command to completely eliminate the filename
-
- if [ x"$dstfile" = x ]
- then
- dstfile=`basename $dst`
- else
- true
- fi
-
-# Make a temp file name in the proper directory.
-
- dsttmp=$dstdir/#inst.$$#
-
-# Move or copy the file name to the temp name
-
- $doit $instcmd $src $dsttmp &&
-
- trap "rm -f ${dsttmp}" 0 &&
-
-# and set any options; do chmod last to preserve setuid bits
-
-# If any of these fail, we abort the whole thing. If we want to
-# ignore errors from any of these, just make sure not to ignore
-# errors from the above "$doit $instcmd $src $dsttmp" command.
-
- if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
- if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
- if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
- if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
-
-# Now rename the file to the real destination.
-
- $doit $rmcmd -f $dstdir/$dstfile &&
- $doit $mvcmd $dsttmp $dstdir/$dstfile
-
-fi &&
-
-
-exit 0
diff --git a/signal/pipewrite~.c b/signal/pipewrite~.c
index fe332f8..09b2bc7 100755
--- a/signal/pipewrite~.c
+++ b/signal/pipewrite~.c
@@ -1,8 +1,7 @@
/* (C) Guenter Geiger <geiger@epy.co.at> */
-#include "m_imp.h"
-//#include <m_pd.h>
+#include <m_pd.h>
#include "g_canvas.h"
#ifdef NT
#pragma warning( disable : 4244 )
diff --git a/version b/version
deleted file mode 100644
index 8d83ccf..0000000
--- a/version
+++ /dev/null
@@ -1 +0,0 @@
-0.24