From 59b6ed633cd63ec112f4367365ac14479a8e4120 Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Wed, 13 Nov 2002 08:53:08 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r208, which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=209 --- doc/additional/pd-msg/3.pdscript/README | 16 ++++++ doc/additional/pd-msg/3.pdscript/lisp.pd | 2 + doc/additional/pd-msg/3.pdscript/pdsend | Bin 0 -> 5120 bytes doc/additional/pd-msg/3.pdscript/test.sh | 38 ++++++++++++++ doc/additional/pd-msg/3.pdscript/test.txt | 83 ++++++++++++++++++++++++++++++ 5 files changed, 139 insertions(+) create mode 100755 doc/additional/pd-msg/3.pdscript/README create mode 100755 doc/additional/pd-msg/3.pdscript/lisp.pd create mode 100755 doc/additional/pd-msg/3.pdscript/pdsend create mode 100755 doc/additional/pd-msg/3.pdscript/test.sh create mode 100755 doc/additional/pd-msg/3.pdscript/test.txt (limited to 'doc/additional/pd-msg/3.pdscript') diff --git a/doc/additional/pd-msg/3.pdscript/README b/doc/additional/pd-msg/3.pdscript/README new file mode 100755 index 00000000..dbfc7054 --- /dev/null +++ b/doc/additional/pd-msg/3.pdscript/README @@ -0,0 +1,16 @@ +This is a short example how to "script" a pd patch +with pd commands. + +First start pd +# pd lisp.pd + +Then either start the automated shell script +# ./test.sh + +or pipe the pd commands to pdsend directly: + +# pdsend 3005 < test.txt + +Read through text.txt for further explanations + +Guenter diff --git a/doc/additional/pd-msg/3.pdscript/lisp.pd b/doc/additional/pd-msg/3.pdscript/lisp.pd new file mode 100755 index 00000000..34dfa190 --- /dev/null +++ b/doc/additional/pd-msg/3.pdscript/lisp.pd @@ -0,0 +1,2 @@ +#N canvas 417 30 252 94 10; +#X obj 39 27 netreceive 3005 0 old; diff --git a/doc/additional/pd-msg/3.pdscript/pdsend b/doc/additional/pd-msg/3.pdscript/pdsend new file mode 100755 index 00000000..cf6339e6 Binary files /dev/null and b/doc/additional/pd-msg/3.pdscript/pdsend differ diff --git a/doc/additional/pd-msg/3.pdscript/test.sh b/doc/additional/pd-msg/3.pdscript/test.sh new file mode 100755 index 00000000..107d3ec0 --- /dev/null +++ b/doc/additional/pd-msg/3.pdscript/test.sh @@ -0,0 +1,38 @@ +#!/bin/sh + +PORT=3005 + + +function setfreq() +{ +./pdsend $PORT < ; + +pd-new connect 0 0 1 0; +pd-new connect 1 0 2 0; +pd-new connect 1 0 2 1; + +// we put a comment; +// object number 3; +pd-new text 80 0 This is a comment; + +// a Message object; +// object number 4; + +pd-new msg 10 90 440; + +// connect it to the osc~; + +pd-new connect 4 0 0 0; + +// and a number object; +// nr 5; + +pd-new floatatom 10 120; + +// connect it; + +pd-new connect 5 0 0 0; + +// put a communication channel for the frequency (a "receive"); +// nr 6; + +pd-new obj 10 150 r freq; +// a line; +// nr 7; +pd-new obj 10 180 line; + +// connect receive to the line; + +pd-new connect 6 0 7 0; + +// line to the osc~; + +pd-new connect 7 0 0 0; + +// turn on audio; + +pd dsp 1; + +// and ... control it the first word is the name of the receive above; + +freq 500 4000; + +// that's it, there will be several things to figure out, but by writing; +// this patch down in ascii I get the feeling that coding pd in lisp; +// will be a killer ... defininitely.; +// we will be able to automate lots of things I had to do by hand here; + + + -- cgit v1.2.1