#N canvas 566 38 587 595 12;
#X obj 85 409 r foo;
#X obj 85 437 print foo;
#X obj 227 450 stdout;
#X msg 211 367 a b c;
#X obj 109 203 env~ 8192;
#X floatatom 109 252 5 0 0 0 - - - 0;
#X obj 109 228 i;
#X obj 284 187 osc~ 440;
#X obj 284 221 *~;
#X obj 358 188 osc~ 440;
#X obj 358 222 *~;
#X msg 237 419 bang;
#X obj 366 368 loadbang;
#X obj 183 203 env~ 8192;
#X floatatom 183 252 5 0 0 0 - - - 0;
#X obj 183 228 i;
#X msg 227 391 4;
#X text 62 500 We turn DSP on at load for convenience - control objects in this patch will still work without it (unlike in the super-process \, where DSP must be on for time to move forward in the sub-process.);
#X obj 333 256 dac~;
#X obj 151 172 adc~, f 5;
#X msg 366 421 \; pd dsp \$1;
#X text 389 396 DSP on/off;
#X obj 319 222 tgl 19 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000 0 1;
#X text 45 20 This is a test patch to demonstrate the [pd~] object. It's intended as the patch to run in the sub-process. The sub-process (which is a separate instance of Pd) can be called from a Max or Pd super-process., f 70;
#X text 46 75 Audio inlets and outlets on the Pd~ object (in the super-process) talk to [adc~] and [dac~] objects here - so \, for instance \, the first [adc~] here is the first inlet of the pd~ object \, and the first channel of [dac~] goes to the second outlet of [pd~] (because the first one is for messages \, as shown further below.), f 70;
#X text 41 293 Any message sent to a stdout object in this sub-process (below) appears on the first message outlet of the [pd~] object in the super-process. The super-process can send messages to any [receive] object in this sub-process., f 71;
#X obj 393 223 tgl 19 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000 0 1;
#X obj 366 395 tgl 19 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000 0 1;
#X connect 0 0 1 0;
#X connect 3 0 2 0;
#X connect 4 0 6 0;
#X connect 6 0 5 0;
#X connect 7 0 8 0;
#X connect 8 0 18 0;
#X connect 9 0 10 0;
#X connect 10 0 18 1;
#X connect 11 0 2 0;
#X connect 12 0 27 0;
#X connect 13 0 15 0;
#X connect 15 0 14 0;
#X connect 16 0 2 0;
#X connect 19 0 4 0;
#X connect 19 1 13 0;
#X connect 22 0 8 1;
#X connect 26 0 10 1;
#X connect 27 0 20 0;
