[Gridflow-cvs] [svn] commit: r5503 - in /trunk: abstractions/#mouse.pd doc/flow_classes/#mouse-help.pd

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Apr 25 14:00:27 EDT 2010


Author: matju
Date: Sun Apr 25 14:00:26 2010
New Revision: 5503

Log:
add method "/" for specifying a coordinate divider

Modified:
    trunk/abstractions/#mouse.pd
    trunk/doc/flow_classes/#mouse-help.pd

Modified: trunk/abstractions/#mouse.pd
==============================================================================
--- trunk/abstractions/#mouse.pd (original)
+++ trunk/abstractions/#mouse.pd Sun Apr 25 14:00:26 2010
@@ -1,93 +1,102 @@
-#N canvas 313 211 690 428 10;
-#X obj 23 103 listsublist 0 2;
-#X obj 48 64 t a a;
-#X obj 126 181 t a a;
-#X text 153 149 is button pressed?;
-#X obj 129 209 -;
-#X obj 125 150 > 0;
-#X obj 183 86 listelement 2;
-#X obj 120 377 outlet;
-#X text 161 183 1=click \, 0=nochange \, -1=unclick;
-#X text 157 36 list (y \, x \, buttons);
-#X obj 49 8 inlet;
-#X obj 48 34 route position;
-#X text 93 8 compatible with output of [#out window];
-#X obj 142 246 inv+ 1;
-#X obj 98 397 outlet;
-#X obj 142 356 outlet;
-#X text 431 330 three toggle-compatible outputs;
-#X text 432 346 and one +1/0/-1 for the wheel;
-#X text 147 397 click;
-#X text 193 357 unclick;
-#X obj 468 60 listelement 2;
-#X obj 430 301 outlet;
-#X obj 480 301 outlet;
-#X obj 530 301 outlet;
-#X obj 580 301 outlet;
-#X obj 430 273 change;
-#X obj 108 63 t a a;
-#X obj 469 115 # & 1;
-#X obj 469 173 unpack 0 0 0 0 0;
-#X obj 549 241 inv+;
-#X obj 480 274 change;
-#X obj 530 275 change;
-#X obj 580 276 change;
-#X obj 469 145 #to_list;
-#X obj 163 335 outlet;
-#X text 172 378 drag;
-#X text 214 337 move;
-#X obj 163 275 inv+ 1;
-#X obj 389 16 inlet;
+#N canvas 313 211 711 472 10;
+#X obj 14 72 t a a;
+#X obj 125 157 t a a;
+#X text 149 138 is button pressed?;
+#X obj 128 192 -;
+#X obj 125 138 > 0;
+#X obj 106 342 outlet;
+#X text 160 157 1=click \, 0=nochange \, -1=unclick;
+#X text 123 36 list (y \, x \, buttons);
+#X obj 14 15 inlet;
+#X text 58 15 compatible with output of [#out window];
+#X obj 128 211 inv+ 1;
+#X obj 84 362 outlet;
+#X obj 123 321 outlet;
+#X text 431 321 three toggle-compatible outputs;
+#X text 432 337 and one +1/0/-1 for the wheel;
+#X text 126 362 click;
+#X text 166 321 unclick;
+#X obj 469 292 outlet;
+#X obj 511 292 outlet;
+#X obj 553 292 outlet;
+#X obj 595 292 outlet;
+#X obj 469 273 change;
+#X obj 14 53 t a a;
+#X obj 469 125 # & 1;
+#X obj 469 163 unpack 0 0 0 0 0;
+#X obj 595 254 inv+;
+#X obj 511 273 change;
+#X obj 553 273 change;
+#X obj 595 273 change;
+#X obj 469 144 #to_list;
+#X obj 133 300 outlet;
+#X text 148 342 drag;
+#X text 175 300 move;
+#X obj 152 240 inv+ 1;
+#X obj 391 40 inlet;
 #X text 433 9 list of 3 toggles;
 #X text 434 23 which buttons should be active;
-#X obj 345 107 #fold +;
-#X obj 345 131 #to_float;
-#X obj 125 126 &;
-#X text 151 126 check only wanted buttons;
-#X obj 305 33 loadbang;
-#X msg 305 57 1 1 1;
-#X obj 98 269 shunt 3;
-#X obj 120 302 shunt 2;
-#X obj 347 81 # << (8 9 10);
-#X obj 468 86 #outer >> (8 9 10 11 12);
-#X connect 0 0 47 0;
-#X connect 1 0 0 0;
-#X connect 1 1 6 0;
-#X connect 2 0 4 1;
-#X connect 2 1 4 0;
-#X connect 2 1 37 0;
-#X connect 4 0 13 0;
-#X connect 5 0 2 0;
-#X connect 6 0 43 0;
-#X connect 10 0 11 0;
-#X connect 11 0 26 0;
-#X connect 13 0 47 1;
-#X connect 20 0 50 0;
-#X connect 25 0 21 0;
-#X connect 26 0 1 0;
-#X connect 26 1 20 0;
-#X connect 27 0 33 0;
-#X connect 28 0 25 0;
-#X connect 28 1 30 0;
-#X connect 28 2 31 0;
-#X connect 28 3 29 0;
-#X connect 28 4 29 1;
-#X connect 29 0 32 0;
-#X connect 30 0 22 0;
-#X connect 31 0 23 0;
-#X connect 32 0 24 0;
-#X connect 33 0 28 0;
-#X connect 37 0 48 1;
-#X connect 38 0 49 0;
+#X obj 345 83 #fold +;
+#X obj 345 102 #to_float;
+#X obj 125 119 &;
+#X text 147 119 check only wanted buttons;
+#X obj 345 17 loadbang;
+#X msg 345 36 1 1 1;
+#X obj 84 234 shunt 3;
+#X obj 345 64 # << (8 9 10);
+#X obj 469 106 #outer >> (8 9 10 11 12);
+#X obj 14 34 route position /;
+#X msg 125 89 \$3;
+#X obj 14 160 pack 0 0;
+#X obj 14 112 unpack 0 0;
+#X obj 14 131 / 1;
+#X obj 71 131 / 1;
+#X obj 259 231 args;
+#X text 285 231 required to support /;
+#X obj 106 267 shunt;
+#X connect 0 0 49 0;
+#X connect 0 1 47 0;
+#X connect 1 0 3 1;
+#X connect 1 1 3 0;
+#X connect 1 1 33 0;
+#X connect 3 0 10 0;
+#X connect 4 0 1 0;
+#X connect 8 0 46 0;
+#X connect 10 0 43 1;
+#X connect 21 0 17 0;
+#X connect 22 0 0 0;
+#X connect 23 0 29 0;
+#X connect 24 0 21 0;
+#X connect 24 1 26 0;
+#X connect 24 2 27 0;
+#X connect 24 3 25 0;
+#X connect 24 4 25 1;
+#X connect 25 0 28 0;
+#X connect 26 0 18 0;
+#X connect 27 0 19 0;
+#X connect 28 0 20 0;
+#X connect 29 0 24 0;
+#X connect 33 0 54 1;
+#X connect 34 0 44 0;
+#X connect 37 0 38 0;
+#X connect 38 0 39 1;
+#X connect 39 0 4 0;
 #X connect 41 0 42 0;
-#X connect 42 0 43 1;
-#X connect 43 0 5 0;
-#X connect 45 0 46 0;
-#X connect 46 0 49 0;
-#X connect 47 0 14 0;
-#X connect 47 1 48 0;
-#X connect 47 2 15 0;
-#X connect 48 0 7 0;
-#X connect 48 1 34 0;
-#X connect 49 0 41 0;
-#X connect 50 0 27 0;
+#X connect 42 0 44 0;
+#X connect 43 0 11 0;
+#X connect 43 1 54 0;
+#X connect 43 2 12 0;
+#X connect 44 0 37 0;
+#X connect 45 0 23 0;
+#X connect 46 0 22 0;
+#X connect 46 1 50 1;
+#X connect 46 1 51 1;
+#X connect 47 0 39 0;
+#X connect 47 0 45 0;
+#X connect 48 0 43 0;
+#X connect 49 0 50 0;
+#X connect 49 1 51 0;
+#X connect 50 0 48 0;
+#X connect 51 0 48 1;
+#X connect 54 0 5 0;
+#X connect 54 1 30 0;

Modified: trunk/doc/flow_classes/#mouse-help.pd
==============================================================================
--- trunk/doc/flow_classes/#mouse-help.pd (original)
+++ trunk/doc/flow_classes/#mouse-help.pd Sun Apr 25 14:00:26 2010
@@ -1,8 +1,7 @@
-#N canvas 615 0 632 699 10;
+#N canvas 594 0 632 699 10;
 #X msg 59 113 setcursor 32;
 #X msg 40 90 hidecursor;
-#X text 125 88 <-- removes the cursor;
-#X text 159 110 <-- accepts 0 - 63;
+#X text 106 90 <-- removes the cursor;
 #X obj 76 197 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
 ;
 #X obj 93 197 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
@@ -19,48 +18,44 @@
 #X obj 379 161 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
 1;
 #X obj 359 132 loadbang;
-#X text 232 422 select buttons to be considered in click/drag/unclick
+#X text 232 470 select buttons to be considered in click/drag/unclick
 ;
 #X obj 40 145 #out window;
 #X obj 340 178 #pack 3;
 #X obj 0 0 doc_h;
 #X obj 3 330 doc_c 0;
 #X obj 3 370 doc_i 2;
-#X obj 3 454 doc_o 8;
-#X obj 14 484 doc_oo 0;
-#X obj 14 506 doc_oo 1;
-#X obj 14 528 doc_oo 2;
-#X obj 14 550 doc_oo 3;
-#X obj 14 572 doc_oo 4;
-#X obj 14 594 doc_oo 5;
-#X obj 14 616 doc_oo 6;
-#X obj 14 638 doc_oo 7;
+#X obj 3 502 doc_o 8;
+#X obj 14 532 doc_oo 0;
+#X obj 14 554 doc_oo 1;
+#X obj 14 576 doc_oo 2;
+#X obj 14 598 doc_oo 3;
+#X obj 14 620 doc_oo 4;
+#X obj 14 642 doc_oo 5;
+#X obj 14 664 doc_oo 6;
+#X obj 14 686 doc_oo 7;
 #X obj 14 400 doc_ii 0;
-#X obj 14 422 doc_ii 1;
+#X obj 14 470 doc_ii 1;
 #X text 19 32 How to get the mouse coordinates and hide / change the
 cursor;
-#X obj 40 164 #mouse \, \, \, \, \,;
-#X obj 97 400 doc_m i0 list;
-#X text 232 484 (y x) click;
-#X text 232 506 (y x) drag;
-#X text 232 528 (y x) unclick;
-#X text 232 550 (y x) move;
-#X text 232 572 0 \, 1 button 1 status;
-#X text 232 594 0 \, 1 button 2 status;
-#X text 232 616 0 \, 1 button 3 status;
-#X text 232 638 mouse wheel difference: -1=up +1=down;
+#X obj 97 448 doc_m i0 list;
+#X text 232 532 (y x) click;
+#X text 232 554 (y x) drag;
+#X text 232 576 (y x) unclick;
+#X text 232 598 (y x) move;
+#X text 232 686 mouse wheel difference: -1=up +1=down;
 #X obj 340 197 #to_list;
-#X text 232 400 what comes out of [#out window];
-#X obj 97 422 doc_m i1 list;
-#X obj 97 484 doc_m o0 list;
-#X obj 97 506 doc_m o1 list;
-#X obj 97 528 doc_m o2 list;
-#X obj 97 550 doc_m o3 list;
-#X obj 97 572 doc_m o4 float;
-#X obj 97 594 doc_m o5 float;
-#X obj 97 616 doc_m o6 float;
-#X obj 97 638 doc_m o7 float;
-#X obj 0 670 doc_f;
+#X text 232 448 what comes out of [#out window];
+#X obj 97 470 doc_m i1 list;
+#X obj 97 532 doc_m o0 list;
+#X obj 97 554 doc_m o1 list;
+#X obj 97 576 doc_m o2 list;
+#X obj 97 598 doc_m o3 list;
+#X obj 97 620 doc_m o4 float;
+#X obj 97 642 doc_m o5 float;
+#X obj 97 664 doc_m o6 float;
+#X obj 97 686 doc_m o7 float;
+#X obj 0 718 doc_f;
 #X obj 67 224 display;
 #X obj 58 244 display;
 #X obj 49 264 display;
@@ -69,35 +64,45 @@
 #X text 97 264 dragged;
 #X text 106 244 unclicked;
 #X text 115 224 moved;
-#X connect 0 0 15 0;
-#X connect 1 0 15 0;
-#X connect 8 0 9 0;
-#X connect 8 0 7 0;
-#X connect 9 0 8 1;
-#X connect 10 0 16 0;
-#X connect 11 0 16 1;
-#X connect 12 0 16 2;
-#X connect 13 0 10 0;
-#X connect 13 0 11 0;
-#X connect 13 0 12 0;
-#X connect 15 0 32 0;
-#X connect 16 0 42 0;
-#X connect 32 0 57 0;
-#X connect 32 1 56 0;
-#X connect 32 2 55 0;
-#X connect 32 3 54 0;
-#X connect 32 4 4 0;
-#X connect 32 5 5 0;
-#X connect 32 6 6 0;
-#X connect 32 7 8 0;
-#X connect 33 1 43 0;
-#X connect 42 0 32 1;
-#X connect 44 1 14 0;
-#X connect 45 1 34 0;
-#X connect 46 1 35 0;
+#X obj 40 164 #mouse \, \, \, \, \,;
+#X obj 97 400 doc_m i0 /;
+#X text 232 400 divider for coordinates (to compensate for a [#scale_by]
+\, for example). convenient shortcut for something that tended to appear
+in every GridFlow patch that used [#mouse].;
+#X text 138 113 <-- number from 0 to 76;
+#X text 232 620 0 \, 1: button 1 status;
+#X text 232 642 0 \, 1: button 2 status;
+#X text 232 664 0 \, 1: button 3 status;
+#X connect 0 0 14 0;
+#X connect 1 0 14 0;
+#X connect 7 0 8 0;
+#X connect 7 0 6 0;
+#X connect 8 0 7 1;
+#X connect 9 0 15 0;
+#X connect 10 0 15 1;
+#X connect 11 0 15 2;
+#X connect 12 0 9 0;
+#X connect 12 0 10 0;
+#X connect 12 0 11 0;
+#X connect 14 0 57 0;
+#X connect 15 0 37 0;
+#X connect 31 1 38 0;
+#X connect 37 0 57 1;
+#X connect 39 1 13 0;
+#X connect 40 1 32 0;
+#X connect 41 1 33 0;
+#X connect 42 1 34 0;
+#X connect 43 1 35 0;
+#X connect 44 1 61 0;
+#X connect 45 1 62 0;
+#X connect 46 1 63 0;
 #X connect 47 1 36 0;
-#X connect 48 1 37 0;
-#X connect 49 1 38 0;
-#X connect 50 1 39 0;
-#X connect 51 1 40 0;
-#X connect 52 1 41 0;
+#X connect 57 0 52 0;
+#X connect 57 1 51 0;
+#X connect 57 2 50 0;
+#X connect 57 3 49 0;
+#X connect 57 4 3 0;
+#X connect 57 5 4 0;
+#X connect 57 6 5 0;
+#X connect 57 7 7 0;
+#X connect 58 1 59 0;



More information about the Gridflow-cvs mailing list