#N canvas 460 17 704 237 12;
#N canvas 176 355 458 210 template1 0;
#X obj 58 80 filledpolygon 244 q 5 0 0 20 z 40 0;
#X obj 9 30 template float x float y float z float q float a float
f;
#X obj 60 156 drawnumber f 50 15 0;
#X obj 62 126 drawnumber a 50 32 0;
#X restore 369 181 pd template1;
#X obj 23 12 scalar;
#X text 93 13 -- add a scalar to parent patch;
#N canvas 288 380 872 275 subpatch 1;
#X msg 386 67 bang;
#X floatatom 6 171 0 0 0;
#X obj 6 206 set template1 x;
#X floatatom 118 174 0 0 0;
#X floatatom 229 176 0 0 0;
#X obj 118 208 set template1 y;
#X obj 229 208 set template1 z;
#X obj 386 91 scalar template1 90 50;
#X obj 39 16 loadbang;
#X obj 39 38 t b b;
#X msg 5 147 5;
#X msg 226 149 15;
#X text 276 5 creation arguments for scalar are the template name and
the additional x and y pixels the parent box should be shown to hold
the graphics.;
#X obj 381 203 pointer;
#X msg 381 149 1;
#X obj 381 173 metro 200;
#X floatatom 381 249 0 0 0;
#X floatatom 445 248 0 0 0;
#X floatatom 508 251 0 0 0;
#X text 424 113 On "bang" input \, scalar outputs the pointer.;
#X obj 381 225 get template1 a f z;
#X text 452 171 ... you can poll for the values if you wish \, but
there's no way yet to catch field-changed events.;
#X connect 0 0 7 0;
#X connect 1 0 2 0;
#X connect 3 0 5 0;
#X connect 4 0 6 0;
#X connect 7 0 6 1;
#X connect 7 0 5 1;
#X connect 7 0 2 1;
#X connect 7 0 13 1;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 9 0 11 0;
#X connect 9 0 14 0;
#X connect 9 1 0 0;
#X connect 10 0 3 0;
#X connect 10 0 1 0;
#X connect 11 0 4 0;
#X connect 13 0 20 0;
#X connect 14 0 15 0;
#X connect 15 0 13 0;
#X connect 20 0 16 0;
#X connect 20 1 17 0;
#X connect 20 2 18 0;
#X restore 86 147 pd subpatch;
#X text 28 102 This is an ordinary subpatch except that it contains
a "scalar" object which is extending its size and drawing on it---click
to see the interior.;
#X text 32 44 "Scalar" (as a regular object) gives you a hook to draw
on a patch from a subpatch. It is in a highly unfinished state and
is shown here mostly as a curiosity.;
#X text 266 211 updated for Pd version 0.33;
