From ced37682fa4dd5bc345a2dbdd64dfb49d5d4ede8 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 1 Apr 2010 13:16:07 +0000 Subject: ported to template Makefile svn path=/trunk/; revision=13352 --- externals/deprecated/Makefile | 248 ++++++++++++++++++++- externals/deprecated/doc/pan_gogins~-README.txt | 39 ---- externals/deprecated/help/linuxevent-help.pd | 276 ------------------------ externals/deprecated/help/linuxmouse-help.pd | 44 ---- externals/deprecated/help/pan_gogins~-help.pd | 95 -------- externals/deprecated/help/range-help.pd | 31 --- externals/deprecated/linuxevent-help.pd | 276 ++++++++++++++++++++++++ externals/deprecated/linuxmouse-help.pd | 44 ++++ externals/deprecated/pan_gogins~-README.txt | 39 ++++ externals/deprecated/pan_gogins~-help.pd | 95 ++++++++ externals/deprecated/range-help.pd | 31 +++ 11 files changed, 723 insertions(+), 495 deletions(-) delete mode 100644 externals/deprecated/doc/pan_gogins~-README.txt delete mode 100644 externals/deprecated/help/linuxevent-help.pd delete mode 100644 externals/deprecated/help/linuxmouse-help.pd delete mode 100644 externals/deprecated/help/pan_gogins~-help.pd delete mode 100644 externals/deprecated/help/range-help.pd create mode 100644 externals/deprecated/linuxevent-help.pd create mode 100644 externals/deprecated/linuxmouse-help.pd create mode 100644 externals/deprecated/pan_gogins~-README.txt create mode 100644 externals/deprecated/pan_gogins~-help.pd create mode 100644 externals/deprecated/range-help.pd (limited to 'externals') diff --git a/externals/deprecated/Makefile b/externals/deprecated/Makefile index 576ff878..3331cc94 100644 --- a/externals/deprecated/Makefile +++ b/externals/deprecated/Makefile @@ -1,17 +1,245 @@ -TARGET := $(shell pwd | sed 's|.*/\(.*\)$$|\1|') -EXTERNALS_ROOT := $(shell pwd | sed 's|^\(/.*externals\).*|\1|') +# To use this Makefile for your project, first put the name of your library in +# LIBRARY_NAME variable. The folder for your project should have the same name +# as your library. +LIBRARY_NAME = deprecated +LIBRARY_VERSION = 0.1 -default: - make -C $(EXTERNALS_ROOT) $(TARGET) +# Next, add your .c source files to the SOURCES variable. The help files will +# be included automatically +SOURCES = pan_gogins~.c range.c + + +# For objects that only build on certain platforms, add those to the SOURCES +# line for the right platforms. +SOURCES_android = +SOURCES_cygwin = +SOURCES_macosx = +SOURCES_iphoneos = +SOURCES_linux = linuxevent.c linuxmouse.c +SOURCES_windows = + +# list all pd objects (i.e. myobject.pd) files here, and their helpfiles will +# be included automatically +PDOBJECTS = + +# if you want to include any other files in the source and binary tarballs, +# list them here. This can be anything from header files, READMEs, example +# patches, documentation, etc. +EXTRA_DIST = linuxhid.h pan_gogins~-README.txt + + +#------------------------------------------------------------------------------# +# +# you shouldn't need to edit anything below here, if we did it right :) +# +#------------------------------------------------------------------------------# + +# where Pd lives +PD_PATH = ../../pd +# where to install the library +prefix = /usr/local +libdir = $(prefix)/lib +pkglibdir = $(libdir)/pd-externals +objectsdir = $(pkglibdir) + + +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -m 644 +INSTALL_DIR = $(INSTALL) -p -m 755 -d + +CFLAGS = -DPD -I$(PD_PATH)/src -Wall -W -g +LDFLAGS = +LIBS = +ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx) \ + $(SOURCES_iphoneos) $(SOURCES_linux) $(SOURCES_windows) + +UNAME := $(shell uname -s) +ifeq ($(UNAME),Darwin) + CPU := $(shell uname -p) + ifeq ($(CPU),arm) # iPhone/iPod Touch + SOURCES += $(SOURCES_macosx) + EXTENSION = pd_darwin + OS = iphoneos + IPHONE_BASE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin + CC=$(IPHONE_BASE)/gcc + CPP=$(IPHONE_BASE)/cpp + CXX=$(IPHONE_BASE)/g++ + ISYSROOT = -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk + IPHONE_CFLAGS = -miphoneos-version-min=3.0 $(ISYSROOT) -arch armv6 + OPT_CFLAGS = -fast -funroll-loops -fomit-frame-pointer + CFLAGS := $(IPHONE_CFLAGS) $(OPT_CFLAGS) $(CFLAGS) \ + -I/Applications/Pd-extended.app/Contents/Resources/include + LDFLAGS += -arch armv6 -bundle -undefined dynamic_lookup $(ISYSROOT) + LIBS += -lc + STRIP = strip -x + DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION) + DISTBINDIR=$(DISTDIR)-$(OS) + else # Mac OS X + SOURCES += $(SOURCES_macosx) + EXTENSION = pd_darwin + OS = macosx + OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast + FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4 + CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ + -I/Applications/Pd-extended.app/Contents/Resources/include + LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib + # if the 'pd' binary exists, check the linking against it to aid with stripping + LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) + LIBS += -lc + STRIP = strip -x + DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION) + DISTBINDIR=$(DISTDIR)-$(OS) + endif +endif +ifeq ($(UNAME),Linux) + SOURCES += $(SOURCES_linux) + EXTENSION = pd_linux + OS = linux + OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer + CFLAGS += -fPIC + LDFLAGS += -Wl,--export-dynamic -shared -fPIC + LIBS += -lc + STRIP = strip --strip-unneeded -R .note -R .comment + DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION) + DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m) +endif +ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME))) + SOURCES += $(SOURCES_cygwin) + EXTENSION = dll + OS = cygwin + OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer + CFLAGS += + LDFLAGS += -Wl,--export-dynamic -shared -L$(PD_PATH)/src + LIBS += -lc -lpd + STRIP = strip --strip-unneeded -R .note -R .comment + DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION) + DISTBINDIR=$(DISTDIR)-$(OS) +endif +ifeq (MINGW,$(findstring MINGW,$(UNAME))) + SOURCES += $(SOURCES_windows) + EXTENSION = dll + OS = windows + OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -march=i686 -mtune=pentium4 + WINDOWS_HACKS = -D'O_NONBLOCK=1' + CFLAGS += -mms-bitfields $(WINDOWS_HACKS) + LDFLAGS += -s -shared -Wl,--enable-auto-import + LIBS += -L$(PD_PATH)/src -L$(PD_PATH)/bin -L$(PD_PATH)/obj -lpd -lwsock32 -lkernel32 -luser32 -lgdi32 + STRIP = strip --strip-unneeded -R .note -R .comment + DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION) + DISTBINDIR=$(DISTDIR)-$(OS) +endif + +CFLAGS += $(OPT_CFLAGS) + + +.PHONY = install libdir_install single_install install-doc install-exec install-examples clean dist etags + +all: $(SOURCES:.c=.$(EXTENSION)) + +%.o: %.c + $(CC) $(CFLAGS) -o "$*.o" -c "$*.c" + +%.$(EXTENSION): %.o + $(CC) $(LDFLAGS) -o "$*.$(EXTENSION)" "$*.o" $(LIBS) + chmod a-x "$*.$(EXTENSION)" + +# this links everything into a single binary file +$(LIBRARY_NAME): $(SOURCES:.c=.o) $(LIBRARY_NAME).o + $(CC) $(LDFLAGS) -o $(LIBRARY_NAME).$(EXTENSION) $(SOURCES:.c=.o) $(LIBRARY_NAME).o $(LIBS) + chmod a-x $(LIBRARY_NAME).$(EXTENSION) + + +install: libdir_install + +# The meta and help files are explicitly installed to make sure they are +# actually there. Those files are not optional, then need to be there. +libdir_install: $(SOURCES:.c=.$(EXTENSION)) install-doc install-examples + $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + $(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd \ + $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + test -z "$(strip $(SOURCES))" || (\ + $(INSTALL_FILE) $(SOURCES:.c=.$(EXTENSION)) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) && \ + $(STRIP) $(addprefix $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/,$(SOURCES:.c=.$(EXTENSION)))) + test -z "$(strip $(PDOBJECTS))" || \ + $(INSTALL_FILE) $(PDOBJECTS) \ + $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + +# install library linked as single binary +single_install: $(LIBRARY_NAME) install-doc install-exec + $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + $(INSTALL_FILE) $(LIBRARY_NAME).$(EXTENSION) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + $(STRIP) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/$(LIBRARY_NAME).$(EXTENSION) + +install-doc: + $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + test -z "$(strip $(SOURCES))" || \ + $(INSTALL_FILE) $(SOURCES:.c=-help.pd) \ + $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + test -z "$(strip $(PDOBJECTS))" || \ + $(INSTALL_FILE) $(PDOBJECTS:.pd=-help.pd) \ + $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) +# this is the only bit not really handled well... + $(INSTALL_FILE) README $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/README.txt + $(INSTALL_FILE) VERSION $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/VERSION.txt + $(INSTALL_FILE) CHANGES $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/CHANGES.txt + +install-examples: + test ! -d examples || (\ + $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/examples && \ + $(INSTALL_FILE) examples/*.* $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/examples) -install: - make -C $(EXTERNALS_ROOT) $(TARGET)_install clean: - make -C $(EXTERNALS_ROOT) $(TARGET)_clean + -rm -f -- $(SOURCES:.c=.o) + -rm -f -- $(SOURCES:.c=.$(EXTENSION)) + -rm -f -- $(LIBRARY_NAME).$(EXTENSION) + +distclean: clean + -rm -f -- $(DISTBINDIR).tar.gz + -rm -rf -- $(DISTBINDIR) + -rm -f -- $(DISTDIR).tar.gz + -rm -rf -- $(DISTDIR) + + +$(DISTBINDIR): + $(INSTALL_DIR) $(DISTBINDIR) + +libdir: all $(DISTBINDIR) + $(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd $(DISTBINDIR) + $(INSTALL_FILE) $(SOURCES) $(DISTBINDIR) + $(INSTALL_FILE) $(SOURCES:.c=-help.pd) $(DISTBINDIR) + test -z "$(strip $(EXTRA_DIST))" || \ + $(INSTALL_FILE) $(EXTRA_DIST) $(DISTBINDIR) +# tar --exclude-vcs -czpf $(DISTBINDIR).tar.gz $(DISTBINDIR) + +$(DISTDIR): + $(INSTALL_DIR) $(DISTDIR) + +dist: $(DISTDIR) + $(INSTALL_FILE) Makefile $(DISTDIR) + $(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd $(DISTDIR) + test -z "$(strip $(ALLSOURCES))" || \ + $(INSTALL_FILE) $(ALLSOURCES) $(DISTDIR) + test -z "$(strip $(ALLSOURCES))" || \ + $(INSTALL_FILE) $(ALLSOURCES:.c=-help.pd) $(DISTDIR) + test -z "$(strip $(PDOBJECTS))" || \ + $(INSTALL_FILE) $(PDOBJECTS) $(DISTDIR) + test -z "$(strip $(PDOBJECTS))" || \ + $(INSTALL_FILE) $(PDOBJECTS:.pd=-help.pd) $(DISTDIR) + test -z "$(strip $(EXTRA_DIST))" || \ + $(INSTALL_FILE) $(EXTRA_DIST) $(DISTDIR) + tar --exclude-vcs -czpf $(DISTDIR).tar.gz $(DISTDIR) -test_locations: - make -C $(EXTERNALS_ROOT) test_locations etags: - etags *.[ch] ~/cvs/pure-data/pd/src/*.[ch] /usr/include/*.h /usr/include/sys/*.h + etags *.h $(SOURCES) ../../pd/src/*.[ch] /usr/include/*.h /usr/include/*/*.h + +showpaths: + @echo "PD_PATH: $(PD_PATH)" + @echo "objectsdir: $(objectsdir)" + @echo "LIBRARY_NAME: $(LIBRARY_NAME)" + @echo "SOURCES: $(SOURCES)" + @echo "ALLSOURCES: $(ALLSOURCES)" + @echo "UNAME: $(UNAME)" + @echo "CPU: $(CPU)" + diff --git a/externals/deprecated/doc/pan_gogins~-README.txt b/externals/deprecated/doc/pan_gogins~-README.txt deleted file mode 100644 index 7a059ef2..00000000 --- a/externals/deprecated/doc/pan_gogins~-README.txt +++ /dev/null @@ -1,39 +0,0 @@ -*********************************************************************** - File: pan_gogins~.c (a quick hack of pan~.c) - Auth: Marco Scoffier [marco@metm.org] modified code by - Iain Mott [iain.mott@bigpond.com] - Maintainer (of pan~.c) : Iain Mott [iain.mott@bigpond.com] - Date: March 2003 - - Description: Pd signal external. Stereo panning implementing an - algorithm concieved by Michael Gogins and described at - http://www.csounds.com/ezine/autumn1999/beginners/ - Angle input specified in degrees. -45 left, 0 centre, 45 right. - See supporting Pd patch: pan_gogins~.pd - - Copyright (C) 2001 by Iain Mott [iain.mott@bigpond.com] - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License, which should be included with this - program, for more details. - -*********************************************************************** -I only tested this patch under linux. - -INSTALLATION: - - type make pd_linux (or your platform's make target see Makefile) - - cp pan_gogins~.pd_linux to your pd/externs directory, - or somewhere in your pd -path - - cp pan_gogins~.pd into your pd/docs/5.reference directory - -Enjoy diff --git a/externals/deprecated/help/linuxevent-help.pd b/externals/deprecated/help/linuxevent-help.pd deleted file mode 100644 index 99f23570..00000000 --- a/externals/deprecated/help/linuxevent-help.pd +++ /dev/null @@ -1,276 +0,0 @@ -#N canvas 560 58 570 624 10; -#X floatatom 234 320 5 0 0 3 code - -; -#X floatatom 298 320 5 0 0 3 value - -; -#X floatatom 170 320 4 0 0 3 type - -; -#X floatatom 97 320 9 0 0 3 time - -; -#X msg 165 196 start; -#X msg 166 218 stop; -#X obj 107 297 linuxevent /dev/input/event0; -#X obj 107 178 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X obj 18 178 metro 20; -#X text 286 254 time between polls (ms); -#X obj 18 156 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X msg 38 156 stop; -#X msg 219 254 delay 20; -#X obj 107 129 key; -#N canvas 278 328 627 540 Event_Codes 0; -#X text 28 48 (For a complete listing of Linux Input Events \, see -/usr/include/linux/input.h.); -#X obj 11 9 cnv 15 580 30 empty empty Event_Codes 20 12 1 14 -225271 --66577 0; -#X text 32 118 EVENT CODE; -#X text 162 118 #define; -#X text 232 118 number; -#X text 32 133 -----------------------------------; -#X text 32 148 X Axis; -#X text 32 163 Y Axis; -#X text 32 178 Z Axis; -#X text 32 193 Horizontal Wheel; -#X text 32 208 Dial; -#X text 32 223 Wheel; -#X text 32 238 Misc; -#X text 162 148 REL_X; -#X text 162 163 REL_Y; -#X text 162 178 REL_Z; -#X text 162 193 REL_HWHEEL; -#X text 162 208 REL_DIAL; -#X text 162 223 REL_WHEEL; -#X text 162 238 REL_MISC; -#X text 247 148 0; -#X text 247 163 1; -#X text 247 178 2; -#X text 247 193 6; -#X text 247 208 7; -#X text 247 223 8; -#X text 247 238 9; -#X text 307 118 EVENT CODE; -#X text 457 118 #define; -#X text 547 118 number; -#X text 307 148 Absolute X; -#X text 307 163 Absolute Y; -#X text 307 178 Absolute Z; -#X text 307 193 RX; -#X text 307 208 RY; -#X text 307 223 RZ; -#X text 307 238 Throttle; -#X text 307 253 Rudder; -#X text 307 268 Wheel; -#X text 307 283 Gas Pedal; -#X text 307 298 Brake Pedal; -#X text 307 313 Hat Switch 0 X-axis; -#X text 307 328 Hat Switch 0 Y-axis; -#X text 307 343 Hat Switch 1 X-axis; -#X text 307 358 Hat Switch 1 Y-axis; -#X text 307 373 Hat Switch 2 X-axis; -#X text 307 388 Hat Switch 2 Y-axis; -#X text 307 403 Hat Switch 3 X-axis; -#X text 307 418 Hat Switch 3 Y-axis; -#X text 307 433 Pressure; -#X text 307 448 Distance; -#X text 307 463 Tilt X-Axis; -#X text 307 478 Tilt Y-Axis; -#X text 307 493 Misc; -#X text 457 148 ABS_X; -#X text 457 163 ABS_Y; -#X text 457 178 ABS_Z; -#X text 457 193 ABS_RX; -#X text 457 208 ABS_RY; -#X text 457 223 ABS_RZ; -#X text 457 238 ABS_THROTTLE; -#X text 457 253 ABS_RUDDER; -#X text 457 268 ABS_WHEEL; -#X text 457 283 ABS_GAS; -#X text 457 298 ABS_BRAKE; -#X text 457 313 ABS_HAT0X; -#X text 457 328 ABS_HAT0Y; -#X text 457 343 ABS_HAT1X; -#X text 457 358 ABS_HAT1Y; -#X text 457 373 ABS_HAT2X; -#X text 457 388 ABS_HAT2Y; -#X text 457 403 ABS_HAT3X; -#X text 457 418 ABS_HAT3Y; -#X text 457 433 ABS_PRESSURE; -#X text 457 448 ABS_DISTANCE; -#X text 457 463 ABS_TILT_X; -#X text 457 478 ABS_TILT_Y; -#X text 457 493 ABS_MISC; -#X text 563 148 0; -#X text 563 163 1; -#X text 563 178 2; -#X text 563 193 3; -#X text 563 208 4; -#X text 563 223 5; -#X text 563 238 6; -#X text 563 253 7; -#X text 563 268 8; -#X text 563 283 9; -#X text 563 298 10; -#X text 563 313 16; -#X text 563 328 17; -#X text 563 343 18; -#X text 563 358 19; -#X text 563 373 20; -#X text 563 388 21; -#X text 563 403 22; -#X text 563 418 23; -#X text 563 433 24; -#X text 563 448 25; -#X text 563 463 26; -#X text 563 478 27; -#X text 563 493 28; -#X obj 30 89 cnv 15 250 25 empty empty Relative_Axes 20 12 1 12 -241660 --66577 0; -#X obj 308 89 cnv 15 280 25 empty empty Absolute_Axes 20 12 1 12 -241660 --66577 0; -#X text 307 133 ----------------------------------------; -#X text 32 285 EVENT CODE; -#X text 138 285 #define; -#X text 232 285 number; -#X text 32 300 -----------------------------------; -#X obj 30 256 cnv 15 250 25 empty empty Joystick_Buttons 20 12 1 12 --241660 -66577 0; -#X text 138 315 BTN_TRIGGER; -#X text 32 315 Trigger; -#X text 32 330 Thumb; -#X text 32 345 Thumb 2; -#X text 32 360 Top; -#X text 32 375 Top 2; -#X text 32 390 Pinkie; -#X text 32 405 Base 1; -#X text 138 404 BTN_BASE; -#X text 138 330 BTN_THUMB; -#X text 138 345 BTN_THUMB2; -#X text 138 360 BTN_TOP; -#X text 138 375 BTN_TOP2; -#X text 138 390 BTN_PINKIE; -#X text 245 315 288; -#X text 245 330 289; -#X text 245 345 290; -#X text 245 360 291; -#X text 245 375 292; -#X text 245 390 293; -#X text 245 405 294; -#X text 245 419 295; -#X text 245 434 296; -#X text 245 448 297; -#X text 138 418 BTN_BASE2; -#X text 138 433 BTN_BASE3; -#X text 138 447 BTN_BASE4; -#X text 32 419 Base 2; -#X text 32 434 Base 3; -#X text 32 448 Base 4; -#X text 32 463 Base 5; -#X text 32 477 Base 6; -#X text 138 462 BTN_BASE5; -#X text 138 476 BTN_BASE6; -#X text 245 463 298; -#X text 245 477 299; -#X restore 132 556 pd Event_Codes; -#N canvas 50 289 469 317 Event_Types 0; -#X text 28 48 (For a complete listing of Linux Input Events \, see -/usr/include/linux/input.h.); -#X text 61 90 EVENT TYPE; -#X text 61 135 Keys and Buttons; -#X text 61 150 Relative Axes; -#X text 61 165 Absolute Axes; -#X text 61 180 Misc Events; -#X text 61 195 LED Event; -#X text 61 210 Sounds; -#X text 61 225 Autorepeat Values; -#X text 61 240 Force Feedback; -#X text 230 90 #define; -#X text 230 135 EV_KEY; -#X text 230 150 EV_REL; -#X text 230 165 EV_ABS; -#X text 230 180 EV_MSC; -#X text 230 195 EV_LED; -#X text 230 210 EV_SND; -#X text 230 225 EV_REP; -#X text 230 240 EV_FF; -#X text 315 90 number; -#X text 331 120 0; -#X text 331 135 1; -#X text 331 150 2; -#X text 331 165 3; -#X text 331 180 4; -#X text 331 195 17; -#X text 331 210 18; -#X text 331 225 20; -#X text 331 240 21; -#X obj 11 9 cnv 15 400 30 empty empty Event_Types 20 12 1 14 -262131 --66577 0; -#X text 230 120 EV_SYN; -#X text 61 270 Force Feedback Status; -#X text 61 120 Syncronization Events; -#X text 230 270 EV_FF_STATUS; -#X text 331 270 23; -#X text 61 105 -------------------------------------------; -#X text 331 255 22; -#X text 230 255 EV_PWR; -#X text 61 255 Power Events (for UPS); -#X restore 132 536 pd Event_Types; -#N canvas 0 22 450 300 Event_Values 0; -#X text 28 48 (For a complete listing of Linux Input Events \, see -/usr/include/linux/input.h.); -#X obj 11 9 cnv 15 400 30 empty empty Event_Values 20 12 1 14 -261681 --66577 0; -#X restore 132 576 pd Event_Values; -#X text 1 367 Check the Pd console for supported event types and codes. -This object will report them when it opens a device.; -#X obj 2 2 cnv 15 550 25 empty empty [linuxevent] 20 12 1 16 -228992 --66577 0; -#X text 10 44 [linuxevent] outputs raw events from the Linux Event -system. It is used for access the output of various Human Interface -Devices \, like mice \, joysticks \, tablets \, etc.; -#X text 267 539 related HID objects:; -#X obj 418 538 linuxhid; -#X text 26 105 bang to get an update when polling is stopped.; -#X msg 229 195 poll; -#X msg 229 217 nopoll; -#X text 146 177 start/stop polling (synonyms for the same thing); -#X obj 107 149 sel 98; -#X text 153 149 <- (type 'b' for a bang); -#X text 8 407 Here's an example for using a joystick:; -#X msg 65 435 start; -#X msg 109 435 stop; -#X obj 75 463 linuxevent-joystick /dev/input/event1; -#X floatatom 329 492 2 0 0 3 button# - -; -#X floatatom 386 491 2 0 0 3 button_value - -; -#X floatatom 75 492 5 0 0 3 y-axis - -; -#X floatatom 28 492 5 0 0 3 x-axis - -; -#X floatatom 174 493 3 0 0 3 hat-X - -; -#X floatatom 220 493 3 0 0 3 hat-Y - -; -#X floatatom 124 493 5 0 0 3 twist - -; -#X floatatom 263 492 5 0 0 3 throttle - -; -#X obj 418 567 pddp/pddplink ../all_about_hid.pd -text all_about_hid; -#X text 309 566 for more info:; -#X text 13 554 detailed info:; -#X text 14 605 by Hans-Christoph Steiner ; -#X text 379 604 updated for Pd 0.38test4; -#X connect 4 0 6 0; -#X connect 5 0 6 0; -#X connect 6 0 3 0; -#X connect 6 1 2 0; -#X connect 6 2 0 0; -#X connect 6 3 1 0; -#X connect 7 0 6 0; -#X connect 8 0 6 0; -#X connect 10 0 8 0; -#X connect 11 0 8 0; -#X connect 12 0 6 0; -#X connect 13 0 26 0; -#X connect 23 0 6 0; -#X connect 24 0 6 0; -#X connect 26 0 7 0; -#X connect 29 0 31 0; -#X connect 30 0 31 0; -#X connect 31 0 35 0; -#X connect 31 1 34 0; -#X connect 31 2 38 0; -#X connect 31 3 36 0; -#X connect 31 4 37 0; -#X connect 31 5 39 0; -#X connect 31 6 32 0; -#X connect 31 7 33 0; diff --git a/externals/deprecated/help/linuxmouse-help.pd b/externals/deprecated/help/linuxmouse-help.pd deleted file mode 100644 index 761db0fc..00000000 --- a/externals/deprecated/help/linuxmouse-help.pd +++ /dev/null @@ -1,44 +0,0 @@ -#N canvas 112 187 463 472 10; -#X floatatom 238 220 5 0 0 3 button# - -; -#X floatatom 299 220 5 0 0 3 button_value - -; -#X floatatom 190 220 2 0 0 3 wheel - -; -#X floatatom 137 220 4 0 0 3 y-axis - -; -#X floatatom 79 220 4 0 0 3 x-axis - -; -#X obj 95 193 linuxmouse /dev/input/event0; -#X obj 6 5 cnv 15 450 30 empty empty [linuxmouse] 20 12 1 16 -225280 --66577 0; -#X text 24 263 [linuxmouse] takes events directly from a Linux event -device \, so that you get mouse data regardless of whether Pd has focus. -Also \, the data from the event system is relative and limited to the -screen size.; -#X msg 51 71 start; -#X msg 51 93 stop; -#X msg 115 70 poll; -#X msg 115 92 nopoll; -#X msg 158 165 close; -#X text 179 91 (synonyms for the same actions); -#X text 182 75 start/stop polling; -#X msg 147 122 open; -#X msg 152 142 open /dev/input/event1; -#X text 183 123 opens the previous device; -#X msg 419 10 pddp; -#X text 178 417 For more info on HIDs:; -#X text 10 441 by Hans-Christoph Steiner ; -#X obj 340 417 pddp/pddplink ../all_about_hid.pd -text all_about_hid; -#X text 24 325 Rather than polling like the other HID objects \, [linuxmouse] -uses a pollfn so it receives events as they happen. A pollfn listens -to a network socket \, and takes action upon activity. Since all mouse -events go through the network socket between pd and pd-gui \, this -works for responding to mouse events.; -#X connect 5 0 4 0; -#X connect 5 1 3 0; -#X connect 5 2 2 0; -#X connect 5 3 0 0; -#X connect 5 4 1 0; -#X connect 8 0 5 0; -#X connect 9 0 5 0; -#X connect 10 0 5 0; -#X connect 11 0 5 0; -#X connect 12 0 5 0; -#X connect 15 0 5 0; -#X connect 16 0 5 0; diff --git a/externals/deprecated/help/pan_gogins~-help.pd b/externals/deprecated/help/pan_gogins~-help.pd deleted file mode 100644 index 281573dd..00000000 --- a/externals/deprecated/help/pan_gogins~-help.pd +++ /dev/null @@ -1,95 +0,0 @@ -#N canvas 229 280 522 407 10; -#X floatatom 94 35 4 -45 45 0 - - -; -#X floatatom 112 85 0 0 0 0 - - -; -#N canvas 184 223 495 266 output 0; -#X obj 338 160 t b; -#X obj 338 110 f; -#X obj 338 60 inlet; -#X text 344 29 mute; -#X obj 338 185 f; -#X msg 425 178 0; -#X msg 338 85 bang; -#X obj 338 135 moses 1; -#X obj 425 153 t b f; -#X obj 397 117 moses 1; -#X obj 83 148 dbtorms; -#X obj 397 92 r master-lvl; -#X obj 83 42 r master-lvl; -#X obj 338 210 s master-lvl; -#X obj -15 176 inlet~; -#X obj 199 41 inlet; -#X text 199 18 level; -#X obj 199 100 s master-lvl; -#X msg 96 65 set \$1; -#X obj 96 89 outlet; -#X msg 214 64 \; pd dsp 1; -#X obj 83 194 line~; -#X obj -15 207 *~; -#X obj -15 236 dac~; -#X obj 83 171 pack 0 50; -#X text -17 153 audio; -#X text 93 110 show level; -#X obj 31 182 inlet~; -#X obj 31 218 *~; -#X connect 0 0 4 0; -#X connect 1 0 7 0; -#X connect 2 0 6 0; -#X connect 4 0 13 0; -#X connect 5 0 13 0; -#X connect 6 0 1 0; -#X connect 7 0 0 0; -#X connect 7 1 8 0; -#X connect 8 0 5 0; -#X connect 9 1 4 1; -#X connect 10 0 24 0; -#X connect 11 0 1 1; -#X connect 11 0 9 0; -#X connect 12 0 10 0; -#X connect 12 0 18 0; -#X connect 14 0 22 0; -#X connect 15 0 17 0; -#X connect 15 0 20 0; -#X connect 18 0 19 0; -#X connect 21 0 22 1; -#X connect 21 0 28 1; -#X connect 22 0 23 0; -#X connect 24 0 21 0; -#X connect 27 0 28 0; -#X connect 28 0 23 1; -#X restore 74 112 pd output; -#X msg 132 84 MUTE; -#X text 166 83 <-- output amplitude; -#N canvas 5 21 600 400 pulse 0; -#X obj 175 203 cos~; -#X obj 175 131 -~ 0.5; -#X obj 175 179 clip~ -0.5 0.5; -#X obj 175 227 hip~ 5; -#X obj 175 155 *~ 82; -#X obj 175 107 phasor~ 16; -#X obj 175 251 outlet~; -#X connect 0 0 3 0; -#X connect 1 0 4 0; -#X connect 2 0 0 0; -#X connect 3 0 6 0; -#X connect 4 0 2 0; -#X connect 5 0 1 0; -#X restore 22 33 pd pulse; -#X msg 21 177 \; pd dsp 1; -#X msg 91 177 \; pd dsp 0; -#X text 43 208 ON; -#X text 108 208 OFF; -#X obj 22 152 loadbang; -#X text 133 36 angle in degrees range -45 to 45; -#X obj 22 58 pan_gogins~; -#X text 17 324 pan_gogins~ a modification of pan~ by Ian Mott; -#X text 16 341 implements an algorithm conceived by Michael Gogins -and described at: http://www.csounds.com/ezine/autumn1999/beginners/ -; -#X connect 0 0 12 1; -#X connect 1 0 2 2; -#X connect 2 0 1 0; -#X connect 3 0 2 3; -#X connect 5 0 12 0; -#X connect 10 0 6 0; -#X connect 12 0 2 0; -#X connect 12 1 2 1; diff --git a/externals/deprecated/help/range-help.pd b/externals/deprecated/help/range-help.pd deleted file mode 100644 index 8a3b11c0..00000000 --- a/externals/deprecated/help/range-help.pd +++ /dev/null @@ -1,31 +0,0 @@ -#N canvas 381 126 552 355 12; -#X floatatom 27 277 8 0 0; -#X floatatom 27 73 5 0 0; -#X text 213 48 written by ; -#X text 37 306 creation:; -#X text 141 11 range :: range input from a certain input range; -#X text 212 29 to lie between output boundaries; -#X floatatom 56 131 5 0 0; -#X floatatom 85 152 5 0 0; -#X floatatom 115 173 5 0 0; -#X floatatom 144 194 5 0 0; -#X text 84 71 input value; -#X text 106 278 ranged output value; -#X text 111 130 in low; -#X text 137 151 in high; -#X text 171 172 out low; -#X text 200 194 out high; -#X text 57 104 creation arguments can be changed dynamically:; -#X text 53 323 range -; -#X obj 27 249 range 0 9 100 255 0; -#X floatatom 174 220 5 0 0; -#X text 227 219 log coefficient; -#X text 265 237 0 = linear 1 = log; -#X connect 1 0 18 0; -#X connect 6 0 18 1; -#X connect 7 0 18 2; -#X connect 8 0 18 3; -#X connect 9 0 18 4; -#X connect 18 0 0 0; -#X connect 19 0 18 5; diff --git a/externals/deprecated/linuxevent-help.pd b/externals/deprecated/linuxevent-help.pd new file mode 100644 index 00000000..99f23570 --- /dev/null +++ b/externals/deprecated/linuxevent-help.pd @@ -0,0 +1,276 @@ +#N canvas 560 58 570 624 10; +#X floatatom 234 320 5 0 0 3 code - -; +#X floatatom 298 320 5 0 0 3 value - -; +#X floatatom 170 320 4 0 0 3 type - -; +#X floatatom 97 320 9 0 0 3 time - -; +#X msg 165 196 start; +#X msg 166 218 stop; +#X obj 107 297 linuxevent /dev/input/event0; +#X obj 107 178 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 18 178 metro 20; +#X text 286 254 time between polls (ms); +#X obj 18 156 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 38 156 stop; +#X msg 219 254 delay 20; +#X obj 107 129 key; +#N canvas 278 328 627 540 Event_Codes 0; +#X text 28 48 (For a complete listing of Linux Input Events \, see +/usr/include/linux/input.h.); +#X obj 11 9 cnv 15 580 30 empty empty Event_Codes 20 12 1 14 -225271 +-66577 0; +#X text 32 118 EVENT CODE; +#X text 162 118 #define; +#X text 232 118 number; +#X text 32 133 -----------------------------------; +#X text 32 148 X Axis; +#X text 32 163 Y Axis; +#X text 32 178 Z Axis; +#X text 32 193 Horizontal Wheel; +#X text 32 208 Dial; +#X text 32 223 Wheel; +#X text 32 238 Misc; +#X text 162 148 REL_X; +#X text 162 163 REL_Y; +#X text 162 178 REL_Z; +#X text 162 193 REL_HWHEEL; +#X text 162 208 REL_DIAL; +#X text 162 223 REL_WHEEL; +#X text 162 238 REL_MISC; +#X text 247 148 0; +#X text 247 163 1; +#X text 247 178 2; +#X text 247 193 6; +#X text 247 208 7; +#X text 247 223 8; +#X text 247 238 9; +#X text 307 118 EVENT CODE; +#X text 457 118 #define; +#X text 547 118 number; +#X text 307 148 Absolute X; +#X text 307 163 Absolute Y; +#X text 307 178 Absolute Z; +#X text 307 193 RX; +#X text 307 208 RY; +#X text 307 223 RZ; +#X text 307 238 Throttle; +#X text 307 253 Rudder; +#X text 307 268 Wheel; +#X text 307 283 Gas Pedal; +#X text 307 298 Brake Pedal; +#X text 307 313 Hat Switch 0 X-axis; +#X text 307 328 Hat Switch 0 Y-axis; +#X text 307 343 Hat Switch 1 X-axis; +#X text 307 358 Hat Switch 1 Y-axis; +#X text 307 373 Hat Switch 2 X-axis; +#X text 307 388 Hat Switch 2 Y-axis; +#X text 307 403 Hat Switch 3 X-axis; +#X text 307 418 Hat Switch 3 Y-axis; +#X text 307 433 Pressure; +#X text 307 448 Distance; +#X text 307 463 Tilt X-Axis; +#X text 307 478 Tilt Y-Axis; +#X text 307 493 Misc; +#X text 457 148 ABS_X; +#X text 457 163 ABS_Y; +#X text 457 178 ABS_Z; +#X text 457 193 ABS_RX; +#X text 457 208 ABS_RY; +#X text 457 223 ABS_RZ; +#X text 457 238 ABS_THROTTLE; +#X text 457 253 ABS_RUDDER; +#X text 457 268 ABS_WHEEL; +#X text 457 283 ABS_GAS; +#X text 457 298 ABS_BRAKE; +#X text 457 313 ABS_HAT0X; +#X text 457 328 ABS_HAT0Y; +#X text 457 343 ABS_HAT1X; +#X text 457 358 ABS_HAT1Y; +#X text 457 373 ABS_HAT2X; +#X text 457 388 ABS_HAT2Y; +#X text 457 403 ABS_HAT3X; +#X text 457 418 ABS_HAT3Y; +#X text 457 433 ABS_PRESSURE; +#X text 457 448 ABS_DISTANCE; +#X text 457 463 ABS_TILT_X; +#X text 457 478 ABS_TILT_Y; +#X text 457 493 ABS_MISC; +#X text 563 148 0; +#X text 563 163 1; +#X text 563 178 2; +#X text 563 193 3; +#X text 563 208 4; +#X text 563 223 5; +#X text 563 238 6; +#X text 563 253 7; +#X text 563 268 8; +#X text 563 283 9; +#X text 563 298 10; +#X text 563 313 16; +#X text 563 328 17; +#X text 563 343 18; +#X text 563 358 19; +#X text 563 373 20; +#X text 563 388 21; +#X text 563 403 22; +#X text 563 418 23; +#X text 563 433 24; +#X text 563 448 25; +#X text 563 463 26; +#X text 563 478 27; +#X text 563 493 28; +#X obj 30 89 cnv 15 250 25 empty empty Relative_Axes 20 12 1 12 -241660 +-66577 0; +#X obj 308 89 cnv 15 280 25 empty empty Absolute_Axes 20 12 1 12 -241660 +-66577 0; +#X text 307 133 ----------------------------------------; +#X text 32 285 EVENT CODE; +#X text 138 285 #define; +#X text 232 285 number; +#X text 32 300 -----------------------------------; +#X obj 30 256 cnv 15 250 25 empty empty Joystick_Buttons 20 12 1 12 +-241660 -66577 0; +#X text 138 315 BTN_TRIGGER; +#X text 32 315 Trigger; +#X text 32 330 Thumb; +#X text 32 345 Thumb 2; +#X text 32 360 Top; +#X text 32 375 Top 2; +#X text 32 390 Pinkie; +#X text 32 405 Base 1; +#X text 138 404 BTN_BASE; +#X text 138 330 BTN_THUMB; +#X text 138 345 BTN_THUMB2; +#X text 138 360 BTN_TOP; +#X text 138 375 BTN_TOP2; +#X text 138 390 BTN_PINKIE; +#X text 245 315 288; +#X text 245 330 289; +#X text 245 345 290; +#X text 245 360 291; +#X text 245 375 292; +#X text 245 390 293; +#X text 245 405 294; +#X text 245 419 295; +#X text 245 434 296; +#X text 245 448 297; +#X text 138 418 BTN_BASE2; +#X text 138 433 BTN_BASE3; +#X text 138 447 BTN_BASE4; +#X text 32 419 Base 2; +#X text 32 434 Base 3; +#X text 32 448 Base 4; +#X text 32 463 Base 5; +#X text 32 477 Base 6; +#X text 138 462 BTN_BASE5; +#X text 138 476 BTN_BASE6; +#X text 245 463 298; +#X text 245 477 299; +#X restore 132 556 pd Event_Codes; +#N canvas 50 289 469 317 Event_Types 0; +#X text 28 48 (For a complete listing of Linux Input Events \, see +/usr/include/linux/input.h.); +#X text 61 90 EVENT TYPE; +#X text 61 135 Keys and Buttons; +#X text 61 150 Relative Axes; +#X text 61 165 Absolute Axes; +#X text 61 180 Misc Events; +#X text 61 195 LED Event; +#X text 61 210 Sounds; +#X text 61 225 Autorepeat Values; +#X text 61 240 Force Feedback; +#X text 230 90 #define; +#X text 230 135 EV_KEY; +#X text 230 150 EV_REL; +#X text 230 165 EV_ABS; +#X text 230 180 EV_MSC; +#X text 230 195 EV_LED; +#X text 230 210 EV_SND; +#X text 230 225 EV_REP; +#X text 230 240 EV_FF; +#X text 315 90 number; +#X text 331 120 0; +#X text 331 135 1; +#X text 331 150 2; +#X text 331 165 3; +#X text 331 180 4; +#X text 331 195 17; +#X text 331 210 18; +#X text 331 225 20; +#X text 331 240 21; +#X obj 11 9 cnv 15 400 30 empty empty Event_Types 20 12 1 14 -262131 +-66577 0; +#X text 230 120 EV_SYN; +#X text 61 270 Force Feedback Status; +#X text 61 120 Syncronization Events; +#X text 230 270 EV_FF_STATUS; +#X text 331 270 23; +#X text 61 105 -------------------------------------------; +#X text 331 255 22; +#X text 230 255 EV_PWR; +#X text 61 255 Power Events (for UPS); +#X restore 132 536 pd Event_Types; +#N canvas 0 22 450 300 Event_Values 0; +#X text 28 48 (For a complete listing of Linux Input Events \, see +/usr/include/linux/input.h.); +#X obj 11 9 cnv 15 400 30 empty empty Event_Values 20 12 1 14 -261681 +-66577 0; +#X restore 132 576 pd Event_Values; +#X text 1 367 Check the Pd console for supported event types and codes. +This object will report them when it opens a device.; +#X obj 2 2 cnv 15 550 25 empty empty [linuxevent] 20 12 1 16 -228992 +-66577 0; +#X text 10 44 [linuxevent] outputs raw events from the Linux Event +system. It is used for access the output of various Human Interface +Devices \, like mice \, joysticks \, tablets \, etc.; +#X text 267 539 related HID objects:; +#X obj 418 538 linuxhid; +#X text 26 105 bang to get an update when polling is stopped.; +#X msg 229 195 poll; +#X msg 229 217 nopoll; +#X text 146 177 start/stop polling (synonyms for the same thing); +#X obj 107 149 sel 98; +#X text 153 149 <- (type 'b' for a bang); +#X text 8 407 Here's an example for using a joystick:; +#X msg 65 435 start; +#X msg 109 435 stop; +#X obj 75 463 linuxevent-joystick /dev/input/event1; +#X floatatom 329 492 2 0 0 3 button# - -; +#X floatatom 386 491 2 0 0 3 button_value - -; +#X floatatom 75 492 5 0 0 3 y-axis - -; +#X floatatom 28 492 5 0 0 3 x-axis - -; +#X floatatom 174 493 3 0 0 3 hat-X - -; +#X floatatom 220 493 3 0 0 3 hat-Y - -; +#X floatatom 124 493 5 0 0 3 twist - -; +#X floatatom 263 492 5 0 0 3 throttle - -; +#X obj 418 567 pddp/pddplink ../all_about_hid.pd -text all_about_hid; +#X text 309 566 for more info:; +#X text 13 554 detailed info:; +#X text 14 605 by Hans-Christoph Steiner ; +#X text 379 604 updated for Pd 0.38test4; +#X connect 4 0 6 0; +#X connect 5 0 6 0; +#X connect 6 0 3 0; +#X connect 6 1 2 0; +#X connect 6 2 0 0; +#X connect 6 3 1 0; +#X connect 7 0 6 0; +#X connect 8 0 6 0; +#X connect 10 0 8 0; +#X connect 11 0 8 0; +#X connect 12 0 6 0; +#X connect 13 0 26 0; +#X connect 23 0 6 0; +#X connect 24 0 6 0; +#X connect 26 0 7 0; +#X connect 29 0 31 0; +#X connect 30 0 31 0; +#X connect 31 0 35 0; +#X connect 31 1 34 0; +#X connect 31 2 38 0; +#X connect 31 3 36 0; +#X connect 31 4 37 0; +#X connect 31 5 39 0; +#X connect 31 6 32 0; +#X connect 31 7 33 0; diff --git a/externals/deprecated/linuxmouse-help.pd b/externals/deprecated/linuxmouse-help.pd new file mode 100644 index 00000000..761db0fc --- /dev/null +++ b/externals/deprecated/linuxmouse-help.pd @@ -0,0 +1,44 @@ +#N canvas 112 187 463 472 10; +#X floatatom 238 220 5 0 0 3 button# - -; +#X floatatom 299 220 5 0 0 3 button_value - -; +#X floatatom 190 220 2 0 0 3 wheel - -; +#X floatatom 137 220 4 0 0 3 y-axis - -; +#X floatatom 79 220 4 0 0 3 x-axis - -; +#X obj 95 193 linuxmouse /dev/input/event0; +#X obj 6 5 cnv 15 450 30 empty empty [linuxmouse] 20 12 1 16 -225280 +-66577 0; +#X text 24 263 [linuxmouse] takes events directly from a Linux event +device \, so that you get mouse data regardless of whether Pd has focus. +Also \, the data from the event system is relative and limited to the +screen size.; +#X msg 51 71 start; +#X msg 51 93 stop; +#X msg 115 70 poll; +#X msg 115 92 nopoll; +#X msg 158 165 close; +#X text 179 91 (synonyms for the same actions); +#X text 182 75 start/stop polling; +#X msg 147 122 open; +#X msg 152 142 open /dev/input/event1; +#X text 183 123 opens the previous device; +#X msg 419 10 pddp; +#X text 178 417 For more info on HIDs:; +#X text 10 441 by Hans-Christoph Steiner ; +#X obj 340 417 pddp/pddplink ../all_about_hid.pd -text all_about_hid; +#X text 24 325 Rather than polling like the other HID objects \, [linuxmouse] +uses a pollfn so it receives events as they happen. A pollfn listens +to a network socket \, and takes action upon activity. Since all mouse +events go through the network socket between pd and pd-gui \, this +works for responding to mouse events.; +#X connect 5 0 4 0; +#X connect 5 1 3 0; +#X connect 5 2 2 0; +#X connect 5 3 0 0; +#X connect 5 4 1 0; +#X connect 8 0 5 0; +#X connect 9 0 5 0; +#X connect 10 0 5 0; +#X connect 11 0 5 0; +#X connect 12 0 5 0; +#X connect 15 0 5 0; +#X connect 16 0 5 0; diff --git a/externals/deprecated/pan_gogins~-README.txt b/externals/deprecated/pan_gogins~-README.txt new file mode 100644 index 00000000..7a059ef2 --- /dev/null +++ b/externals/deprecated/pan_gogins~-README.txt @@ -0,0 +1,39 @@ +*********************************************************************** + File: pan_gogins~.c (a quick hack of pan~.c) + Auth: Marco Scoffier [marco@metm.org] modified code by + Iain Mott [iain.mott@bigpond.com] + Maintainer (of pan~.c) : Iain Mott [iain.mott@bigpond.com] + Date: March 2003 + + Description: Pd signal external. Stereo panning implementing an + algorithm concieved by Michael Gogins and described at + http://www.csounds.com/ezine/autumn1999/beginners/ + Angle input specified in degrees. -45 left, 0 centre, 45 right. + See supporting Pd patch: pan_gogins~.pd + + Copyright (C) 2001 by Iain Mott [iain.mott@bigpond.com] + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License, which should be included with this + program, for more details. + +*********************************************************************** +I only tested this patch under linux. + +INSTALLATION: + + type make pd_linux (or your platform's make target see Makefile) + + cp pan_gogins~.pd_linux to your pd/externs directory, + or somewhere in your pd -path + + cp pan_gogins~.pd into your pd/docs/5.reference directory + +Enjoy diff --git a/externals/deprecated/pan_gogins~-help.pd b/externals/deprecated/pan_gogins~-help.pd new file mode 100644 index 00000000..281573dd --- /dev/null +++ b/externals/deprecated/pan_gogins~-help.pd @@ -0,0 +1,95 @@ +#N canvas 229 280 522 407 10; +#X floatatom 94 35 4 -45 45 0 - - -; +#X floatatom 112 85 0 0 0 0 - - -; +#N canvas 184 223 495 266 output 0; +#X obj 338 160 t b; +#X obj 338 110 f; +#X obj 338 60 inlet; +#X text 344 29 mute; +#X obj 338 185 f; +#X msg 425 178 0; +#X msg 338 85 bang; +#X obj 338 135 moses 1; +#X obj 425 153 t b f; +#X obj 397 117 moses 1; +#X obj 83 148 dbtorms; +#X obj 397 92 r master-lvl; +#X obj 83 42 r master-lvl; +#X obj 338 210 s master-lvl; +#X obj -15 176 inlet~; +#X obj 199 41 inlet; +#X text 199 18 level; +#X obj 199 100 s master-lvl; +#X msg 96 65 set \$1; +#X obj 96 89 outlet; +#X msg 214 64 \; pd dsp 1; +#X obj 83 194 line~; +#X obj -15 207 *~; +#X obj -15 236 dac~; +#X obj 83 171 pack 0 50; +#X text -17 153 audio; +#X text 93 110 show level; +#X obj 31 182 inlet~; +#X obj 31 218 *~; +#X connect 0 0 4 0; +#X connect 1 0 7 0; +#X connect 2 0 6 0; +#X connect 4 0 13 0; +#X connect 5 0 13 0; +#X connect 6 0 1 0; +#X connect 7 0 0 0; +#X connect 7 1 8 0; +#X connect 8 0 5 0; +#X connect 9 1 4 1; +#X connect 10 0 24 0; +#X connect 11 0 1 1; +#X connect 11 0 9 0; +#X connect 12 0 10 0; +#X connect 12 0 18 0; +#X connect 14 0 22 0; +#X connect 15 0 17 0; +#X connect 15 0 20 0; +#X connect 18 0 19 0; +#X connect 21 0 22 1; +#X connect 21 0 28 1; +#X connect 22 0 23 0; +#X connect 24 0 21 0; +#X connect 27 0 28 0; +#X connect 28 0 23 1; +#X restore 74 112 pd output; +#X msg 132 84 MUTE; +#X text 166 83 <-- output amplitude; +#N canvas 5 21 600 400 pulse 0; +#X obj 175 203 cos~; +#X obj 175 131 -~ 0.5; +#X obj 175 179 clip~ -0.5 0.5; +#X obj 175 227 hip~ 5; +#X obj 175 155 *~ 82; +#X obj 175 107 phasor~ 16; +#X obj 175 251 outlet~; +#X connect 0 0 3 0; +#X connect 1 0 4 0; +#X connect 2 0 0 0; +#X connect 3 0 6 0; +#X connect 4 0 2 0; +#X connect 5 0 1 0; +#X restore 22 33 pd pulse; +#X msg 21 177 \; pd dsp 1; +#X msg 91 177 \; pd dsp 0; +#X text 43 208 ON; +#X text 108 208 OFF; +#X obj 22 152 loadbang; +#X text 133 36 angle in degrees range -45 to 45; +#X obj 22 58 pan_gogins~; +#X text 17 324 pan_gogins~ a modification of pan~ by Ian Mott; +#X text 16 341 implements an algorithm conceived by Michael Gogins +and described at: http://www.csounds.com/ezine/autumn1999/beginners/ +; +#X connect 0 0 12 1; +#X connect 1 0 2 2; +#X connect 2 0 1 0; +#X connect 3 0 2 3; +#X connect 5 0 12 0; +#X connect 10 0 6 0; +#X connect 12 0 2 0; +#X connect 12 1 2 1; diff --git a/externals/deprecated/range-help.pd b/externals/deprecated/range-help.pd new file mode 100644 index 00000000..8a3b11c0 --- /dev/null +++ b/externals/deprecated/range-help.pd @@ -0,0 +1,31 @@ +#N canvas 381 126 552 355 12; +#X floatatom 27 277 8 0 0; +#X floatatom 27 73 5 0 0; +#X text 213 48 written by ; +#X text 37 306 creation:; +#X text 141 11 range :: range input from a certain input range; +#X text 212 29 to lie between output boundaries; +#X floatatom 56 131 5 0 0; +#X floatatom 85 152 5 0 0; +#X floatatom 115 173 5 0 0; +#X floatatom 144 194 5 0 0; +#X text 84 71 input value; +#X text 106 278 ranged output value; +#X text 111 130 in low; +#X text 137 151 in high; +#X text 171 172 out low; +#X text 200 194 out high; +#X text 57 104 creation arguments can be changed dynamically:; +#X text 53 323 range +; +#X obj 27 249 range 0 9 100 255 0; +#X floatatom 174 220 5 0 0; +#X text 227 219 log coefficient; +#X text 265 237 0 = linear 1 = log; +#X connect 1 0 18 0; +#X connect 6 0 18 1; +#X connect 7 0 18 2; +#X connect 8 0 18 3; +#X connect 9 0 18 4; +#X connect 18 0 0 0; +#X connect 19 0 18 5; -- cgit v1.2.1