#N canvas 0 0 953 710 10;
#X floatatom 132 237 5 0 320 0 - - -;
#X floatatom 250 257 5 0 0 2 xdiv - -;
#X obj 135 218 hsl 128 15 0 319 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 5700 1;
#X obj 132 648 hradio 15 1 0 5 empty empty empty 0 -8 0 10 -262144
-1 -1 2;
#X msg 165 608 number \$1;
#X obj 288 518 vradio 15 1 0 6 empty empty empty 0 -8 0 10 -262144
-1 -1 3;
#X obj 132 416 m_touch2grid mygrid 5 6;
#X floatatom 354 257 5 0 0 2 ydiv - -;
#X msg 298 492 number \$1;
#X msg 354 318 ydiv \$1;
#X msg 250 318 xdiv \$1;
#X floatatom 211 375 5 0 320 0 - - -;
#X obj 211 240 vsl 15 128 319 0 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 5100 1;
#X obj 263 284 s \$0-xdiv;
#X obj 366 284 s \$0-ydiv;
#X obj 165 587 r \$0-xdiv;
#X obj 298 471 r \$0-ydiv;
#X floatatom 142 448 5 0 0 0 - - -;
#X floatatom 300 448 5 0 0 0 - - -;
#X obj 588 321 r #touch;
#X obj 588 342 route down;
#X obj 588 380 list split 1;
#X obj 628 420 unpack 0 0;
#X obj 588 488 pack 0 0 0;
#X text 590 523 make something with it;
#X text 582 289 Here's how to use it with RjDj \;;
#X text 68 23 m_touch2grid;
#X text 120 50 Map x \, y coordinates to a lower resolution grid.;
#X text 120 68 Arguments: <NAME> <x divisions> <y divisions>;
#X msg 355 364 div 3 4;
#X text 355 345 both:;
#X text 121 168 Outlets: 1) x-grid number \, 2) y-grid number;
#X floatatom 793 466 5 0 0 1 index - -;
#X floatatom 363 449 5 0 0 1 index - -;
#X text 617 75 0 1 2 3;
#X text 616 93 4 5 6 7;
#X text 616 112 8 9 10 11;
#X text 718 89 for a 4x3 grid;
#X text 183 186 3) index (0=upper left \, xdiv*ydiv-1 = lower right)
;
#X text 120 99 Inlets: 1) x pos (0...320) \, 2) y pos (0...320) \,
;
#X text 176 115 3) messages \, see below.;
#X text 566 50 The "index" number is mapped like this:;
#X msg 355 390 xmax 320 \, ymax 320;
#X obj 628 441 m_touch2grid mygrid2 2 2;
#X text 175 137 Only the leftmost-inlet is hot!;
#X connect 0 0 6 0;
#X connect 1 0 10 0;
#X connect 1 0 13 0;
#X connect 2 0 0 0;
#X connect 4 0 3 0;
#X connect 6 0 3 0;
#X connect 6 0 17 0;
#X connect 6 1 5 0;
#X connect 6 1 18 0;
#X connect 6 2 33 0;
#X connect 7 0 9 0;
#X connect 7 0 14 0;
#X connect 8 0 5 0;
#X connect 9 0 6 2;
#X connect 10 0 6 2;
#X connect 11 0 6 1;
#X connect 12 0 11 0;
#X connect 15 0 4 0;
#X connect 16 0 8 0;
#X connect 19 0 20 0;
#X connect 20 0 21 0;
#X connect 21 0 23 0;
#X connect 21 1 22 0;
#X connect 22 0 43 0;
#X connect 22 1 43 1;
#X connect 29 0 6 2;
#X connect 42 0 6 2;
#X connect 43 0 23 1;
#X connect 43 1 23 2;
#X connect 43 2 32 0;
