#N canvas 385 45 894 575 10;
#X obj 287 270 pointer;
#X obj 224 293 append \$0-template x y, f 11;
#X obj 338 190 s pd-\$0-display;
#X obj 267 200 f \$0;
#X obj 145 348 setsize \$0-template \$0-data, f 11;
#X obj 291 392 array define \$0-x 1024;
#X obj 291 413 array define \$0-y 1024;
#N canvas 859 654 298 149 \$0-template 0;
#X obj 52 37 struct \$0-template float x float y array \$0-data \$0-data-template, f 32;
#X obj 53 83 plot -e 0 \$0-data 500 3;
#X restore 315 307 pd \$0-template;
#N canvas 744 580 370 121 \$0-data-template 0;
#X obj 60 46 struct \$0-data-template float x float y;
#X restore 315 328 pd \$0-data-template;
#X obj 101 440 array set -s \$0-template \$0-data -f \$0-data-template y, f 21;
#X obj 63 490 array set -s \$0-template \$0-data -f \$0-data-template x, f 32;
#X obj 63 395 array get \$0-x, f 5;
#X obj 101 395 array get \$0-y, f 5;
#X obj 63 317 tgl 19 0 empty empty empty 0 -8 0 10 #dfdfdf #000000 #000000 0 1;
#X floatatom 108 321 5 25 1000 0 - - - 0;
#X obj 159 319 block~;
#X msg 159 296 set \$1;
#X msg 145 245 1024;
#X floatatom 145 270 5 0 0 0 - - - 0;
#X obj 63 356 metro 25;
#N canvas 92 117 513 497 \$0-display 0;
#X coords 0 2 2 0 334 332 2 100 100;
#X restore 492 189 pd \$0-display;
#X obj 139 173 trigger a bang bang bang bang;
#X obj 139 129 bng 21 250 50 0 empty empty empty 0 -8 0 10 #dfdfdf #000000 #000000;
#X msg 63 280 1;
#X obj 537 114 osc~ 440;
#X obj 667 148 tabsend~ \$0-y;
#X obj 537 149 tabsend~ \$0-x;
#X obj 667 115 osc~ 660.1;
#X msg 224 253 0 0;
#X msg 287 226 traverse pd-\$1-display \, bang \; pd dsp 1, f 23;
#X msg 338 168 clear;
#X obj 338 143 loadbang;
#X text 165 131 (re)initialize;
#X text 83 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 511 35 Thanks Ben Wesch for this patch.;
#X text 84 87 Click the bang below to initialize the patch.;
#X connect 0 0 1 2;
#X connect 1 0 4 1;
#X connect 1 0 9 2;
#X connect 1 0 10 2;
#X connect 3 0 29 0;
#X connect 11 0 10 0;
#X connect 12 0 9 0;
#X connect 13 0 19 0;
#X connect 14 0 19 1;
#X connect 16 0 15 0;
#X connect 17 0 18 0;
#X connect 18 0 4 0;
#X connect 18 0 16 0;
#X connect 19 0 11 0;
#X connect 19 0 12 0;
#X connect 21 0 23 0;
#X connect 21 1 17 0;
#X connect 21 2 28 0;
#X connect 21 3 3 0;
#X connect 21 4 30 0;
#X connect 22 0 21 0;
#X connect 23 0 13 0;
#X connect 24 0 26 0;
#X connect 27 0 25 0;
#X connect 28 0 1 0;
#X connect 29 0 0 0;
#X connect 30 0 2 0;
#X connect 31 0 30 0;
