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

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sat Jul 31 19:24:16 EDT 2010


Author: matju
Date: Sat Jul 31 19:24:15 2010
New Revision: 5885

Log:
add method 'spacing'

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

Modified: trunk/abstractions/#many.pd
==============================================================================
--- trunk/abstractions/#many.pd (original)
+++ trunk/abstractions/#many.pd Sat Jul 31 19:24:15 2010
@@ -74,8 +74,8 @@
 #X obj 703 572 pack;
 #X msg 738 629 \$2 \$3 \$1;
 #X obj 459 310 # +;
-#X obj 554 250 gf/selector;
-#X obj 554 269 gf/error #many: no method for '%s';
+#X obj 624 250 gf/selector;
+#X obj 624 269 gf/error #many: no method for '%s';
 #N canvas 0 0 431 252 to 0;
 #X obj 3 123 list split 2;
 #X obj 3 66 t a a;
@@ -96,8 +96,8 @@
 #X connect 7 0 5 0;
 #X connect 7 1 5 1;
 #X connect 8 0 3 0;
-#X restore 274 344 pd to;
-#X obj 416 250 route2 grid list float;
+#X restore 275 344 pd to;
+#X obj 486 250 route2 grid list float;
 #X obj 595 661 #store ( \$2 \$3 #);
 #X obj 659 638 t a;
 #X obj 703 550 div \$3;
@@ -105,9 +105,12 @@
 #N canvas 0 0 450 300 big 0;
 #X obj 19 18 inlet;
 #X obj 19 269 outlet;
-#X msg 19 37 list 0-0 0-1 0-2 0-3 0-4 0-5 1-0 1-1 1-2 1-3 1-4 1-5 2-0
-2-1 2-2 2-3 2-4 2-5 3-0 3-1 3-2 3-3 3-4 3-5 4-0 4-1 4-2 4-3 4-4 4-5
-;
+#X msg 19 37 list 0-0 0-1 0-2 0-3 0-4 0-5 0-6 1-0 1-1 1-2 1-3 1-4 1-5
+1-6 2-0 2-1 2-2 2-3 2-4 2-5 2-6 3-0 3-1 3-2 3-3 3-4 3-5 3-6 4-0 4-1
+4-2 4-3 4-4 4-5 4-6 5-0 5-1 5-2 5-3 5-4 5-5 5-6 6-0 6-1 6-2 6-3 6-4
+6-5 6-6 7-0 7-1 7-2 7-3 7-4 7-5 7-6 8-0 8-1 8-2 8-3 8-4 8-5 8-6 9-0
+9-1 9-2 9-3 9-4 9-5 9-6 10-0 10-1 10-2 10-3 10-4 10-5 10-6 11-0 11-1
+11-2 11-3 11-4 11-5 11-6 12-0 12-1 12-2 12-3 12-4 12-5 12-6;
 #X connect 0 0 2 0;
 #X connect 2 0 1 0;
 #X restore 595 474 pd big messagebox;
@@ -156,7 +159,6 @@
 #X connect 18 1 3 0;
 #X connect 18 1 0 0;
 #X restore 697 333 pd create-boxes;
-#X obj 230 250 route delegate to bang bgcolor;
 #X obj 335 459 s \$0-rect;
 #X msg 335 400 color \$1;
 #X obj 341 439 s \$0-rect2;
@@ -236,50 +238,58 @@
 #X obj 670 352 symbol \$0-recv-0-0;
 #X obj 670 409 #fold inv+ \, seed (0 0);
 #X obj 670 390 #redim (2 2);
-#N canvas 0 0 452 254 position-boxes 0;
-#X obj 13 87 #for (0 0) ( \$2 \$3 ) (1 1);
-#X obj 13 106 #import (2);
-#X obj 13 125 #to_list;
-#X obj 87 108 inlet;
-#X obj 13 144 t a a;
-#X obj 13 163 #join;
-#X obj 49 144 # *;
-#X obj 49 163 # + 4;
-#X obj 13 182 #to_list;
-#X obj 13 22 inlet;
-#X obj 13 220 outlet;
-#X msg 13 201 list \$1 \$2 pos \$4 \$3;
-#X obj 87 127 #reverse;
-#X obj 13 41 t b b;
-#X obj 186 58 list append \$2 \$3;
-#X obj 186 96 # + 4;
-#X obj 186 115 # + 4;
-#X obj 186 134 outlet;
-#X obj 186 77 # *;
+#N canvas 0 0 473 297 position-boxes 0;
+#X obj 13 137 #for (0 0) ( \$2 \$3 ) (1 1);
+#X obj 13 156 #import (2);
+#X obj 13 175 #to_list;
+#X obj 13 23 inlet;
+#X obj 13 194 t a a;
+#X obj 13 213 #join;
+#X obj 49 194 # *;
+#X obj 49 213 # + 4;
+#X obj 13 232 #to_list;
+#X obj 13 270 outlet;
+#X msg 13 251 list \$1 \$2 pos \$4 \$3;
+#X obj 171 25 inlet;
+#X text 208 24 spacing;
+#X obj 13 42 # +;
+#X text 50 22 element size (hot);
+#X obj 100 59 #print z;
+#X obj 13 61 t a a;
+#X obj 186 127 # * ( \$2 \$3 );
+#X obj 13 105 #finished;
+#X obj 186 165 # + 8;
+#X text 222 165 borders twice;
+#X obj 186 146 # -;
+#X obj 186 184 #to_l;
+#X obj 186 203 outlet;
 #X connect 0 0 1 0;
 #X connect 1 0 2 0;
 #X connect 2 0 4 0;
-#X connect 3 0 12 0;
+#X connect 3 0 13 0;
 #X connect 4 0 5 0;
 #X connect 4 1 6 0;
 #X connect 5 0 8 0;
 #X connect 6 0 7 0;
 #X connect 7 0 5 1;
-#X connect 8 0 11 0;
-#X connect 9 0 13 0;
-#X connect 11 0 10 0;
-#X connect 12 0 6 1;
-#X connect 12 0 18 1;
-#X connect 13 0 0 0;
-#X connect 13 1 14 0;
-#X connect 14 0 18 0;
-#X connect 15 0 16 0;
-#X connect 16 0 17 0;
-#X connect 18 0 15 0;
-#X restore 649 446 pd position-boxes;
+#X connect 8 0 10 0;
+#X connect 10 0 9 0;
+#X connect 11 0 13 1;
+#X connect 11 0 21 1;
+#X connect 13 0 15 0;
+#X connect 13 0 16 0;
+#X connect 16 0 18 0;
+#X connect 16 1 17 0;
+#X connect 16 1 6 1;
+#X connect 17 0 21 0;
+#X connect 18 0 0 0;
+#X connect 19 0 22 0;
+#X connect 21 0 19 0;
+#X connect 22 0 23 0;
+#X restore 742 480 pd position-boxes;
 #X obj 649 333 t b b b;
-#X obj 748 484 s \$0-yeault;
-#N canvas 0 0 409 225 resize-gop 1;
+#X obj 855 543 s \$0-yeault;
+#N canvas 0 0 409 225 resize-gop 0;
 #X obj 15 161 outlet;
 #X obj 15 123 #to_list;
 #X msg 15 142 coords 0 -1 1 1 \$2 \$1 3 0 0;
@@ -303,14 +313,23 @@
 #X connect 11 0 1 0;
 #X connect 11 0 5 0;
 #X connect 11 0 10 0;
-#X restore 748 465 pd resize-gop;
-#X connect 0 0 32 0;
+#X restore 855 524 pd resize-gop;
+#X obj 230 250 route delegate to bang bgcolor spacing;
+#X obj 670 428 #reverse;
+#X obj 807 337 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X obj 721 225 t b a;
+#X obj 855 496 list;
+#X obj 855 477 t b a;
+#X obj 670 447 #to_l;
+#X obj 706 447 t b a;
+#X connect 0 0 61 0;
 #X connect 2 0 10 0;
 #X connect 2 0 17 0;
 #X connect 2 1 9 0;
 #X connect 3 0 29 0;
 #X connect 6 0 29 0;
-#X connect 6 1 59 0;
+#X connect 6 1 58 0;
 #X connect 6 2 3 0;
 #X connect 8 0 23 0;
 #X connect 9 0 16 0;
@@ -346,39 +365,49 @@
 #X connect 30 0 8 1;
 #X connect 30 1 6 0;
 #X connect 31 0 29 0;
-#X connect 32 0 7 0;
-#X connect 32 1 23 0;
-#X connect 32 2 25 0;
-#X connect 32 3 34 0;
-#X connect 32 4 24 0;
-#X connect 34 0 37 0;
-#X connect 36 0 7 0;
-#X connect 37 0 33 0;
-#X connect 37 0 35 0;
-#X connect 40 0 41 0;
-#X connect 41 0 46 0;
-#X connect 41 1 36 0;
-#X connect 42 0 49 0;
-#X connect 45 0 43 0;
-#X connect 46 0 37 0;
-#X connect 47 0 30 0;
-#X connect 48 0 47 0;
-#X connect 49 0 50 0;
-#X connect 49 1 50 1;
-#X connect 49 2 50 2;
-#X connect 49 3 51 0;
-#X connect 50 0 43 1;
-#X connect 50 0 48 0;
-#X connect 51 1 52 0;
-#X connect 53 0 59 0;
-#X connect 54 0 57 0;
-#X connect 55 0 54 0;
-#X connect 56 0 58 1;
-#X connect 57 0 56 0;
-#X connect 58 0 23 0;
-#X connect 58 1 61 0;
-#X connect 59 0 58 0;
-#X connect 59 1 55 0;
-#X connect 59 2 31 0;
-#X connect 61 0 60 0;
-#X coords 0 -1 1 1 8.718e+08 18 2 0 0;
+#X connect 33 0 36 0;
+#X connect 35 0 7 0;
+#X connect 36 0 32 0;
+#X connect 36 0 34 0;
+#X connect 39 0 40 0;
+#X connect 40 0 45 0;
+#X connect 40 1 35 0;
+#X connect 41 0 48 0;
+#X connect 44 0 42 0;
+#X connect 45 0 36 0;
+#X connect 46 0 30 0;
+#X connect 47 0 46 0;
+#X connect 48 0 49 0;
+#X connect 48 1 49 1;
+#X connect 48 2 49 2;
+#X connect 48 3 50 0;
+#X connect 49 0 42 1;
+#X connect 49 0 47 0;
+#X connect 50 1 51 0;
+#X connect 52 0 58 0;
+#X connect 53 0 56 0;
+#X connect 54 0 53 0;
+#X connect 55 0 62 0;
+#X connect 56 0 55 0;
+#X connect 57 0 23 0;
+#X connect 57 1 66 0;
+#X connect 58 1 54 0;
+#X connect 58 2 31 0;
+#X connect 60 0 59 0;
+#X connect 61 0 7 0;
+#X connect 61 1 23 0;
+#X connect 61 2 25 0;
+#X connect 61 3 33 0;
+#X connect 61 4 64 0;
+#X connect 61 5 24 0;
+#X connect 62 0 67 0;
+#X connect 63 0 54 0;
+#X connect 64 0 54 0;
+#X connect 64 1 57 1;
+#X connect 65 0 60 0;
+#X connect 66 0 65 0;
+#X connect 66 1 65 1;
+#X connect 67 0 68 0;
+#X connect 68 0 65 0;
+#X connect 68 1 57 0;
+#X coords 0 -1 1 1 155 287 2 0 0;

Modified: trunk/doc/flow_classes/#many-help.pd
==============================================================================
--- trunk/doc/flow_classes/#many-help.pd (original)
+++ trunk/doc/flow_classes/#many-help.pd Sat Jul 31 19:24:15 2010
@@ -4,79 +4,70 @@
 #X obj 6 88 #store;
 #X msg 6 52 list \$1;
 #X obj 0 0 doc_h;
-#X obj 0 1182 doc_f;
+#X obj 0 1116 doc_f;
 #X floatatom 6 34 5 0 0 0 - - -;
 #X msg 58 52 load lucida-typewriter-12.grid;
 #X obj 6 107 #fold +;
 #X obj 14 468 doc_cc 0;
 #X obj 14 490 doc_cc 1;
 #X obj 14 512 doc_cc 2;
-#X obj 14 534 doc_cc 3;
-#X obj 14 578 doc_cc 4;
 #X obj 97 468 doc_m c0 symbol;
 #X text 232 468 class name (normally tgl);
 #X obj 97 490 doc_m c1 float;
 #X obj 97 512 doc_m c2 float;
-#X obj 97 534 doc_m c3 float;
-#X obj 97 578 doc_m c4 float;
 #X text 232 490 number of rows;
 #X text 232 512 number of columns;
-#X text 232 534 size of a row (height of widget + bottom padding);
-#X text 232 578 size of a column (width of widget + right padding)
-;
-#X obj 3 676 doc_i 2;
-#X obj 3 969 doc_o 2;
-#X obj 14 706 doc_ii 0;
-#X obj 14 937 doc_ii 1;
-#X obj 14 999 doc_oo 0;
-#X obj 14 1034 doc_oo 1;
-#X obj 97 937 doc_m i1 <none>;
-#X obj 97 706 doc_m i0 grid;
+#X obj 3 544 doc_i 2;
+#X obj 3 903 doc_o 2;
+#X obj 14 574 doc_ii 0;
+#X obj 14 871 doc_ii 1;
+#X obj 14 933 doc_oo 0;
+#X obj 14 968 doc_oo 1;
+#X obj 97 871 doc_m i1 <none>;
+#X obj 97 574 doc_m i0 grid;
 #X obj 6 126 #cast i;
 #X obj 254 277 # ^ 1;
-#X obj 97 999 doc_m o0 grid;
-#X text 232 999 the complete grid is output every time any element
+#X obj 97 933 doc_m o0 grid;
+#X text 232 933 the complete grid is output every time any element
 in it gets changed;
 #X floatatom 391 305 5 0 0 0 - - -;
 #X floatatom 425 305 5 0 0 0 - - -;
 #X msg 360 334 to \$1 \$2 color 15 22 0;
-#X obj 97 1034 doc_m o1 list;
-#X obj 97 854 doc_m i0 delegate;
-#X obj 97 889 doc_m i0 to;
-#X text 232 854 sends \$1 \, \$2 \, \$3 \, ... as a message to each
+#X obj 97 968 doc_m o1 list;
+#X obj 97 722 doc_m i0 delegate;
+#X obj 97 823 doc_m i0 to;
+#X text 232 722 sends \$1 \, \$2 \, \$3 \, ... as a message to each
 contained gui-object. \$1 becomes selector \, while \$2 becomes \$1
 \, etc.;
-#X text 232 889 sends \$3 \, \$4 \, \$5 \, ... as a message to one
+#X text 232 823 sends \$3 \, \$4 \, \$5 \, ... as a message to one
 contained gui-object \, whose position is specified by \$1 (row) and
 \$2 (column). \$3 becomes selector \, while \$4 becomes \$1 \, etc.
 ;
 #X obj 254 52 #many tgl 13 7;
-#X text 232 1034 \$1=row \, \$2=column \, \$3=new_state of element
-being modified;
+#X text 232 968 \$1=row \, \$2=column \, \$3=new_state of element being
+modified;
 #X obj 391 286 unpack 0 0 0;
 #X floatatom 460 305 5 0 0 0 - - -;
-#X text 232 937 (for future use);
+#X text 232 871 (for future use);
 #X text 402 353 will colour only toggles clicked;
-#X text 232 1091 this outlet's whole behaviour might change anytime
+#X text 232 1025 this outlet's whole behaviour might change anytime
 in the future until further notice. please help matju and pboivin define
 the protocol for customisation extensions to this object-class.;
-#X obj 3 1162 doc_also;
-#X text 232 556 default: 15 pixels;
-#X text 232 600 default: 15 pixels;
-#X text 232 706 stuff to put in (all widgets at once). This has to
+#X obj 3 1096 doc_also;
+#X text 232 574 stuff to put in (all widgets at once). This has to
 be a two-dimensional grid. Any smaller or bigger grid will cause problems
 (and ought to be rejected... one day).;
-#X text 232 1056 currently output after the outlet 0 message has been
+#X text 232 990 currently output after the outlet 0 message has been
 sent \, but won't stay like that in the future.;
 #X msg 92 234 bgcolor \$1;
 #X obj 92 215 #to_iem;
 #X obj 92 158 #color;
 #X obj 92 120 loadbang;
 #X msg 92 139 0 144 192;
-#X obj 97 754 doc_m i0 bgcolor;
-#X obj 232 828 doc_link #to_iem;
-#X obj 103 1162 #to_iem;
-#X text 232 754 background colour in IEM24 format. the background is
+#X obj 97 622 doc_m i0 bgcolor;
+#X obj 232 696 doc_link #to_iem;
+#X obj 103 1096 #to_iem;
+#X text 232 622 background colour in IEM24 format. the background is
 all the spacing between the boxes as well as the spacing around the
 outer boxes (the inner border of [#many]). In the above example \,
 there is no spacing between the boxes \, thus the border is only the
@@ -84,7 +75,7 @@
 #X obj 3 386 doc_section Special;
 #X text 82 411 Right-Click Properties : opens;
 #X obj 271 412 doc_link #many-prop;
-#X obj 157 1162 doc_link #many-prop;
+#X obj 157 1096 doc_link #many-prop;
 #X obj 254 296 s \$0-b;
 #X obj 379 33 r \$0-b;
 #X obj 254 33 r \$0-a;
@@ -94,58 +85,59 @@
 #X obj 260 258 print L;
 #X obj 46 352 namecanvas foo;
 #X msg 46 313 \; foo startmotion;
-#X obj 3 438 doc_c 7;
-#X obj 14 622 doc_cc 5;
-#X obj 14 644 doc_cc 6;
-#X obj 97 622 doc_m c5 float;
-#X obj 97 644 doc_m c6 float;
-#X text 232 622 FOR FUTURE USE;
-#X text 232 644 FOR FUTURE USE;
-#X obj 379 52 #many tgl 13 7;
+#X obj 3 438 doc_c 3;
+#X obj 97 757 doc_m i0 spacing;
+#X text 232 757 sets the amount of vertical spacing to \$1;
+#X text 232 779 sets the amount of horizontal spacing to \$2;
+#X text 232 801 then resizes the GOP and repositions all components.
+;
+#X obj 211 362 s \$0-b;
+#X floatatom 211 325 5 0 0 0 - - -;
+#X msg 211 343 spacing \$1;
+#X obj 378 57 #many tgl 13 7;
 #X connect 0 0 7 0;
 #X connect 1 0 2 1;
 #X connect 2 0 8 0;
 #X connect 3 0 2 0;
 #X connect 6 0 3 0;
 #X connect 7 0 1 0;
-#X connect 8 0 32 0;
-#X connect 14 1 15 0;
-#X connect 16 1 20 0;
-#X connect 17 1 21 0;
-#X connect 18 1 22 0;
-#X connect 18 1 52 0;
-#X connect 19 1 23 0;
-#X connect 19 1 53 0;
-#X connect 30 1 48 0;
-#X connect 31 1 54 0;
-#X connect 32 0 44 0;
-#X connect 33 0 69 0;
-#X connect 34 1 35 0;
-#X connect 38 0 73 0;
-#X connect 39 1 45 0;
-#X connect 39 1 55 0;
-#X connect 39 1 50 0;
-#X connect 40 1 42 0;
-#X connect 41 1 43 0;
-#X connect 44 0 33 0;
-#X connect 44 0 75 0;
-#X connect 44 1 38 0;
-#X connect 44 1 46 0;
-#X connect 44 1 74 0;
-#X connect 46 0 36 0;
-#X connect 46 1 37 0;
-#X connect 46 2 47 0;
-#X connect 51 1 63 0;
-#X connect 51 1 68 0;
-#X connect 56 0 69 0;
-#X connect 56 0 72 0;
-#X connect 57 0 56 0;
-#X connect 58 0 57 0;
-#X connect 59 0 60 0;
-#X connect 60 0 58 0;
-#X connect 61 1 64 0;
-#X connect 61 1 62 0;
-#X connect 70 0 85 0;
-#X connect 71 0 44 0;
-#X connect 81 1 83 0;
-#X connect 82 1 84 0;
+#X connect 8 0 26 0;
+#X connect 12 1 13 0;
+#X connect 14 1 16 0;
+#X connect 15 1 17 0;
+#X connect 24 1 42 0;
+#X connect 25 1 46 0;
+#X connect 26 0 38 0;
+#X connect 27 0 61 0;
+#X connect 28 1 29 0;
+#X connect 32 0 65 0;
+#X connect 33 1 39 0;
+#X connect 33 1 47 0;
+#X connect 33 1 44 0;
+#X connect 34 1 36 0;
+#X connect 35 1 37 0;
+#X connect 38 0 27 0;
+#X connect 38 0 67 0;
+#X connect 38 1 32 0;
+#X connect 38 1 40 0;
+#X connect 38 1 66 0;
+#X connect 40 0 30 0;
+#X connect 40 1 31 0;
+#X connect 40 2 41 0;
+#X connect 45 1 55 0;
+#X connect 45 1 60 0;
+#X connect 48 0 61 0;
+#X connect 48 0 64 0;
+#X connect 49 0 48 0;
+#X connect 50 0 49 0;
+#X connect 51 0 52 0;
+#X connect 52 0 50 0;
+#X connect 53 1 56 0;
+#X connect 53 1 54 0;
+#X connect 62 0 78 0;
+#X connect 63 0 38 0;
+#X connect 71 1 72 0;
+#X connect 71 1 73 0;
+#X connect 71 1 74 0;
+#X connect 76 0 77 0;
+#X connect 77 0 75 0;



More information about the Gridflow-cvs mailing list