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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Mon Nov 2 17:13:11 EST 2009


Author: matju
Date: Mon Nov  2 17:13:10 2009
New Revision: 4706

Log:
new [args] magic

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 Mon Nov  2 17:13:10 2009
@@ -1,6 +1,6 @@
 #N canvas 0 0 613 300 10;
 #X obj 152 20 args hello (world a 42) *;
-#X obj 322 39 print args;
+#X obj 43 96 print args;
 #X obj 152 3 bng 15 250 50 0 empty empty empty 17 7 0 10 -24198 -1
 -1;
 #X obj 18 35 inlet;
@@ -21,8 +21,8 @@
 #X connect 0 1 8 0;
 #X connect 0 2 7 0;
 #X connect 0 3 5 0;
-#X connect 0 3 1 0;
 #X connect 2 0 0 0;
 #X connect 3 0 5 0;
 #X connect 5 0 6 0;
+#X connect 5 0 1 0;
 #X connect 6 3 11 0;

Modified: trunk/doc/flow_classes/args-help.pd
==============================================================================
--- trunk/doc/flow_classes/args-help.pd (original)
+++ trunk/doc/flow_classes/args-help.pd Mon Nov  2 17:13:10 2009
@@ -1,22 +1,13 @@
-#N canvas 692 0 568 649 10;
+#N canvas 692 0 555 549 10;
 #X text 354 70 demo default args;
 #X text 354 90 demo rest of args;
 #X text 354 130 demo missing args;
 #X obj 12 89 args-demo pommes poires ananas biscuits-soda;
-#X text 200 588 Any comma-arguments from the parent objectbox;
 #X obj 12 129 args-demo;
 #X obj 12 69 args-demo blah;
 #X obj 12 109 args-demo dorval \, temperature -18 \, pression 99.5
 ;
 #X text 354 110 demo comma args;
-#X text 200 325 sends one message per outlet right-to-left except the
-last outlet. 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 present argument that is not extra \, that argument
-will be sent on its own outlet. Finally \, each comma-message is parsed
-from the arguments and sent to the last outlet \, which should be connected
-with a [t a] just like the first [inlet].;
 #X text 200 227 represent optional arguments;
 #X text 120 257 where the star can only occur once and at the end \,
 and all optionals must follow all mandatories.;
@@ -24,25 +15,31 @@
 #X obj 3 293 doc_i 1;
 #X obj 3 153 doc_c n;
 #X obj 14 325 doc_ii 0;
-#X obj 3 466 doc_o 1..;
-#X obj 14 554 doc_oo nonlast;
-#X obj 14 580 doc_oo last;
-#X text 200 554 argument output;
-#X text 38 492 outlet activation order is from next-to-last to first
-(all normal arguments) and then \, optionally \, the last outlet \,
-any number of times (for atttributes and other comma-arguments);
-#X obj 97 325 doc_m i0 bang;
-#X obj 97 554 doc_m ononlast ATOM;
-#X obj 97 588 doc_m olast MESSAGE;
+#X obj 3 456 doc_o 1..;
+#X obj 98 325 doc_m i0 bang;
 #X obj 14 183 doc_cc any;
 #X obj 97 183 doc_m cany symbol;
 #X text 200 183 "*" represents the rest of arguments;
 #X text 200 205 other symbols represent mandatory arguments;
 #X obj 97 227 doc_m cany nested-list;
-#X obj 0 620 doc_f;
-#X connect 21 1 9 0;
-#X connect 22 1 19 0;
-#X connect 23 1 4 0;
-#X connect 25 1 26 0;
-#X connect 25 1 27 0;
-#X connect 28 1 10 0;
+#X obj 3 538 doc_f;
+#X obj 23 484 doc_oo any;
+#X obj 97 485 doc_m oany <atom>;
+#X text 200 485 output of single argument;
+#X text 196 504 output of rest of arguments \, if last arg of [args]
+is a "*".;
+#X obj 97 504 doc_m oany <list>;
+#X text 200 325 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
+present argument that is not extra \, that argument will be sent on
+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 connect 15 1 27 0;
+#X connect 17 1 18 0;
+#X connect 17 1 19 0;
+#X connect 20 1 8 0;
+#X connect 23 1 24 0;
+#X connect 26 1 25 0;



More information about the Gridflow-cvs mailing list