#N canvas 264 45 915 642 12;
#X obj 311 299 pointer;
#X obj 358 211 s pd-\$0-display;
#X obj 311 218 f \$0;
#X obj 144 386 setsize \$0-template \$0-data, f 11;
#X obj 306 435 array define \$0-x 1024;
#X obj 306 459 array define \$0-y 1024;
#N canvas 859 654 298 149 \$0-template 0;
#X obj 58 41 struct \$0-template float x float y array \$0-data \$0-data-template, f 32;
#X obj 59 92 plot -e 0 \$0-data 500 3;
#X restore 340 341 pd \$0-template;
#N canvas 744 580 370 121 \$0-data-template 0;
#X obj 67 51 struct \$0-data-template float x float y;
#X restore 340 365 pd \$0-data-template;
#X obj 93 511 array set -s \$0-template \$0-data -f \$0-data-template y, f 21;
#X obj 46 453 array get \$0-x, f 5;
#X obj 93 453 array get \$0-y, f 5;
#X obj 46 290 tgl 19 0 empty empty empty 0 -8 0 10 #dfdfdf #000000 #000000 0 1;
#X floatatom 60 326 5 1 50 0 - - - 0;
#X obj 159 353 block~;
#X msg 159 328 set \$1;
#X msg 144 270 1024;
#X floatatom 144 294 5 0 0 0 - - - 0;
#N canvas 92 117 513 497 \$0-display 0;
#X coords 0 2 2 0 334 332 2 100 100;
#X restore 539 210 pd \$0-display;
#X obj 137 183 trigger a bang bang bang bang;
#X obj 137 138 bng 21 250 50 0 empty empty empty 0 -8 0 10 #dfdfdf #000000 #000000;
#X msg 46 263 1;
#X msg 311 244 traverse pd-\$1-display \, bang \; pd dsp 1, f 23;
#X msg 358 187 clear;
#X obj 358 163 loadbang;
#X text 166 141 (re)initialize;
#X text 65 31 This example plots a two-dimensional array taking into consideration two signal inputs. One signal is for the 'X' dimension (horizontal) and another for the 'Y' dimension (vertical). This way we can implement a 2D Oscilloscope!;
#X text 570 49 Thanks Ben Wesch for this patch.;
#X text 65 93 Click the bang below to initialize the patch., f 58;
#X obj 601 97 osc~ 440;
#X obj 237 327 append \$0-template x, f 11;
#X msg 237 270 0;
#X obj 601 162 tabsend~ \$0-x \$0-y;
#X obj 675 97 osc~ 660.1;
#X obj 601 128 snake~ in 2;
#X obj 46 401 metro 1 50 persec, f 9;
#X msg 60 351 tempo \$1 persec, f 8;
#X obj 46 569 array set -s \$0-template \$0-data -f \$0-data-template x, f 32;
#X connect 0 0 29 1;
#X connect 2 0 21 0;
#X connect 9 0 36 0;
#X connect 10 0 8 0;
#X connect 11 0 34 0;
#X connect 12 0 35 0;
#X connect 14 0 13 0;
#X connect 15 0 16 0;
#X connect 16 0 3 0;
#X connect 16 0 14 0;
#X connect 18 0 20 0;
#X connect 18 1 15 0;
#X connect 18 2 30 0;
#X connect 18 3 2 0;
#X connect 18 4 22 0;
#X connect 19 0 18 0;
#X connect 20 0 11 0;
#X connect 21 0 0 0;
#X connect 22 0 1 0;
#X connect 23 0 22 0;
#X connect 28 0 33 0;
#X connect 29 0 3 1;
#X connect 29 0 8 2;
#X connect 29 0 36 2;
#X connect 30 0 29 0;
#X connect 32 0 33 1;
#X connect 33 0 31 0;
#X connect 34 0 9 0;
#X connect 34 0 10 0;
#X connect 35 0 34 0;
