[Gridflow-cvs] [svn] commit: r5456 - in /trunk/doc/flow_classes: args-demo.pd args-help.pd

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Thu Apr 15 21:31:36 EDT 2010


Author: matju
Date: Thu Apr 15 21:31:36 2010
New Revision: 5456

Log:
...

Modified:
    trunk/doc/flow_classes/args-demo.pd
    trunk/doc/flow_classes/args-help.pd

Modified: trunk/doc/flow_classes/args-demo.pd
==============================================================================
--- trunk/doc/flow_classes/args-demo.pd (original)
+++ trunk/doc/flow_classes/args-demo.pd Thu Apr 15 21:31:36 2010
@@ -2,27 +2,31 @@
 #X obj 172 20 args hello (world a 42) *;
 #X obj 63 176 print args;
 #X obj 38 115 inlet;
-#X obj 38 333 outlet;
 #X obj 38 134 t a;
 #X obj 38 205 route temperature pression etc;
-#X obj 341 54 display;
-#X obj 268 90 display;
-#X text 345 38 rest of arguments (*);
+#X obj 319 74 display;
+#X obj 245 110 display;
+#X text 323 58 rest of arguments (*);
 #X text 37 224 do whatever you want with those args;
 #X obj 246 265 t a;
 #X text 253 246 anything else coming from first inlet or named args
 ;
-#X obj 173 125 display;
-#X text 177 106 hello;
-#X text 272 71 world;
-#X floatatom 46 263 5 0 0 0 - - -;
-#X floatatom 109 263 5 0 0 0 - - -;
-#X connect 0 0 12 0;
-#X connect 0 1 7 0;
-#X connect 0 2 6 0;
-#X connect 2 0 4 0;
-#X connect 4 0 5 0;
-#X connect 4 0 1 0;
-#X connect 5 0 15 0;
-#X connect 5 1 16 0;
-#X connect 5 3 10 0;
+#X obj 172 145 display;
+#X floatatom 38 263 5 0 0 0 - - -;
+#X floatatom 97 263 5 0 0 0 - - -;
+#X text 249 91 world: defaults to 42;
+#X text 176 126 hello: mandatory argument;
+#X obj 246 284 display;
+#X text 34 70 mandatory left-inlet;
+#X text 33 84 for using [args] with;
+#X text 33 96 a comma;
+#X connect 0 0 11 0;
+#X connect 0 1 6 0;
+#X connect 0 2 5 0;
+#X connect 2 0 3 0;
+#X connect 3 0 4 0;
+#X connect 3 0 1 0;
+#X connect 4 0 12 0;
+#X connect 4 1 13 0;
+#X connect 4 3 9 0;
+#X connect 9 0 16 0;

Modified: trunk/doc/flow_classes/args-help.pd
==============================================================================
--- trunk/doc/flow_classes/args-help.pd (original)
+++ trunk/doc/flow_classes/args-help.pd Thu Apr 15 21:31:36 2010
@@ -1,25 +1,25 @@
-#N canvas 601 21 632 695 10;
-#X text 354 107 demo default args;
-#X text 354 127 demo rest of args;
-#X text 354 167 demo missing args;
-#X text 354 147 demo comma args;
+#N canvas 594 0 632 695 10;
+#X text 308 137 demo default args;
+#X text 308 157 demo rest of args;
+#X text 308 197 demo missing args;
+#X text 308 177 demo comma args;
 #X obj 0 0 doc_h;
-#X obj 3 403 doc_i 1;
-#X obj 3 203 doc_c n;
-#X obj 14 433 doc_ii 0;
-#X obj 3 581 doc_o 1..;
-#X obj 14 233 doc_cc any;
-#X obj 97 233 doc_m cany symbol;
-#X text 232 233 "*" represents the rest of arguments;
-#X text 232 254 other symbols represent mandatory arguments;
-#X obj 0 663 doc_f;
-#X obj 14 611 doc_oo any;
-#X obj 97 611 doc_m oany <atom>;
-#X text 232 611 output of single argument;
-#X text 232 632 output of rest of arguments \, if last arg of [args]
+#X obj 3 425 doc_i 1;
+#X obj 3 223 doc_c n;
+#X obj 14 455 doc_ii 0;
+#X obj 3 613 doc_o 1..;
+#X obj 14 253 doc_cc any;
+#X obj 97 253 doc_m cany symbol;
+#X text 232 253 "*" represents the rest of arguments;
+#X text 232 275 other symbols represent mandatory arguments;
+#X obj 0 697 doc_f;
+#X obj 14 643 doc_oo any;
+#X obj 97 643 doc_m oany <atom>;
+#X text 232 643 output of single argument;
+#X text 232 665 output of rest of arguments \, if last arg of [args]
 is a "*".;
-#X obj 97 632 doc_m oany <list>;
-#X text 232 454 sends one message per outlet right-to-left. if there
+#X obj 97 665 doc_m oany <list>;
+#X text 232 477 sends one message per outlet right-to-left. if there
 is a wildcard (*) as the last argument \, any extra arguments go there
 as a list message. Then for any missing arguments that have default
 values \, the default values are sent \, right to left. Then for each
@@ -27,32 +27,35 @@
 its own outlet. Finally \, each init-message (comma-separated) is parsed
 from the arguments and sent (magically) to the first inlet of the abstraction
 itself.;
-#X obj 97 275 doc_m cany nested-list;
-#X text 232 275 represent optional arguments as nested-lists;
-#X text 232 296 inside the nested-list \, \$1 must be the name of the
+#X text 232 332 represent optional arguments as nested-lists;
+#X text 232 354 inside the nested-list \, \$1 must be the name of the
 argument \, \$2 must be "a" (the single letter) \, and \$3 must be
 the default value. the "a" is actually for future use (type-checking).
 ;
-#X text 97 364 the star can only occur once and at the end \, and all
-optionals must follow all mandatories.;
-#X obj 12 126 args-demo pommes poires ananas biscuits-soda;
-#X obj 12 166 args-demo;
-#X obj 12 106 args-demo blah;
-#X obj 12 146 args-demo dorval \, temperature -18 \, pression 99.5
-;
+#X text 232 297 the star can only occur once and at the end \, and
+all optionals must follow all mandatories.;
+#X obj 12 156 args-demo pommes poires ananas biscuits-soda;
 #X obj 12 37 cnv 15 100 25 empty empty Warning: 0 8 0 14 -262144 -258113
 0;
-#X text 83 37 When using [args] inside a patch that also uses a [loadbang]
+#X obj 97 477 doc_m i0 loadbang;
+#X obj 97 455 doc_m i0 bang;
+#X text 232 455 Same as loadbang.;
+#X text 103 37 When using [args] inside a patch that also uses a [loadbang]
 for stuff that depends on those arguments \, you need to make sure
-that the [loadbang] in question is created AFTER [args].;
-#X obj 97 454 doc_m i0 loadbang;
-#X obj 97 433 doc_m i0 bang;
-#X text 232 433 Same as loadbang.;
+that the [loadbang] in question is created AFTER [args]. This is the
+same problem as what happens with the order of multiple [loadbang]
+objects \, because [args] is implicitly a [loadbang] too.;
+#X obj 97 332 doc_m cany <list>;
+#X obj 12 196 args-demo;
+#X obj 12 136 args-demo blah;
+#X obj 12 176 args-demo dorval \, temperature -18 \, pression 99.5
+;
 #X connect 10 1 11 0;
 #X connect 10 1 12 0;
+#X connect 10 1 22 0;
 #X connect 15 1 16 0;
 #X connect 18 1 17 0;
-#X connect 20 1 21 0;
-#X connect 20 1 22 0;
-#X connect 30 1 19 0;
-#X connect 31 1 32 0;
+#X connect 25 1 19 0;
+#X connect 26 1 27 0;
+#X connect 29 1 20 0;
+#X connect 29 1 21 0;



More information about the Gridflow-cvs mailing list