Update of /cvsroot/pure-data/doc/additional/pd-msg/2.msg_and_pd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26674/2.msg_and_pd
Modified Files: 2.open_close.pd Log Message: 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
Index: 2.open_close.pd =================================================================== RCS file: /cvsroot/pure-data/doc/additional/pd-msg/2.msg_and_pd/2.open_close.pd,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** 2.open_close.pd 15 Jan 2004 03:27:50 -0000 1.3 --- 2.open_close.pd 26 Apr 2005 05:06:17 -0000 1.4 *************** *** 1,11 **** ! #N canvas 608 409 514 293 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.) to work , but usually not. I don't know why...; --- 1,36 ---- ! #N canvas 368 98 521 539 10; #X text 10 4 open and close an abstraction; ! #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;