From ea175e0b95f848dcd203e7fbc1941c20616ec4f5 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 6 Jan 2003 11:04:56 +0000 Subject: "" svn path=/trunk/; revision=324 --- externals/grill/flext/readme.txt | 4 + externals/grill/flext/source/flbase.cpp | 4 +- externals/grill/flext/source/flbase.h | 4 +- externals/grill/flext/source/fldsp.cpp | 4 + externals/grill/flext/source/flext.h | 4 +- externals/grill/flext/source/fllib.cpp | 18 +-- externals/grill/flext/source/flout.cpp | 1 - externals/grill/xsample/build-pd-linux.sh | 17 +++ externals/grill/xsample/config-pd-darwin.txt | 6 +- externals/grill/xsample/config-pd-linux.txt | 28 ++++ externals/grill/xsample/license.txt | 4 +- externals/grill/xsample/makefile.pd-darwin | 12 +- externals/grill/xsample/makefile.pd-linux | 86 +++++++++++ externals/grill/xsample/pd/ramp.pd | 29 ++++ externals/grill/xsample/pd/xgroove~.help.pd | 174 ---------------------- externals/grill/xsample/pd/xgroove~.pd | 174 ++++++++++++++++++++++ externals/grill/xsample/pd/xplay~.help.pd | 62 -------- externals/grill/xsample/pd/xplay~.pd | 62 ++++++++ externals/grill/xsample/pd/xrecord~.help.pd | 142 ------------------ externals/grill/xsample/pd/xrecord~.pd | 142 ++++++++++++++++++ externals/grill/xsample/readme.txt | 4 +- externals/grill/xsample/source/groove.cpp | 8 +- externals/grill/xsample/source/inter.ci | 10 ++ externals/grill/xsample/source/inter.cpp | 2 +- externals/grill/xsample/source/main.cpp | 6 +- externals/grill/xsample/source/main.h | 6 +- externals/grill/xsample/source/makefile.bcc | 74 --------- externals/grill/xsample/source/makefile.pd-cygwin | 89 ----------- externals/grill/xsample/source/makefile.pd-linux | 90 ----------- externals/grill/xsample/source/play.cpp | 10 +- externals/grill/xsample/source/record.cpp | 8 +- externals/grill/xsample/source/xsample.dsp | 127 ---------------- externals/grill/xsample/xsample.dsp | 127 ++++++++++++++++ 33 files changed, 737 insertions(+), 801 deletions(-) create mode 100755 externals/grill/xsample/build-pd-linux.sh create mode 100755 externals/grill/xsample/config-pd-linux.txt create mode 100644 externals/grill/xsample/makefile.pd-linux create mode 100644 externals/grill/xsample/pd/ramp.pd delete mode 100644 externals/grill/xsample/pd/xgroove~.help.pd create mode 100644 externals/grill/xsample/pd/xgroove~.pd delete mode 100644 externals/grill/xsample/pd/xplay~.help.pd create mode 100644 externals/grill/xsample/pd/xplay~.pd delete mode 100644 externals/grill/xsample/pd/xrecord~.help.pd create mode 100644 externals/grill/xsample/pd/xrecord~.pd delete mode 100644 externals/grill/xsample/source/makefile.bcc delete mode 100644 externals/grill/xsample/source/makefile.pd-cygwin delete mode 100644 externals/grill/xsample/source/makefile.pd-linux delete mode 100644 externals/grill/xsample/source/xsample.dsp create mode 100644 externals/grill/xsample/xsample.dsp diff --git a/externals/grill/flext/readme.txt b/externals/grill/flext/readme.txt index 7696ef6f..9eac2a1b 100644 --- a/externals/grill/flext/readme.txt +++ b/externals/grill/flext/readme.txt @@ -115,6 +115,10 @@ see flext.h, fldefs.h and flclass.h for the documented base definitions and clas Version history: +0.4.2: +- moved CLASS_MAINSIGNALIN to class scope (fixed "float method overwritten" warning) +- unix makefiles: CXX should be commented out if standard (to enable environmental settings) + 0.4.1: - full port for Max@OSX - completely redesigned message and attribute handling: now hashed and much more efficient diff --git a/externals/grill/flext/source/flbase.cpp b/externals/grill/flext/source/flbase.cpp index f9aaffca..516be430 100644 --- a/externals/grill/flext/source/flbase.cpp +++ b/externals/grill/flext/source/flbase.cpp @@ -62,7 +62,7 @@ bool flext_obj::Init() { return true; } bool flext_obj::Finalize() { return true; } void flext_obj::Exit() {} -void flext_obj::DefineHelp(t_class *c,const char *ref,const char *dir,bool addtilde) +void flext_obj::DefineHelp(t_classid c,const char *ref,const char *dir,bool addtilde) { #if FLEXT_SYS == FLEXT_SYS_PD char tmp[256]; @@ -74,7 +74,7 @@ void flext_obj::DefineHelp(t_class *c,const char *ref,const char *dir,bool addti } else strcpy(tmp,ref); - ::class_sethelpsymbol(c,gensym(const_cast(tmp))); + ::class_sethelpsymbol(getClass(c),gensym(const_cast(tmp))); #else // no solution for Max/MSP yet #endif diff --git a/externals/grill/flext/source/flbase.h b/externals/grill/flext/source/flbase.h index 78e4818c..ea682077 100644 --- a/externals/grill/flext/source/flbase.h +++ b/externals/grill/flext/source/flbase.h @@ -180,10 +180,10 @@ class FLEXT_SHARE flext_obj: /*! Define the help reference symbol for a class \internal */ - static void DefineHelp(t_class *c,const char *ref,const char *dir = NULL,bool addtilde = false); + static void DefineHelp(t_classid c,const char *ref,const char *dir = NULL,bool addtilde = false); //! Define the help reference symbol for a class - void DefineHelp(const char *ref,const char *dir = NULL,bool addtilde = false) { DefineHelp(thisClass(),ref,dir,addtilde); } + void DefineHelp(const char *ref,const char *dir = NULL,bool addtilde = false) { DefineHelp(thisClassId(),ref,dir,addtilde); } //! @} diff --git a/externals/grill/flext/source/fldsp.cpp b/externals/grill/flext/source/fldsp.cpp index 03492ce0..7f845074 100644 --- a/externals/grill/flext/source/fldsp.cpp +++ b/externals/grill/flext/source/fldsp.cpp @@ -29,6 +29,10 @@ void flext_dsp::Setup(t_classid id) dsp_initboxclass(); #endif +#if FLEXT_SYS == FLEXT_SYS_PD + CLASS_MAINSIGNALIN(c,flext_hdr,defsig); +#endif + add_dsp(c,cb_dsp); #if FLEXT_SYS != FLEXT_SYS_MAX add_method1(c,cb_enable,"enable",A_FLOAT); diff --git a/externals/grill/flext/source/flext.h b/externals/grill/flext/source/flext.h index 8f1a71ce..b62b583e 100644 --- a/externals/grill/flext/source/flext.h +++ b/externals/grill/flext/source/flext.h @@ -23,10 +23,10 @@ WARRANTIES, see the file, "license.txt," in this distribution. */ //! \brief flext version number -#define FLEXT_VERSION 401 +#define FLEXT_VERSION 402 //! \brief flext version string -#define FLEXT_VERSTR "0.4.1" +#define FLEXT_VERSTR "0.4.2pre" //! @} diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp index cd0c65d9..2d3aaa4c 100755 --- a/externals/grill/flext/source/fllib.cpp +++ b/externals/grill/flext/source/fllib.cpp @@ -270,8 +270,16 @@ void flext_obj::obj_add(bool lib,bool dsp,bool attr,const char *idname,const cha va_end(marker); } + // get unique class id +#if FLEXT_SYS == FLEXT_SYS_PD + t_classid clid = lo->clss; +#else + // in Max/MSP the t_class *value can't be used because it's possible that's it's not yet set!! + t_classid clid = lo; +#endif + // make help reference - flext_obj::DefineHelp(lo->clss,idname,extract(names,-1),dsp); + flext_obj::DefineHelp(clid,idname,extract(names,-1),dsp); for(int ix = 0; ; ++ix) { // in this loop register all the possible aliases of the object @@ -296,14 +304,6 @@ void flext_obj::obj_add(bool lib,bool dsp,bool attr,const char *idname,const cha #endif } - // get unique class id -#if FLEXT_SYS == FLEXT_SYS_PD - t_classid clid = lo->clss; -#else - // in Max/MSP the t_class *value can't be used because it's possible that's it's not yet set!! - t_classid clid = lo; -#endif - // call class setup function setupfun(clid); } diff --git a/externals/grill/flext/source/flout.cpp b/externals/grill/flext/source/flout.cpp index 382c7e39..f8fb1fe1 100644 --- a/externals/grill/flext/source/flout.cpp +++ b/externals/grill/flext/source/flout.cpp @@ -79,7 +79,6 @@ bool flext_base::InitInlets() if(incnt >= 1) { switch(list[0]) { case xlet::tp_sig: - CLASS_MAINSIGNALIN(thisClass(),flext_hdr,defsig); ++insigs; break; default: diff --git a/externals/grill/xsample/build-pd-linux.sh b/externals/grill/xsample/build-pd-linux.sh new file mode 100755 index 00000000..77c6e3ff --- /dev/null +++ b/externals/grill/xsample/build-pd-linux.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +SYS=pd-linux + +. config-${SYS}.txt + +make -f makefile.${SYS} && +{ + if [ $INSTDIR != "" ]; then + echo Now install as root + su -c "make -f makefile.${SYS} install" + fi + if [ $HELPDIR != "" ]; then + echo Now install help as root + su -c "make -f makefile.${SYS} install-help" + fi +} diff --git a/externals/grill/xsample/config-pd-darwin.txt b/externals/grill/xsample/config-pd-darwin.txt index 8344a8d3..005a3975 100755 --- a/externals/grill/xsample/config-pd-darwin.txt +++ b/externals/grill/xsample/config-pd-darwin.txt @@ -2,8 +2,8 @@ # Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) # -# your c++ compiler (normally g++) -CXX=g++ +# your c++ compiler (if not g++) +# CXX=g++ # where does the PD installation reside? PD=/usr/local/pd @@ -19,7 +19,7 @@ PDBIN=${PD}/bin/pd # where do the flext libraries reside? FLEXTPATH=${PD}/flext -# where should flext libraries be built? +# where should the xsample objects be built? TARGDIR=./pd-darwin # where should xsample be installed? diff --git a/externals/grill/xsample/config-pd-linux.txt b/externals/grill/xsample/config-pd-linux.txt new file mode 100755 index 00000000..26e62e49 --- /dev/null +++ b/externals/grill/xsample/config-pd-linux.txt @@ -0,0 +1,28 @@ +# xsample - extended sample objects for Max/MSP and pd (pure data) +# Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) +# + +# your c++ compiler (if not g++) +# CXX=g++ + +# where does the PD installation reside? +PD=/usr/local/lib/pd + +# where are the PD header files? +# leave it blank if it is a system directory (like /usr/local/include), +# since gcc 3.2 complains about it +PDINC= + +# where do the flext libraries reside? +FLEXTPATH=${PD}/flext + +# where should xsample objects be built? +TARGDIR=./pd-linux + +# where should xsample be installed? +# (leave blank to omit installation) +INSTDIR=${PD}/extra + +# where should the xsample help be installed? +# (leave blank to omit installation) +HELPDIR=${PD}/doc/5.reference diff --git a/externals/grill/xsample/license.txt b/externals/grill/xsample/license.txt index dc45deed..01baf51a 100644 --- a/externals/grill/xsample/license.txt +++ b/externals/grill/xsample/license.txt @@ -1,5 +1,5 @@ xsample - extended sample objects for Max/MSP and pd (pure data) -Copyright (C) 2001,2002 Thomas Grill +Copyright (C) 2001-2003 Thomas Grill This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -30,7 +30,7 @@ See the license texts below: --- flext ---------------------------------------------- flext - C++ layer for Max/MSP and pd (pure data) externals -Copyright (C) 2001,2002 Thomas Grill +Copyright (C) 2001-2003 Thomas Grill This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/externals/grill/xsample/makefile.pd-darwin b/externals/grill/xsample/makefile.pd-darwin index 0573cb4d..0dbb0611 100755 --- a/externals/grill/xsample/makefile.pd-darwin +++ b/externals/grill/xsample/makefile.pd-darwin @@ -1,5 +1,5 @@ # xsample - extended sample objects for Max/MSP and pd (pure data) -# Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) +# Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) # # Makefile for gcc @ OSX (darwin) # @@ -13,11 +13,11 @@ CONFIG=config-pd-darwin.txt include ${CONFIG} -FLEXTLIB=$(FLEXTPATH)/flext_t.a +FLEXTLIB=$(FLEXTPATH)/flext.a # compiler stuff INCLUDES=$(PDINC) -FLAGS=-DFLEXT_SYS=2 -DFLEXT_THREADS +FLAGS=-DFLEXT_SYS=2 CFLAGS=-O6 -Wno-unused -Wno-parentheses -Wno-switch -Wstrict-prototypes # -maltivec LIBS=m LDFLAGS=-bundle -bundle_loader $(PDBIN) @@ -42,7 +42,7 @@ $(patsubst %,$(SRCDIR)/%,$(SRCS)): $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(MAKEFILE) touch $(patsubst %,$(SRCDIR)/%,$(SRCS)) $(TARGDIR): - mkdir $(TARGDIR) + -mkdir $(TARGDIR) $(TARGDIR)/%.o : $(SRCDIR)/%.cpp $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@ @@ -53,7 +53,7 @@ $(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(FLEXTLIB) $(INSTDIR): - mkdir $(INSTDIR) + -mkdir $(INSTDIR) install:: $(INSTDIR) @@ -63,7 +63,7 @@ install:: $(TARGET) $(HELPDIR): - mkdir $(HELPDIR) + -mkdir $(HELPDIR) install-help:: $(HELPDIR) diff --git a/externals/grill/xsample/makefile.pd-linux b/externals/grill/xsample/makefile.pd-linux new file mode 100644 index 00000000..9e6dabaf --- /dev/null +++ b/externals/grill/xsample/makefile.pd-linux @@ -0,0 +1,86 @@ +# xsample - extended sample objects for Max/MSP and pd (pure data) +# Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) +# +# Makefile for gcc @ linux +# +# usage: +# to build run "make -f makefile.pd-linux" +# to install (as root), do "make -f makefile.pd-linux install" +# + +CONFIG=config-pd-linux.txt + +include ${CONFIG} + +FLEXTLIB=$(FLEXTPATH)/flext.a + +# compiler stuff +INCLUDES=$(PDINC) +FLAGS=-DFLEXT_SYS=2 +CFLAGS=-O6 -mcpu=pentiumpro -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions +#CFLAGS=-O6 -mcpu=pentium3 -msse -mfpmath=sse -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions +LIBS=m + +# ---------------------------------------------- +# the rest can stay untouched +# ---------------------------------------------- + +NAME=xsample +SRCDIR=source + +include make-files.txt + +MAKEFILE=makefile.pd-linux +TARGET=$(TARGDIR)/$(NAME).pd_linux + +# default target +all: $(TARGDIR) $(TARGET) + +$(patsubst %,$(SRCDIR)/%,$(SRCS)): $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(MAKEFILE) $(CONFIG) + touch $(patsubst %,$(SRCDIR)/%,$(SRCS)) + +$(TARGDIR): + -mkdir $(TARGDIR) + +$(TARGDIR)/%.o : $(SRCDIR)/%.cpp + $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@ + +$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(FLEXTLIB) + $(CXX) $(LDFLAGS) -shared $^ $(patsubst %,-l%,$(LIBS)) -o $@ + strip --strip-unneeded $@ + chmod 755 $@ + +$(INSTDIR): + -mkdir $(INSTDIR) + +install:: $(INSTDIR) + +install:: $(TARGET) + cp $^ $(INSTDIR) + chown root.root $(patsubst %,$(INSTDIR)/%,$(notdir $^)) + +$(HELPDIR): + -mkdir $(HELPDIR) + +install-help:: $(HELPDIR) + +install-help:: ./pd + chmod 644 $^/*.* + cp $^/*.* $(HELPDIR) + + +.PHONY: clean +clean: + rm -f $(TARGDIR)/*.o $(TARGET) + + + + + + + + + + + + diff --git a/externals/grill/xsample/pd/ramp.pd b/externals/grill/xsample/pd/ramp.pd new file mode 100644 index 00000000..c83678ac --- /dev/null +++ b/externals/grill/xsample/pd/ramp.pd @@ -0,0 +1,29 @@ +#N canvas 79 120 562 484 12; +#X obj 85 248 line~; +#X obj 88 124 delay \$1; +#X obj 85 177 pack 1 \$1; +#X obj 84 307 outlet~; +#X obj 139 61 route pos; +#X obj 88 98 t b b f; +#X obj 207 307 outlet; +#X msg 186 268 pos \$1; +#X obj 186 241 f; +#X obj 139 31 inlet; +#X obj 18 35 loadbang; +#X obj 17 69 1; +#X obj 120 151 pack 0 \$1; +#X connect 0 0 3 0; +#X connect 1 0 2 0; +#X connect 1 0 8 0; +#X connect 2 0 0 0; +#X connect 4 0 5 0; +#X connect 4 1 6 0; +#X connect 5 0 1 0; +#X connect 5 1 12 0; +#X connect 5 2 8 1; +#X connect 7 0 6 0; +#X connect 8 0 7 0; +#X connect 9 0 4 0; +#X connect 10 0 11 0; +#X connect 11 0 0 0; +#X connect 12 0 0 0; diff --git a/externals/grill/xsample/pd/xgroove~.help.pd b/externals/grill/xsample/pd/xgroove~.help.pd deleted file mode 100644 index da24d9ec..00000000 --- a/externals/grill/xsample/pd/xgroove~.help.pd +++ /dev/null @@ -1,174 +0,0 @@ -#N canvas 92 110 839 558 12; -#X obj 258 240 hsl 128 15 0.001 3 1 1 empty empty empty 20 8 0 8 -225271 --1 -1 0 1; -#X floatatom 255 261 8 0 0; -#X floatatom 275 312 8 0 0; -#X floatatom 350 312 8 0 0; -#X floatatom 273 372 8 0 0; -#X floatatom 348 372 8 0 0; -#X obj 275 419 loadbang; -#X obj 274 445 metro 30; -#X obj 250 470 snapshot~; -#X floatatom 250 494 8 0 0; -#X msg 258 82 loop \$1; -#X obj 159 27 bng 15 250 50 0 empty empty empty 20 8 0 8 -258699 -1 --1; -#X msg 158 47 stop; -#N canvas 0 0 450 300 graph7 0; -#X array buf 300 float 1; -#A 0 0.841115 0.9094 0.95923 0.989636 0.999991 0.990063 0.960094 0.910649 -0.842757 0.757796 0.65746 0.543816 0.419143 0.285978 0.147021 0.00508036 --0.136962 -0.276228 -0.409895 -0.535265 -0.649771 -0.751121 -0.83725 --0.906401 -0.957205 -0.988587 -0.999947 -0.991051 -0.962051 -0.913577 --0.846573 -0.762418 -0.662823 -0.549777 -0.425604 -0.292801 -0.154064 --0.0122066 0.129898 0.269372 0.403387 0.529223 0.644347 0.746395 0.833328 -0.903378 0.955105 0.987498 0.99986 0.991967 0.963983 0.91644 0.850346 -0.767009 0.668129 0.555721 0.432034 0.299602 0.161097 0.0193266 -0.122836 --0.262506 -0.396859 -0.523173 -0.638875 -0.741645 -0.82937 -0.900294 --0.952984 -0.986339 -0.999729 -0.992844 -0.965842 -0.919283 -0.854067 --0.771564 -0.673418 -0.561622 -0.438457 -0.306392 -0.168126 -0.0264512 -0.115759 0.255627 0.390308 0.517083 0.633384 0.736837 0.825374 0.89717 -0.95079 0.985156 0.999531 0.993672 0.967666 0.922048 0.857765 0.776069 -0.678665 0.567504 0.444838 0.313167 0.175141 0.0335691 -0.108684 -0.248732 --0.383745 -0.510974 -0.627851 -0.732014 -0.821324 -0.894008 -0.948562 --0.983895 -0.999309 -0.994439 -0.96944 -0.924788 -0.861391 -0.780556 --0.683878 -0.573355 -0.451214 -0.319922 -0.182154 -0.0406903 0.101596 -0.241826 0.37715 0.504839 0.62229 0.727131 0.81725 0.890784 0.946286 -0.982602 0.999003 0.99518 0.971156 0.927473 0.864993 0.784974 0.689065 -0.579174 0.457555 0.326665 0.189149 0.047805 -0.0945095 -0.234908 -0.370551 --0.498674 -0.616703 -0.722227 -0.813114 -0.887541 -0.943952 -0.981256 --0.998669 -0.995836 -0.972845 -0.93011 -0.868543 -0.789377 -0.694202 --0.584975 -0.463879 -0.333389 -0.196144 -0.0549212 0.0874133 0.227976 -0.363918 0.492493 0.611072 0.717282 0.80895 0.88422 0.941593 0.979852 -0.998275 0.996467 0.974453 0.932714 0.872048 0.793723 0.699318 0.590728 -0.47018 0.340094 0.20312 0.0620311 -0.0803164 -0.221037 -0.357277 -0.486275 --0.605431 -0.712297 -0.804743 -0.880878 -0.939154 -0.97842 -0.99783 --0.997035 -0.976038 -0.935246 -0.875523 -0.798037 -0.704388 -0.596471 --0.476452 -0.346789 -0.210093 -0.0691412 0.0732124 0.21408 0.350613 -0.480039 0.599733 0.707289 0.800488 0.87748 0.936691 0.976908 0.997349 -0.997554 0.977556 0.937754 0.87893 0.802314 0.709426 0.602164 0.482708 -0.353456 0.217051 0.0762439 -0.0661074 -0.207122 -0.343933 -0.473779 --0.594024 -0.702224 -0.796211 -0.87404 -0.934169 -0.975372 -0.996792 --0.998035 -0.979032 -0.940196 -0.882319 -0.806539 -0.714434 -0.60784 --0.48893 -0.36012 -0.224 -0.0833475 0.0589955 0.200142 0.337238 0.467489 -0.588274 0.69714 0.791867 0.870566 0.931602 0.973768 0.996211 0.998443 -0.980464 0.9426 0.885637 0.810741 0.719392 0.613481 0.495132 0.366748 -0.230939 0.0904412 -0.0518851 -0.193161 -0.33052 -0.461188 -0.582499 --0.692013 -0.787507 -0.867028 -0.928998 -0.972125 -0.995556 -0.998827 --0.98183 -0.944959 -0.888927 -0.81488 -0.724336 -0.619089 -0.501311 --0.373371; -#X coords 0 1 299 -1 300 200 1; -#X restore 521 23 graph; -#X obj 144 486 dac~; -#X msg 157 86 reset; -#X text 290 292 min/max points; -#X text 289 390 min/max points; -#X text 323 494 position; -#X text 181 24 start; -#X text 198 45 stop; -#X msg 156 113 help; -#X text 416 234 speed; -#X text 337 254 (float or signal); -#X obj 656 365 table buf2; -#X floatatom 519 380 8 0 0; -#X obj 519 353 soundfiler; -#X msg 158 172 set buf2; -#X msg 157 144 set buf; -#X msg 372 82 interp \$1; -#X msg 240 312 all; -#X obj 198 341 xgroove~ buf; -#X text 255 10 looping mode; -#X text 370 9 interpolation; -#X msg 20 170 pos 100; -#X msg 35 199 pos 200; -#X obj 152 447 *~; -#X obj 22 242 ramp 10; -#X msg 10 105 xzone \$1; -#X obj 13 62 hsl 128 15 0 300 0 0 empty empty empty -2 -6 0 8 -262144 --1 -1 0 1; -#X floatatom 10 83 5 0 0; -#X obj 258 32 vdl 15 0 0 3 empty empty empty 0 -6 0 8 -262144 -1 -1 -0; -#X text 277 29 once; -#X text 277 45 forward; -#X text 277 61 bidir; -#X obj 372 31 vdl 15 0 0 3 empty empty empty 0 -6 0 8 -262144 -1 -1 -0; -#X text 391 28 none; -#X text 391 44 linear; -#X text 391 60 4-point; -#X obj 520 299 openpanel; -#X msg 521 326 read -resize \$1 buf2; -#X obj 521 275 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X obj 256 134 vdl 15 0 0 4 empty empty empty 0 -6 0 8 -262144 -1 -1 -0; -#X text 255 113 units; -#X msg 256 199 units \$1; -#X obj 364 134 vdl 15 0 0 4 empty empty empty 0 -6 0 8 -262144 -1 -1 -0; -#X text 363 113 scale mode; -#X msg 364 199 sclmode \$1; -#X text 275 131 frames; -#X text 275 147 buffer sz; -#X text 275 163 ms; -#X text 275 178 s; -#X text 383 147 units in loop; -#X text 383 163 buffer; -#X text 383 178 loop; -#X text 383 131 units in buffer; -#X obj 524 440 osc~ 1000; -#X obj 524 498 tabwrite~ buf; -#X obj 536 467 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X msg 557 468 stop; -#X obj 319 343 print A; -#X msg 131 213 getattributes; -#X msg 177 248 getmax; -#X msg 120 248 getmin; -#X connect 0 0 1 0; -#X connect 1 0 31 0; -#X connect 2 0 31 1; -#X connect 3 0 31 2; -#X connect 6 0 7 0; -#X connect 7 0 8 0; -#X connect 8 0 9 0; -#X connect 10 0 31 0; -#X connect 11 0 31 0; -#X connect 12 0 31 0; -#X connect 15 0 31 0; -#X connect 21 0 31 0; -#X connect 26 0 25 0; -#X connect 27 0 31 0; -#X connect 28 0 31 0; -#X connect 29 0 31 0; -#X connect 30 0 31 0; -#X connect 31 0 36 1; -#X connect 31 1 8 0; -#X connect 31 2 4 0; -#X connect 31 3 5 0; -#X connect 31 5 70 0; -#X connect 34 0 37 0; -#X connect 35 0 37 0; -#X connect 36 0 14 0; -#X connect 36 0 14 1; -#X connect 37 0 36 0; -#X connect 37 1 31 0; -#X connect 38 0 31 0; -#X connect 39 0 40 0; -#X connect 40 0 38 0; -#X connect 41 0 10 0; -#X connect 45 0 29 0; -#X connect 49 0 50 0; -#X connect 50 0 26 0; -#X connect 51 0 49 0; -#X connect 52 0 54 0; -#X connect 54 0 31 0; -#X connect 55 0 57 0; -#X connect 57 0 31 0; -#X connect 66 0 67 0; -#X connect 68 0 67 0; -#X connect 69 0 67 0; -#X connect 71 0 31 0; -#X connect 72 0 31 0; -#X connect 73 0 31 0; diff --git a/externals/grill/xsample/pd/xgroove~.pd b/externals/grill/xsample/pd/xgroove~.pd new file mode 100644 index 00000000..da24d9ec --- /dev/null +++ b/externals/grill/xsample/pd/xgroove~.pd @@ -0,0 +1,174 @@ +#N canvas 92 110 839 558 12; +#X obj 258 240 hsl 128 15 0.001 3 1 1 empty empty empty 20 8 0 8 -225271 +-1 -1 0 1; +#X floatatom 255 261 8 0 0; +#X floatatom 275 312 8 0 0; +#X floatatom 350 312 8 0 0; +#X floatatom 273 372 8 0 0; +#X floatatom 348 372 8 0 0; +#X obj 275 419 loadbang; +#X obj 274 445 metro 30; +#X obj 250 470 snapshot~; +#X floatatom 250 494 8 0 0; +#X msg 258 82 loop \$1; +#X obj 159 27 bng 15 250 50 0 empty empty empty 20 8 0 8 -258699 -1 +-1; +#X msg 158 47 stop; +#N canvas 0 0 450 300 graph7 0; +#X array buf 300 float 1; +#A 0 0.841115 0.9094 0.95923 0.989636 0.999991 0.990063 0.960094 0.910649 +0.842757 0.757796 0.65746 0.543816 0.419143 0.285978 0.147021 0.00508036 +-0.136962 -0.276228 -0.409895 -0.535265 -0.649771 -0.751121 -0.83725 +-0.906401 -0.957205 -0.988587 -0.999947 -0.991051 -0.962051 -0.913577 +-0.846573 -0.762418 -0.662823 -0.549777 -0.425604 -0.292801 -0.154064 +-0.0122066 0.129898 0.269372 0.403387 0.529223 0.644347 0.746395 0.833328 +0.903378 0.955105 0.987498 0.99986 0.991967 0.963983 0.91644 0.850346 +0.767009 0.668129 0.555721 0.432034 0.299602 0.161097 0.0193266 -0.122836 +-0.262506 -0.396859 -0.523173 -0.638875 -0.741645 -0.82937 -0.900294 +-0.952984 -0.986339 -0.999729 -0.992844 -0.965842 -0.919283 -0.854067 +-0.771564 -0.673418 -0.561622 -0.438457 -0.306392 -0.168126 -0.0264512 +0.115759 0.255627 0.390308 0.517083 0.633384 0.736837 0.825374 0.89717 +0.95079 0.985156 0.999531 0.993672 0.967666 0.922048 0.857765 0.776069 +0.678665 0.567504 0.444838 0.313167 0.175141 0.0335691 -0.108684 -0.248732 +-0.383745 -0.510974 -0.627851 -0.732014 -0.821324 -0.894008 -0.948562 +-0.983895 -0.999309 -0.994439 -0.96944 -0.924788 -0.861391 -0.780556 +-0.683878 -0.573355 -0.451214 -0.319922 -0.182154 -0.0406903 0.101596 +0.241826 0.37715 0.504839 0.62229 0.727131 0.81725 0.890784 0.946286 +0.982602 0.999003 0.99518 0.971156 0.927473 0.864993 0.784974 0.689065 +0.579174 0.457555 0.326665 0.189149 0.047805 -0.0945095 -0.234908 -0.370551 +-0.498674 -0.616703 -0.722227 -0.813114 -0.887541 -0.943952 -0.981256 +-0.998669 -0.995836 -0.972845 -0.93011 -0.868543 -0.789377 -0.694202 +-0.584975 -0.463879 -0.333389 -0.196144 -0.0549212 0.0874133 0.227976 +0.363918 0.492493 0.611072 0.717282 0.80895 0.88422 0.941593 0.979852 +0.998275 0.996467 0.974453 0.932714 0.872048 0.793723 0.699318 0.590728 +0.47018 0.340094 0.20312 0.0620311 -0.0803164 -0.221037 -0.357277 -0.486275 +-0.605431 -0.712297 -0.804743 -0.880878 -0.939154 -0.97842 -0.99783 +-0.997035 -0.976038 -0.935246 -0.875523 -0.798037 -0.704388 -0.596471 +-0.476452 -0.346789 -0.210093 -0.0691412 0.0732124 0.21408 0.350613 +0.480039 0.599733 0.707289 0.800488 0.87748 0.936691 0.976908 0.997349 +0.997554 0.977556 0.937754 0.87893 0.802314 0.709426 0.602164 0.482708 +0.353456 0.217051 0.0762439 -0.0661074 -0.207122 -0.343933 -0.473779 +-0.594024 -0.702224 -0.796211 -0.87404 -0.934169 -0.975372 -0.996792 +-0.998035 -0.979032 -0.940196 -0.882319 -0.806539 -0.714434 -0.60784 +-0.48893 -0.36012 -0.224 -0.0833475 0.0589955 0.200142 0.337238 0.467489 +0.588274 0.69714 0.791867 0.870566 0.931602 0.973768 0.996211 0.998443 +0.980464 0.9426 0.885637 0.810741 0.719392 0.613481 0.495132 0.366748 +0.230939 0.0904412 -0.0518851 -0.193161 -0.33052 -0.461188 -0.582499 +-0.692013 -0.787507 -0.867028 -0.928998 -0.972125 -0.995556 -0.998827 +-0.98183 -0.944959 -0.888927 -0.81488 -0.724336 -0.619089 -0.501311 +-0.373371; +#X coords 0 1 299 -1 300 200 1; +#X restore 521 23 graph; +#X obj 144 486 dac~; +#X msg 157 86 reset; +#X text 290 292 min/max points; +#X text 289 390 min/max points; +#X text 323 494 position; +#X text 181 24 start; +#X text 198 45 stop; +#X msg 156 113 help; +#X text 416 234 speed; +#X text 337 254 (float or signal); +#X obj 656 365 table buf2; +#X floatatom 519 380 8 0 0; +#X obj 519 353 soundfiler; +#X msg 158 172 set buf2; +#X msg 157 144 set buf; +#X msg 372 82 interp \$1; +#X msg 240 312 all; +#X obj 198 341 xgroove~ buf; +#X text 255 10 looping mode; +#X text 370 9 interpolation; +#X msg 20 170 pos 100; +#X msg 35 199 pos 200; +#X obj 152 447 *~; +#X obj 22 242 ramp 10; +#X msg 10 105 xzone \$1; +#X obj 13 62 hsl 128 15 0 300 0 0 empty empty empty -2 -6 0 8 -262144 +-1 -1 0 1; +#X floatatom 10 83 5 0 0; +#X obj 258 32 vdl 15 0 0 3 empty empty empty 0 -6 0 8 -262144 -1 -1 +0; +#X text 277 29 once; +#X text 277 45 forward; +#X text 277 61 bidir; +#X obj 372 31 vdl 15 0 0 3 empty empty empty 0 -6 0 8 -262144 -1 -1 +0; +#X text 391 28 none; +#X text 391 44 linear; +#X text 391 60 4-point; +#X obj 520 299 openpanel; +#X msg 521 326 read -resize \$1 buf2; +#X obj 521 275 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 256 134 vdl 15 0 0 4 empty empty empty 0 -6 0 8 -262144 -1 -1 +0; +#X text 255 113 units; +#X msg 256 199 units \$1; +#X obj 364 134 vdl 15 0 0 4 empty empty empty 0 -6 0 8 -262144 -1 -1 +0; +#X text 363 113 scale mode; +#X msg 364 199 sclmode \$1; +#X text 275 131 frames; +#X text 275 147 buffer sz; +#X text 275 163 ms; +#X text 275 178 s; +#X text 383 147 units in loop; +#X text 383 163 buffer; +#X text 383 178 loop; +#X text 383 131 units in buffer; +#X obj 524 440 osc~ 1000; +#X obj 524 498 tabwrite~ buf; +#X obj 536 467 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 557 468 stop; +#X obj 319 343 print A; +#X msg 131 213 getattributes; +#X msg 177 248 getmax; +#X msg 120 248 getmin; +#X connect 0 0 1 0; +#X connect 1 0 31 0; +#X connect 2 0 31 1; +#X connect 3 0 31 2; +#X connect 6 0 7 0; +#X connect 7 0 8 0; +#X connect 8 0 9 0; +#X connect 10 0 31 0; +#X connect 11 0 31 0; +#X connect 12 0 31 0; +#X connect 15 0 31 0; +#X connect 21 0 31 0; +#X connect 26 0 25 0; +#X connect 27 0 31 0; +#X connect 28 0 31 0; +#X connect 29 0 31 0; +#X connect 30 0 31 0; +#X connect 31 0 36 1; +#X connect 31 1 8 0; +#X connect 31 2 4 0; +#X connect 31 3 5 0; +#X connect 31 5 70 0; +#X connect 34 0 37 0; +#X connect 35 0 37 0; +#X connect 36 0 14 0; +#X connect 36 0 14 1; +#X connect 37 0 36 0; +#X connect 37 1 31 0; +#X connect 38 0 31 0; +#X connect 39 0 40 0; +#X connect 40 0 38 0; +#X connect 41 0 10 0; +#X connect 45 0 29 0; +#X connect 49 0 50 0; +#X connect 50 0 26 0; +#X connect 51 0 49 0; +#X connect 52 0 54 0; +#X connect 54 0 31 0; +#X connect 55 0 57 0; +#X connect 57 0 31 0; +#X connect 66 0 67 0; +#X connect 68 0 67 0; +#X connect 69 0 67 0; +#X connect 71 0 31 0; +#X connect 72 0 31 0; +#X connect 73 0 31 0; diff --git a/externals/grill/xsample/pd/xplay~.help.pd b/externals/grill/xsample/pd/xplay~.help.pd deleted file mode 100644 index 5bf89020..00000000 --- a/externals/grill/xsample/pd/xplay~.help.pd +++ /dev/null @@ -1,62 +0,0 @@ -#N canvas 297 114 618 302 12; -#X obj 69 252 dac~; -#X obj 19 54 bng 15 250 50 0 empty empty empty 20 8 0 8 -258699 -1 --1; -#X msg 18 74 stop; -#X msg 16 141 reset; -#X text 41 51 start; -#X text 58 72 stop; -#X obj 125 155 *~ 300; -#X text 107 176 position signal; -#X msg 16 115 help; -#N canvas 0 0 450 300 graph7 0; -#X array buf 300 float 1; -#A 0 -0.03 -0.03 -0.03 -0.0366667 -0.0433333 -0.05 -0.065 -0.08 -0.085 --0.09 -0.096 -0.102 -0.108 -0.114 -0.12 -0.1275 -0.135 -0.1425 -0.15 --0.156 -0.162 -0.168 -0.174 -0.18 -0.186 -0.192 -0.198 -0.204 -0.21 --0.2175 -0.225 -0.2325 -0.24 -0.246 -0.252 -0.258 -0.264 -0.27 -0.276 --0.282 -0.288 -0.294 -0.3 -0.305 -0.31 -0.315 -0.32 -0.325 -0.33 -0.335 --0.34 -0.34375 -0.3475 -0.35125 -0.355 -0.35875 -0.3625 -0.36625 -0.37 --0.373333 -0.376667 -0.38 -0.383333 -0.386667 -0.39 -0.393333 -0.396667 --0.4 -0.402 -0.404 -0.406 -0.408 -0.41 -0.4125 -0.415 -0.4175 -0.42 --0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 --0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.4175 -0.415 -0.4125 -0.41 --0.41 -0.4 -0.39 -0.39 -0.385 -0.38 -0.36 -0.35 -0.34 -0.33 -0.32 -0.31 --0.3 -0.29 -0.28 -0.27 -0.26 -0.25 -0.2425 -0.235 -0.2275 -0.22 -0.21 --0.2 -0.19 -0.18 -0.17 -0.16 -0.15 -0.14 -0.132 -0.124 -0.116 -0.108 --0.1 -0.09 -0.08 -0.07 -0.06 -0.05 -0.0425 -0.035 -0.0275 -0.02 -0.01 -0 0.01 0.0175 0.025 0.0325 0.04 0.05 0.06 0.07 0.08 0.08875 0.0975 -0.10625 0.115 0.12375 0.1325 0.14125 0.15 0.156 0.162 0.168 0.174 0.18 -0.186 0.192 0.198 0.204 0.21 0.22 0.23 0.24 0.25 0.26 0.27 0.278 0.286 -0.294 0.302 0.31 0.318 0.326 0.334 0.342 0.35 0.355556 0.361111 0.366667 -0.372222 0.377778 0.383333 0.388889 0.394444 0.4 0.405714 0.411429 -0.417143 0.45 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 -0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 -0.46 0.46 0.46 0.46 0.46 0.456667 0.453333 0.45 0.45 0.45 0.448333 -0.446667 0.445 0.443333 0.441667 0.44 0.44 0.43625 0.4325 0.42875 0.425 -0.42125 0.4175 0.41375 0.41 0.405 0.4 0.4 0.3925 0.385 0.3775 0.37 -0.37 0.355 0.35 0.34 0.33 0.32 0.31 0.29 0.283333 0.276667 0.27 0.26 -0.25 0.24 0.23 0.22 0.21 0.2 0.19 0.18 0.16 0.15 0.14 0.13 0.12 0.11 -0.105 0.1 0.09 0.075 0.06 0.05 0.04 0.03 0.02 0 -0.02 -0.0266667 -0.0333333 --0.04 -0.05; -#X coords 0 1 299 -1 300 200 1; -#X restore 284 17 graph; -#X obj 117 82 hsl 128 15 1 100 1 1 empty empty empty 20 8 0 8 -225271 --1 -1 11100 1; -#X obj 77 203 xplay~ buf; -#X msg 17 168 print; -#X obj 124 124 phasor~ 100; -#X obj 151 237 print A; -#X msg 107 16 getattributes; -#X connect 1 0 11 0; -#X connect 2 0 11 0; -#X connect 3 0 11 0; -#X connect 6 0 11 0; -#X connect 8 0 11 0; -#X connect 10 0 13 0; -#X connect 11 0 0 0; -#X connect 11 0 0 1; -#X connect 11 1 14 0; -#X connect 12 0 11 0; -#X connect 13 0 6 0; -#X connect 15 0 11 0; diff --git a/externals/grill/xsample/pd/xplay~.pd b/externals/grill/xsample/pd/xplay~.pd new file mode 100644 index 00000000..5bf89020 --- /dev/null +++ b/externals/grill/xsample/pd/xplay~.pd @@ -0,0 +1,62 @@ +#N canvas 297 114 618 302 12; +#X obj 69 252 dac~; +#X obj 19 54 bng 15 250 50 0 empty empty empty 20 8 0 8 -258699 -1 +-1; +#X msg 18 74 stop; +#X msg 16 141 reset; +#X text 41 51 start; +#X text 58 72 stop; +#X obj 125 155 *~ 300; +#X text 107 176 position signal; +#X msg 16 115 help; +#N canvas 0 0 450 300 graph7 0; +#X array buf 300 float 1; +#A 0 -0.03 -0.03 -0.03 -0.0366667 -0.0433333 -0.05 -0.065 -0.08 -0.085 +-0.09 -0.096 -0.102 -0.108 -0.114 -0.12 -0.1275 -0.135 -0.1425 -0.15 +-0.156 -0.162 -0.168 -0.174 -0.18 -0.186 -0.192 -0.198 -0.204 -0.21 +-0.2175 -0.225 -0.2325 -0.24 -0.246 -0.252 -0.258 -0.264 -0.27 -0.276 +-0.282 -0.288 -0.294 -0.3 -0.305 -0.31 -0.315 -0.32 -0.325 -0.33 -0.335 +-0.34 -0.34375 -0.3475 -0.35125 -0.355 -0.35875 -0.3625 -0.36625 -0.37 +-0.373333 -0.376667 -0.38 -0.383333 -0.386667 -0.39 -0.393333 -0.396667 +-0.4 -0.402 -0.404 -0.406 -0.408 -0.41 -0.4125 -0.415 -0.4175 -0.42 +-0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 +-0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.42 -0.4175 -0.415 -0.4125 -0.41 +-0.41 -0.4 -0.39 -0.39 -0.385 -0.38 -0.36 -0.35 -0.34 -0.33 -0.32 -0.31 +-0.3 -0.29 -0.28 -0.27 -0.26 -0.25 -0.2425 -0.235 -0.2275 -0.22 -0.21 +-0.2 -0.19 -0.18 -0.17 -0.16 -0.15 -0.14 -0.132 -0.124 -0.116 -0.108 +-0.1 -0.09 -0.08 -0.07 -0.06 -0.05 -0.0425 -0.035 -0.0275 -0.02 -0.01 +0 0.01 0.0175 0.025 0.0325 0.04 0.05 0.06 0.07 0.08 0.08875 0.0975 +0.10625 0.115 0.12375 0.1325 0.14125 0.15 0.156 0.162 0.168 0.174 0.18 +0.186 0.192 0.198 0.204 0.21 0.22 0.23 0.24 0.25 0.26 0.27 0.278 0.286 +0.294 0.302 0.31 0.318 0.326 0.334 0.342 0.35 0.355556 0.361111 0.366667 +0.372222 0.377778 0.383333 0.388889 0.394444 0.4 0.405714 0.411429 +0.417143 0.45 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 +0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 0.46 +0.46 0.46 0.46 0.46 0.46 0.456667 0.453333 0.45 0.45 0.45 0.448333 +0.446667 0.445 0.443333 0.441667 0.44 0.44 0.43625 0.4325 0.42875 0.425 +0.42125 0.4175 0.41375 0.41 0.405 0.4 0.4 0.3925 0.385 0.3775 0.37 +0.37 0.355 0.35 0.34 0.33 0.32 0.31 0.29 0.283333 0.276667 0.27 0.26 +0.25 0.24 0.23 0.22 0.21 0.2 0.19 0.18 0.16 0.15 0.14 0.13 0.12 0.11 +0.105 0.1 0.09 0.075 0.06 0.05 0.04 0.03 0.02 0 -0.02 -0.0266667 -0.0333333 +-0.04 -0.05; +#X coords 0 1 299 -1 300 200 1; +#X restore 284 17 graph; +#X obj 117 82 hsl 128 15 1 100 1 1 empty empty empty 20 8 0 8 -225271 +-1 -1 11100 1; +#X obj 77 203 xplay~ buf; +#X msg 17 168 print; +#X obj 124 124 phasor~ 100; +#X obj 151 237 print A; +#X msg 107 16 getattributes; +#X connect 1 0 11 0; +#X connect 2 0 11 0; +#X connect 3 0 11 0; +#X connect 6 0 11 0; +#X connect 8 0 11 0; +#X connect 10 0 13 0; +#X connect 11 0 0 0; +#X connect 11 0 0 1; +#X connect 11 1 14 0; +#X connect 12 0 11 0; +#X connect 13 0 6 0; +#X connect 15 0 11 0; diff --git a/externals/grill/xsample/pd/xrecord~.help.pd b/externals/grill/xsample/pd/xrecord~.help.pd deleted file mode 100644 index 80c09f65..00000000 --- a/externals/grill/xsample/pd/xrecord~.help.pd +++ /dev/null @@ -1,142 +0,0 @@ -#N canvas 134 12 857 610 12; -#X obj 14 15 bng 15 250 50 0 empty empty empty 20 8 0 8 -258699 -1 --1; -#X msg 13 35 stop; -#X floatatom 165 248 5 0 0; -#X floatatom 219 248 5 0 0; -#X floatatom 190 170 5 0 0; -#X floatatom 239 171 5 0 0; -#N canvas 0 0 450 300 graph7 0; -#X array buf 10000 float 0; -#X coords 0 1 9999 -1 200 140 1; -#X restore 52 431 graph; -#X obj 91 212 xrecord~ buf; -#X msg 11 69 reset; -#X obj 70 287 snapshot~; -#X floatatom 72 312 7 0 0; -#X obj 18 220 loadbang; -#X msg 10 99 help; -#X obj 175 96 tgl 15 1 empty empty empty 20 8 0 8 -225271 -1 -1 1 1 -; -#X msg 193 93 loop \$1; -#X msg 173 36 0; -#X msg 209 36 200; -#X msg 172 64 draw \$1; -#X obj 411 275 bng 15 250 50 0 empty empty empty 20 8 0 8 -258699 -1 --1; -#X msg 410 295 stop; -#X floatatom 565 485 5 0 0; -#X floatatom 619 485 5 0 0; -#X floatatom 568 427 5 0 0; -#X floatatom 617 428 5 0 0; -#X obj 500 458 xrecord~ buf; -#X msg 409 334 reset; -#X obj 500 518 snapshot~; -#X floatatom 500 548 7 0 0; -#X obj 411 446 loadbang; -#X obj 537 242 tgl 15 1 empty empty empty 20 8 0 8 -225271 -1 -1 0 -1; -#X msg 556 239 loop \$1; -#X msg 452 206 0; -#X msg 451 234 draw \$1; -#X obj 538 265 tgl 15 1 empty empty empty 20 8 0 8 -225271 -1 -1 1 -1; -#X msg 556 263 sigmode \$1; -#X msg 409 360 print; -#X obj 581 353 hsl 128 15 -0.001 1 0 1 empty empty empty 20 8 0 8 -225271 --1 -1 12700 1; -#X obj 537 291 tgl 15 0 empty empty empty 20 8 0 8 -225271 -1 -1 0 -1; -#X msg 557 288 mixmode \$1; -#X floatatom 629 381 8 0 0; -#X obj 411 473 metro 30; -#X obj 18 247 metro 30; -#X obj 640 21 osc~ 10; -#X obj 86 78 r~ rec; -#X obj 482 339 r~ rec; -#X obj 678 95 s~ rec; -#X obj 623 48 *~ 1; -#X obj 622 25 tgl 15 1 empty empty empty 20 8 0 8 -225271 -1 -1 1 1 -; -#X obj 719 50 *~ 1; -#X obj 718 27 tgl 15 0 empty empty empty 20 8 0 8 -225271 -1 -1 0 1 -; -#X obj 736 23 adc~; -#X text 198 149 min/max position; -#X text 166 267 min/max position; -#X text 262 96 looping on/off; -#X text 237 65 display refresh; -#X text 52 13 start; -#X text 53 35 stop; -#X text 26 270 position signal; -#X text 619 238 looping on/off; -#X text 644 264 signal mode on/off; -#X text 700 381 trigger signal; -#X text 379 121 <----- message triggered; -#X text 173 368 signal triggered ------->; -#X text 493 185 click to activate auto update; -#X text 432 271 start; -#X text 450 295 stop; -#X text 538 307 mix-in by trigger signal on/off; -#X msg 153 170 all; -#X msg 488 206 100; -#X obj 521 426 line~; -#X msg 520 401 \$1 20; -#X msg 9 135 getattributes; -#X obj 208 211 print A; -#X msg 10 163 getbuffer; -#X connect 0 0 7 0; -#X connect 1 0 7 0; -#X connect 4 0 7 2; -#X connect 5 0 7 3; -#X connect 7 0 9 0; -#X connect 7 1 2 0; -#X connect 7 2 3 0; -#X connect 7 4 72 0; -#X connect 8 0 7 0; -#X connect 9 0 10 0; -#X connect 11 0 41 0; -#X connect 12 0 7 0; -#X connect 13 0 14 0; -#X connect 14 0 7 0; -#X connect 15 0 17 0; -#X connect 16 0 17 0; -#X connect 17 0 7 0; -#X connect 18 0 24 0; -#X connect 19 0 24 0; -#X connect 22 0 24 2; -#X connect 23 0 24 3; -#X connect 24 0 26 0; -#X connect 24 1 20 0; -#X connect 24 2 21 0; -#X connect 25 0 24 0; -#X connect 26 0 27 0; -#X connect 28 0 40 0; -#X connect 29 0 30 0; -#X connect 30 0 24 0; -#X connect 31 0 32 0; -#X connect 32 0 24 0; -#X connect 33 0 34 0; -#X connect 34 0 24 0; -#X connect 35 0 24 0; -#X connect 36 0 39 0; -#X connect 36 0 70 0; -#X connect 37 0 38 0; -#X connect 38 0 24 0; -#X connect 40 0 26 0; -#X connect 41 0 9 0; -#X connect 42 0 46 0; -#X connect 43 0 7 0; -#X connect 44 0 24 0; -#X connect 46 0 45 0; -#X connect 47 0 46 1; -#X connect 48 0 45 0; -#X connect 49 0 48 1; -#X connect 50 0 48 0; -#X connect 50 1 48 0; -#X connect 67 0 7 0; -#X connect 68 0 32 0; -#X connect 69 0 24 1; -#X connect 70 0 69 0; -#X connect 71 0 7 0; -#X connect 73 0 7 0; diff --git a/externals/grill/xsample/pd/xrecord~.pd b/externals/grill/xsample/pd/xrecord~.pd new file mode 100644 index 00000000..80c09f65 --- /dev/null +++ b/externals/grill/xsample/pd/xrecord~.pd @@ -0,0 +1,142 @@ +#N canvas 134 12 857 610 12; +#X obj 14 15 bng 15 250 50 0 empty empty empty 20 8 0 8 -258699 -1 +-1; +#X msg 13 35 stop; +#X floatatom 165 248 5 0 0; +#X floatatom 219 248 5 0 0; +#X floatatom 190 170 5 0 0; +#X floatatom 239 171 5 0 0; +#N canvas 0 0 450 300 graph7 0; +#X array buf 10000 float 0; +#X coords 0 1 9999 -1 200 140 1; +#X restore 52 431 graph; +#X obj 91 212 xrecord~ buf; +#X msg 11 69 reset; +#X obj 70 287 snapshot~; +#X floatatom 72 312 7 0 0; +#X obj 18 220 loadbang; +#X msg 10 99 help; +#X obj 175 96 tgl 15 1 empty empty empty 20 8 0 8 -225271 -1 -1 1 1 +; +#X msg 193 93 loop \$1; +#X msg 173 36 0; +#X msg 209 36 200; +#X msg 172 64 draw \$1; +#X obj 411 275 bng 15 250 50 0 empty empty empty 20 8 0 8 -258699 -1 +-1; +#X msg 410 295 stop; +#X floatatom 565 485 5 0 0; +#X floatatom 619 485 5 0 0; +#X floatatom 568 427 5 0 0; +#X floatatom 617 428 5 0 0; +#X obj 500 458 xrecord~ buf; +#X msg 409 334 reset; +#X obj 500 518 snapshot~; +#X floatatom 500 548 7 0 0; +#X obj 411 446 loadbang; +#X obj 537 242 tgl 15 1 empty empty empty 20 8 0 8 -225271 -1 -1 0 +1; +#X msg 556 239 loop \$1; +#X msg 452 206 0; +#X msg 451 234 draw \$1; +#X obj 538 265 tgl 15 1 empty empty empty 20 8 0 8 -225271 -1 -1 1 +1; +#X msg 556 263 sigmode \$1; +#X msg 409 360 print; +#X obj 581 353 hsl 128 15 -0.001 1 0 1 empty empty empty 20 8 0 8 -225271 +-1 -1 12700 1; +#X obj 537 291 tgl 15 0 empty empty empty 20 8 0 8 -225271 -1 -1 0 +1; +#X msg 557 288 mixmode \$1; +#X floatatom 629 381 8 0 0; +#X obj 411 473 metro 30; +#X obj 18 247 metro 30; +#X obj 640 21 osc~ 10; +#X obj 86 78 r~ rec; +#X obj 482 339 r~ rec; +#X obj 678 95 s~ rec; +#X obj 623 48 *~ 1; +#X obj 622 25 tgl 15 1 empty empty empty 20 8 0 8 -225271 -1 -1 1 1 +; +#X obj 719 50 *~ 1; +#X obj 718 27 tgl 15 0 empty empty empty 20 8 0 8 -225271 -1 -1 0 1 +; +#X obj 736 23 adc~; +#X text 198 149 min/max position; +#X text 166 267 min/max position; +#X text 262 96 looping on/off; +#X text 237 65 display refresh; +#X text 52 13 start; +#X text 53 35 stop; +#X text 26 270 position signal; +#X text 619 238 looping on/off; +#X text 644 264 signal mode on/off; +#X text 700 381 trigger signal; +#X text 379 121 <----- message triggered; +#X text 173 368 signal triggered ------->; +#X text 493 185 click to activate auto update; +#X text 432 271 start; +#X text 450 295 stop; +#X text 538 307 mix-in by trigger signal on/off; +#X msg 153 170 all; +#X msg 488 206 100; +#X obj 521 426 line~; +#X msg 520 401 \$1 20; +#X msg 9 135 getattributes; +#X obj 208 211 print A; +#X msg 10 163 getbuffer; +#X connect 0 0 7 0; +#X connect 1 0 7 0; +#X connect 4 0 7 2; +#X connect 5 0 7 3; +#X connect 7 0 9 0; +#X connect 7 1 2 0; +#X connect 7 2 3 0; +#X connect 7 4 72 0; +#X connect 8 0 7 0; +#X connect 9 0 10 0; +#X connect 11 0 41 0; +#X connect 12 0 7 0; +#X connect 13 0 14 0; +#X connect 14 0 7 0; +#X connect 15 0 17 0; +#X connect 16 0 17 0; +#X connect 17 0 7 0; +#X connect 18 0 24 0; +#X connect 19 0 24 0; +#X connect 22 0 24 2; +#X connect 23 0 24 3; +#X connect 24 0 26 0; +#X connect 24 1 20 0; +#X connect 24 2 21 0; +#X connect 25 0 24 0; +#X connect 26 0 27 0; +#X connect 28 0 40 0; +#X connect 29 0 30 0; +#X connect 30 0 24 0; +#X connect 31 0 32 0; +#X connect 32 0 24 0; +#X connect 33 0 34 0; +#X connect 34 0 24 0; +#X connect 35 0 24 0; +#X connect 36 0 39 0; +#X connect 36 0 70 0; +#X connect 37 0 38 0; +#X connect 38 0 24 0; +#X connect 40 0 26 0; +#X connect 41 0 9 0; +#X connect 42 0 46 0; +#X connect 43 0 7 0; +#X connect 44 0 24 0; +#X connect 46 0 45 0; +#X connect 47 0 46 1; +#X connect 48 0 45 0; +#X connect 49 0 48 1; +#X connect 50 0 48 0; +#X connect 50 1 48 0; +#X connect 67 0 7 0; +#X connect 68 0 32 0; +#X connect 69 0 24 1; +#X connect 70 0 69 0; +#X connect 71 0 7 0; +#X connect 73 0 7 0; diff --git a/externals/grill/xsample/readme.txt b/externals/grill/xsample/readme.txt index a5599f5b..3beb2776 100644 --- a/externals/grill/xsample/readme.txt +++ b/externals/grill/xsample/readme.txt @@ -1,6 +1,6 @@ xsample - extended sample objects for Max/MSP and pd (pure data) -Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) +Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. @@ -78,6 +78,8 @@ Version history: - xgroove~: introduced a crossfading loop zone - adapted source for flext 0.4.1 - most methods within class scope - introduced attributes +- restructured make procedures +- corrected names of PD makefile, set help names 0.2.4: - according to flext 0.2.3 changed sample type to t_sample (S) diff --git a/externals/grill/xsample/source/groove.cpp b/externals/grill/xsample/source/groove.cpp index 306c660b..64729b88 100644 --- a/externals/grill/xsample/source/groove.cpp +++ b/externals/grill/xsample/source/groove.cpp @@ -2,7 +2,7 @@ xsample - extended sample objects for Max/MSP and pd (pure data) -Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) +Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. @@ -83,7 +83,7 @@ protected: V mg_pos(F &v) const { v = curpos*s2u; } private: - static V setup(t_class *c); + static V setup(t_classid c); virtual V s_dsp(); @@ -126,8 +126,10 @@ private: FLEXT_LIB_DSP_V("xgroove~",xgroove) -V xgroove::setup(t_class *c) +V xgroove::setup(t_classid c) { + DefineHelp(c,"xgroove~"); + FLEXT_CADDMETHOD_(c,0,"all",m_all); FLEXT_CADDMETHOD(c,1,m_min); FLEXT_CADDMETHOD(c,2,m_max); diff --git a/externals/grill/xsample/source/inter.ci b/externals/grill/xsample/source/inter.ci index 2902c386..e7f37439 100644 --- a/externals/grill/xsample/source/inter.ci +++ b/externals/grill/xsample/source/inter.ci @@ -1,3 +1,13 @@ +/* + +xsample - extended sample objects for Max/MSP and pd (pure data) + +Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) +For information on usage and redistribution, and for a DISCLAIMER OF ALL +WARRANTIES, see the file, "license.txt," in this distribution. + +*/ + #ifndef __INTER_H #define __INTER_H diff --git a/externals/grill/xsample/source/inter.cpp b/externals/grill/xsample/source/inter.cpp index c88ceedb..aeee7e9d 100644 --- a/externals/grill/xsample/source/inter.cpp +++ b/externals/grill/xsample/source/inter.cpp @@ -2,7 +2,7 @@ xsample - extended sample objects for Max/MSP and pd (pure data) -Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) +Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. diff --git a/externals/grill/xsample/source/main.cpp b/externals/grill/xsample/source/main.cpp index 4097ed98..2a39950d 100644 --- a/externals/grill/xsample/source/main.cpp +++ b/externals/grill/xsample/source/main.cpp @@ -2,7 +2,7 @@ xsample - extended sample objects for Max/MSP and pd (pure data) -Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) +Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. @@ -14,7 +14,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. // Initialization function for xsample library V lib_setup() { - post("xsample objects, version " XSAMPLE_VERSION ", (C)2001,2002 Thomas Grill"); + post("xsample objects, version " XSAMPLE_VERSION ", (C)2001-2003 Thomas Grill"); post("xsample: xrecord~, xplay~, xgroove~ - send objects a 'help' message to get assistance"); post(""); @@ -36,7 +36,7 @@ FLEXT_LIB_SETUP(xsample,lib_setup) // ------------------------------ -void xsample::setup(t_class *c) +void xsample::setup(t_classid c) { FLEXT_CADDBANG(c,0,m_start); FLEXT_CADDMETHOD_(c,0,"start",m_start); diff --git a/externals/grill/xsample/source/main.h b/externals/grill/xsample/source/main.h index dfc8147c..77d02772 100644 --- a/externals/grill/xsample/source/main.h +++ b/externals/grill/xsample/source/main.h @@ -2,7 +2,7 @@ xsample - extended sample objects for Max/MSP and pd (pure data) -Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) +Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. @@ -11,7 +11,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. #ifndef __XSAMPLE_H #define __XSAMPLE_H -#define XSAMPLE_VERSION "0.2.5pre2" +#define XSAMPLE_VERSION "0.2.5pre3" #define FLEXT_ATTRIBUTES 1 @@ -126,7 +126,7 @@ protected: V mg_max(F &v) const { v = curmax*s2u; } private: - static V setup(t_class *c); + static V setup(t_classid c); FLEXT_CALLBACK(m_start) FLEXT_CALLBACK(m_stop) diff --git a/externals/grill/xsample/source/makefile.bcc b/externals/grill/xsample/source/makefile.bcc deleted file mode 100644 index e9e624b2..00000000 --- a/externals/grill/xsample/source/makefile.bcc +++ /dev/null @@ -1,74 +0,0 @@ -# xsample - extended sample objects for Max/MSP and pd (pure data) -# Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) -# -# Makefile for BorlandC++ -# -# usage: make -f makefile.bcc -# -# --------------------------------------------- - -NAME=xsample -SETUPFUNCTION=$(NAME)_setup - -# where to put the build -OUTPATH=..\bcc - -# flext stuff -FLEXTPATH=..\..\flext ### EDIT! ## -TARGET=pdwin - -# paths -BCCPATH=c:\programme\prog\bcc55 ### EDIT! ## -PDPATH=c:\programme\audio\pd ### EDIT! ## - -# includes, libs -INCPATH=-I$(BCCPATH)\include -I$(PDPATH)\src -I$(FLEXTPATH)\source -LIBPATH=-L$(BCCPATH)\lib -L$(PDPATH)\lib -LIBS=cw32.lib import32.lib C0D32.OBJ - -# compiler definitions and flags -DEFS=-DPD -DNT -CFLAGS=-6 -O2 -OS -ff -tWD - - -# the rest can stay untouched -# ---------------------------------------------- - -# all the source files from the package -SRCS= main.cpp inter.cpp record.cpp play.cpp groove.cpp -HDRS= main.h inter.ci - -OBJS= $(SRCS:.cpp=.obj) - -# default target -all: $(OUTPATH)\$(NAME).dll - -# remove build -clean: - -del /s /q $(OUTPATH) > nul - rmdir $(OUTPATH) - -# ---------------------------------------------- - -$(SRCS): $(HDRS) - -touch $< - -.PATH.OBJ=$(OUTPATH) - -.cpp.obj: - bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $< - -$(OUTPATH): - -@if not exist $< mkdir $< - -$(OUTPATH)\pd.lib: $(PDPATH)\bin\pd.dll - implib -a $@ $** - -$(OUTPATH)\$(NAME).def: - @echo EXPORTS $(SETUPFUNCTION) = _$(SETUPFUNCTION) > $< - -$(OUTPATH)\$(NAME).dll :: $(OUTPATH) $(OUTPATH)\$(NAME).def $(OUTPATH)\pd.lib - -$(OUTPATH)\$(NAME).dll :: $(OBJS) - ilink32 -C -Tpd $(LIBPATH) $** ,$<,,$(LIBS) $(OUTPATH)\pd.lib $(FLEXTPATH)\pd-bcc\flext-$(TARGET).lib,$(OUTPATH)\$(NAME).def - diff --git a/externals/grill/xsample/source/makefile.pd-cygwin b/externals/grill/xsample/source/makefile.pd-cygwin deleted file mode 100644 index 18c53431..00000000 --- a/externals/grill/xsample/source/makefile.pd-cygwin +++ /dev/null @@ -1,89 +0,0 @@ -# xsample - extended sample objects for Max/MSP and pd (pure data) -# Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) -# -# Makefile for gcc @ linux -# -# usage: -# to build run "make -f makefile.pd-cygwin" -# to install (as root), do "make -f makefile.pd-cygwin install" -# - -## EDIT ZONE ################################## - -# flext path -FLEXTPATH=../../flext - -# pd path -PDPATH=c:/programme/audio/pd - -# where to install -INSTDIR=c:/programme/audio/pd/extra - -############################################### - -FLEXTLIB=$(FLEXTPATH)/pd-cygwin/flext.lib - -# where to build (temporary) -TARGDIR=../pd-cygwin - -# compiler stuff -INCLUDES=$(PDPATH)/src -LIBPATH=$(PDPATH)/bin -FLAGS=-DPD -CFLAGS=-O6 -mcpu=pentiumpro -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions -LIBS=m pd - -# ---------------------------------------------- -# the rest can stay untouched -# ---------------------------------------------- - -NAME=xsample - -# all the source files from the package -SRCS=main.cpp inter.cpp play.cpp record.cpp groove.cpp -HDRS=main.h - -MAKEFILE=makefile.pd-cygwin -TARGET=$(TARGDIR)/$(NAME).dll - -# default target -all: $(TARGDIR) $(TARGET) - -$(SRCS): $(HDRS) $(MAKEFILE) - touch $@ - -$(TARGDIR): - mkdir $(TARGDIR) - -$(TARGDIR)/%.o : %.cpp - $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@ - -$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(FLEXTLIB) - $(CXX) $(LDFLAGS) -shared $(patsubst %,-L%,$(LIBPATH)) $^ $(patsubst %,-l%,$(LIBS)) -o $@ - strip --strip-unneeded $@ - chmod 755 $@ - -$(INSTDIR): - mkdir $(INSTDIR) - -install:: $(INSTDIR) - -install:: $(TARGET) - cp $^ $(INSTDIR) - chown root.root $(patsubst %,$(INSTDIR)/%,$(notdir $^)) - -.PHONY: clean -clean: - rm -f $(TARGDIR)/*.o $(TARGET) - - - - - - - - - - - - diff --git a/externals/grill/xsample/source/makefile.pd-linux b/externals/grill/xsample/source/makefile.pd-linux deleted file mode 100644 index 2dba8cec..00000000 --- a/externals/grill/xsample/source/makefile.pd-linux +++ /dev/null @@ -1,90 +0,0 @@ -# xsample - extended sample objects for Max/MSP and pd (pure data) -# Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) -# -# Makefile for gcc @ linux -# -# usage: -# to build run "make -f makefile.pd-linux" -# to install (as root), do "make -f makefile.pd-linux install" -# - -## EDIT ZONE ################################## - -# flext path -FLEXTPATH=/usr/local/lib/pd/flext - -# pd path -#PDPATH=/usr/local/lib/pd/include - -# where to install -INSTDIR=/usr/local/lib/pd/extra - -############################################### - -FLEXTLIB=$(FLEXTPATH)/flext.a - -# where to build (temporary) -TARGDIR=../pd-linux - -# compiler stuff -CXX=g++-3.2 -INCLUDES=$(PDPATH) -FLAGS=-DPD -#CFLAGS=-O6 -mcpu=pentiumpro -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions -CFLAGS=-O6 -mcpu=pentium3 -msse -mfpmath=sse -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions -LIBS=m - -# ---------------------------------------------- -# the rest can stay untouched -# ---------------------------------------------- - -NAME=xsample - -# all the source files from the package -SRCS=main.cpp inter.cpp play.cpp record.cpp groove.cpp -HDRS=main.h - -MAKEFILE=makefile.pd-linux -TARGET=$(TARGDIR)/$(NAME).pd_linux - -# default target -all: $(TARGDIR) $(TARGET) - -$(SRCS): $(HDRS) $(MAKEFILE) - touch $@ - -$(TARGDIR): - mkdir $(TARGDIR) - -$(TARGDIR)/%.o : %.cpp - $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@ - -$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(FLEXTLIB) - $(CXX) $(LDFLAGS) -shared $^ $(patsubst %,-l%,$(LIBS)) -o $@ - strip --strip-unneeded $@ - chmod 755 $@ - -$(INSTDIR): - mkdir $(INSTDIR) - -install:: $(INSTDIR) - -install:: $(TARGET) - cp $^ $(INSTDIR) - chown root.root $(patsubst %,$(INSTDIR)/%,$(notdir $^)) - -.PHONY: clean -clean: - rm -f $(TARGDIR)/*.o $(TARGET) - - - - - - - - - - - - diff --git a/externals/grill/xsample/source/play.cpp b/externals/grill/xsample/source/play.cpp index 770dd6b6..f558e95d 100644 --- a/externals/grill/xsample/source/play.cpp +++ b/externals/grill/xsample/source/play.cpp @@ -2,7 +2,7 @@ xsample - extended sample objects for Max/MSP and pd (pure data) -Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) +Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. @@ -19,7 +19,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. class xplay: public xinter { - FLEXT_HEADER(xplay,xinter) + FLEXT_HEADER_S(xplay,xinter,setup) public: xplay(I argc,const t_atom *argv); @@ -30,6 +30,8 @@ public: virtual V m_print(); private: + static V setup(t_classid c); + virtual V m_signal(I n,S *const *in,S *const *out) { bufchk(); @@ -39,6 +41,10 @@ private: FLEXT_LIB_DSP_V("xplay~",xplay) +V xplay::setup(t_classid c) +{ + DefineHelp(c,"xplay~"); +} xplay::xplay(I argc,const t_atom *argv) { diff --git a/externals/grill/xsample/source/record.cpp b/externals/grill/xsample/source/record.cpp index 36d6549a..d138d4e5 100644 --- a/externals/grill/xsample/source/record.cpp +++ b/externals/grill/xsample/source/record.cpp @@ -2,7 +2,7 @@ xsample - extended sample objects for Max/MSP and pd (pure data) -Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net) +Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. @@ -63,7 +63,7 @@ protected: V outputmax() { ToOutFloat(outmax,curmax*s2u); } private: - static V setup(t_class *c); + static V setup(t_classid c); virtual V s_dsp(); @@ -94,8 +94,10 @@ private: FLEXT_LIB_DSP_V("xrecord~",xrecord) -V xrecord::setup(t_class *c) +V xrecord::setup(t_classid c) { + DefineHelp(c,"xrecord~"); + FLEXT_CADDMETHOD_F(c,0,"pos",m_pos); FLEXT_CADDMETHOD_F(c,0,"min",m_min); FLEXT_CADDMETHOD_F(c,0,"max",m_max); diff --git a/externals/grill/xsample/source/xsample.dsp b/externals/grill/xsample/source/xsample.dsp deleted file mode 100644 index 838d709d..00000000 --- a/externals/grill/xsample/source/xsample.dsp +++ /dev/null @@ -1,127 +0,0 @@ -# Microsoft Developer Studio Project File - Name="xsample" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** NICHT BEARBEITEN ** - -# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 - -CFG=xsample - Win32 Debug -!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE -!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl -!MESSAGE -!MESSAGE NMAKE /f "xsample.mak". -!MESSAGE -!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben -!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: -!MESSAGE -!MESSAGE NMAKE /f "xsample.mak" CFG="xsample - Win32 Debug" -!MESSAGE -!MESSAGE Für die Konfiguration stehen zur Auswahl: -!MESSAGE -!MESSAGE "xsample - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library") -!MESSAGE "xsample - Win32 Debug" (basierend auf "Win32 (x86) Dynamic-Link Library") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "xsample" -# PROP Scc_LocalPath ".." -CPP=cl.exe -MTL=midl.exe -RSC=rc.exe - -!IF "$(CFG)" == "xsample - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "..\msvc" -# PROP Intermediate_Dir "..\msvc" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XSAMPLE_EXPORTS" /YX /FD /c -# ADD CPP /nologo /G6 /W3 /O2 /I "c:\programme\audio\pd\src" /I "f:\prog\max\flext\source" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D FLEXT_SYS=2 /YX /FD /c -# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD BASE RSC /l 0xc07 /d "NDEBUG" -# ADD RSC /l 0xc07 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 -# ADD LINK32 kernel32.lib user32.lib pd.lib flext-pdwin.lib /nologo /dll /machine:I386 /libpath:"c:\programme\audio\pd\bin" /libpath:"..\..\flext\pd-msvc\\" - -!ELSEIF "$(CFG)" == "xsample - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "..\msvc-debug" -# PROP Intermediate_Dir "..\msvc-debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XSAMPLE_EXPORTS" /YX /FD /GZ /c -# ADD CPP /nologo /G6 /W3 /Gm /ZI /Od /I "c:\programme\audio\pd\src" /I "f:\prog\max\flext\source" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D FLEXT_SYS=2 /FR /YX /FD /GZ /c -# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 -# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 -# ADD BASE RSC /l 0xc07 /d "_DEBUG" -# ADD RSC /l 0xc07 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept -# ADD LINK32 kernel32.lib user32.lib pd.lib flext_d-pdwin.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /libpath:"c:\programme\audio\pd\bin\\" /libpath:"..\..\flext\pd-msvc\\" - -!ENDIF - -# Begin Target - -# Name "xsample - Win32 Release" -# Name "xsample - Win32 Debug" -# Begin Group "doc" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=..\readme.txt -# End Source File -# End Group -# Begin Source File - -SOURCE=.\groove.cpp -# End Source File -# Begin Source File - -SOURCE=.\inter.ci -# End Source File -# Begin Source File - -SOURCE=.\inter.cpp -# End Source File -# Begin Source File - -SOURCE=.\main.cpp -# End Source File -# Begin Source File - -SOURCE=.\main.h -# End Source File -# Begin Source File - -SOURCE=.\play.cpp -# End Source File -# Begin Source File - -SOURCE=.\record.cpp -# End Source File -# End Target -# End Project diff --git a/externals/grill/xsample/xsample.dsp b/externals/grill/xsample/xsample.dsp new file mode 100644 index 00000000..735b77c5 --- /dev/null +++ b/externals/grill/xsample/xsample.dsp @@ -0,0 +1,127 @@ +# Microsoft Developer Studio Project File - Name="xsample" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=xsample - Win32 Debug +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl +!MESSAGE +!MESSAGE NMAKE /f "xsample.mak". +!MESSAGE +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "xsample.mak" CFG="xsample - Win32 Debug" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "xsample - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library") +!MESSAGE "xsample - Win32 Debug" (basierend auf "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "xsample" +# PROP Scc_LocalPath ".." +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "xsample - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\msvc" +# PROP Intermediate_Dir "..\msvc" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XSAMPLE_EXPORTS" /YX /FD /c +# ADD CPP /nologo /G6 /W3 /O2 /I "c:\programme\audio\pd\src" /I "f:\prog\max\flext\source" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D FLEXT_SYS=2 /YX /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0xc07 /d "NDEBUG" +# ADD RSC /l 0xc07 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 +# ADD LINK32 kernel32.lib user32.lib pd.lib flext-pdwin.lib /nologo /dll /machine:I386 /libpath:"c:\programme\audio\pd\bin" /libpath:"..\flext\pd-msvc\\" + +!ELSEIF "$(CFG)" == "xsample - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\msvc-debug" +# PROP Intermediate_Dir "..\msvc-debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XSAMPLE_EXPORTS" /YX /FD /GZ /c +# ADD CPP /nologo /G6 /W3 /Gm /ZI /Od /I "c:\programme\audio\pd\src" /I "f:\prog\max\flext\source" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D FLEXT_SYS=2 /FR /YX /FD /GZ /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0xc07 /d "_DEBUG" +# ADD RSC /l 0xc07 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib pd.lib flext_d-pdwin.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /libpath:"c:\programme\audio\pd\bin\\" /libpath:"..\flext\pd-msvc\\" + +!ENDIF + +# Begin Target + +# Name "xsample - Win32 Release" +# Name "xsample - Win32 Debug" +# Begin Group "doc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=".\make-files.txt" +# End Source File +# Begin Source File + +SOURCE=.\readme.txt +# End Source File +# End Group +# Begin Source File + +SOURCE=.\source\groove.cpp +# End Source File +# Begin Source File + +SOURCE=.\source\inter.cpp +# End Source File +# Begin Source File + +SOURCE=.\source\main.cpp +# End Source File +# Begin Source File + +SOURCE=.\source\main.h +# End Source File +# Begin Source File + +SOURCE=.\source\play.cpp +# End Source File +# Begin Source File + +SOURCE=.\source\record.cpp +# End Source File +# End Target +# End Project -- cgit v1.2.1