From 8ce2b8755d6c017e6ce5213e35e3e792d4ad8763 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 26 Apr 2005 05:06:17 +0000 Subject: updated with [pwd] object to demonstrate opening a patch using a message. Whatever [pwd] ends up being named, it'll have to be changed here svn path=/trunk/; revision=2823 --- doc/additional/pd-msg/2.msg_and_pd/2.open_close.pd | 43 +++++++++++++++++----- 1 file changed, 34 insertions(+), 9 deletions(-) (limited to 'doc/additional/pd-msg/2.msg_and_pd') diff --git a/doc/additional/pd-msg/2.msg_and_pd/2.open_close.pd b/doc/additional/pd-msg/2.msg_and_pd/2.open_close.pd index 8917836b..a6e10d05 100755 --- a/doc/additional/pd-msg/2.msg_and_pd/2.open_close.pd +++ b/doc/additional/pd-msg/2.msg_and_pd/2.open_close.pd @@ -1,11 +1,36 @@ -#N canvas 608 409 514 293 10; +#N canvas 368 98 521 539 10; #X text 10 4 open and close an abstraction; -#X text 24 164 close; -#X text 26 30 open; -#X text 22 221 (you have to put a corect name & valid path); -#X msg 25 185 \; pd-abstraction.pd menuclose \;; -#X msg 25 50 \; pd open abstraction.pd /usr/local/lib/pd/doc/7.stuff/pd-msg/2.msg_and_pd/ -; -#X text 21 96 (you have to put a correct name and complete path); -#X text 25 127 Sometimes you can get relative paths (./ \, ../ \, etc.) +#X text 22 231 (you have to put a corect name & valid path); +#X msg 25 195 \; pd-abstraction.pd menuclose \;; +#X text 25 131 Sometimes you can get relative paths (./ \, ../ \, etc.) to work \, but usually not. I don't know why...; +#X msg 226 435 \; pd open \$1 \$2; +#X text 57 480 you have to put the name of the patch to open ($1) and +complete path to it ($2); +#X obj 226 374 pack s s; +#X obj 276 354 pwd; +#X msg 25 63 \; pd open abstraction.pd /usr/local/lib/pd/doc/7.stuff/additional/pd-msg/2.msg_and_pd +; +#X text 25 41 OPEN; +#X text 24 174 CLOSE; +#X text 25 99 You have to put the name of the patch to open and complete +path to it; +#X obj 77 407 makefilename pd-%s; +#X msg 77 434 \; \$1 menuclose \;; +#X obj 77 386 symbol; +#X msg 100 300 abstraction.pd; +#X obj 99 334 trigger bang anything bang; +#X obj 114 368 symbol; +#X obj 51 359 del 2000; +#X text 27 278 OPEN THEN CLOSE; +#X connect 6 0 4 0; +#X connect 7 0 6 1; +#X connect 12 0 13 0; +#X connect 14 0 12 0; +#X connect 15 0 16 0; +#X connect 16 0 18 0; +#X connect 16 1 6 0; +#X connect 16 1 17 1; +#X connect 16 2 7 0; +#X connect 17 0 14 1; +#X connect 18 0 14 0; -- cgit v1.2.1