#N canvas 404 92 712 514 12;
#X obj 21 14 pdcontrol;
#X text 100 14 -- communicate with pd and/or this patch;
#X text 446 470 updated for Pd version 0.50.;
#X obj 35 275 pdcontrol;
#X obj 35 300 print;
#X msg 43 150 isvisible;
#X msg 34 382 isvisible;
#N canvas 830 272 450 300 subpatch 0;
#X obj 37 37 inlet;
#X obj 37 62 pdcontrol;
#X obj 37 87 print;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 34 407 pd subpatch;
#X text 121 381 open and shut the subpatch to test "isvisible" message
;
#X text 131 148 1 if this patch is visible \, 0 if not;
#X msg 51 176 dir;
#X text 98 176 get directory this patch is in;
#X msg 57 214 dir 0 ../3.audio-examples/A00.intro.pd, f 32;
#N canvas 689 91 529 365 args 0;
#X obj 127 209 print;
#X text 185 140 <= get arguments;
#X obj 127 174 pdcontrol-abs foo 100 \$0-x \\\$0 \$1 \$2-x;
#X msg 127 140 args 0;
#X text 40 23 This is useful for managing a variable number of arguments.
When it receives the 'args' message \, [pdcontrol] outputs the loaded
arguments. An optional argument specifies this patch (0) \, owning
patch (1) \, its own owner (2) \, and so on. (Ownership number is silently
reduced if owners don't exist \, so here anything greater than zero
is ignored.), f 65;
#X text 44 247 Above there's a simple abstraction to show how it works.
Note how dollar signs (such as "\$0" \, "\$1" or "\$2-x") get expanded
unless you escape them with a backlash ("\$2-x" may appear as an unexpanded
symbol \, but it actually gets expanded if this abstraction is called
inside another that contains arguments).;
#X connect 2 0 0 0;
#X connect 3 0 2 0;
#X restore 64 338 pd args;
#X text 127 338 get the patch's arguments;
#X text 237 119 open a URL in a browser;
#X msg 35 120 browse http://msp.ucsd.edu;
#X text 306 206 Optional argument to specify this patch (0) \, owning
patch (1) \, its own owner (2) \, and so on \, and optionally also
a filename relative to the patch's directory. (Ownership number is
silently reduced if owners don't exist \, so here anything greater
than zero is ignored.), f 42;
#X text 31 41 pdcontrol lets you communicate with the patch to get
its owning directory \, arguments \, its visible/invisible state \,
or to open a URL in a web browser.;
#X connect 3 0 4 0;
#X connect 5 0 3 0;
#X connect 6 0 7 0;
#X connect 10 0 3 0;
#X connect 12 0 3 0;
#X connect 16 0 3 0;
