aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormescalinum <mescalinum@users.sourceforge.net>2009-09-13 16:02:10 +0000
committermescalinum <mescalinum@users.sourceforge.net>2009-09-13 16:02:10 +0000
commitc32da54436725487fb784119c8aec28080af843e (patch)
tree53cb6b63b3bd9a3e95bba2815b39ba4b1868ba35
parent69118070c6c46b2c097b8b2e6fd0870c634b7114 (diff)
explain how this thing works
svn path=/trunk/externals/tclpd/; revision=12331
-rw-r--r--dynroute-help.pd39
1 files changed, 23 insertions, 16 deletions
diff --git a/dynroute-help.pd b/dynroute-help.pd
index c337c2a..86d173e 100644
--- a/dynroute-help.pd
+++ b/dynroute-help.pd
@@ -1,19 +1,26 @@
-#N canvas 614 114 786 430 10;
-#X obj 102 189 dynroute 4;
-#X msg 73 63 apple red \, banana yellow \, pear green \, apple yellow
+#N canvas 1022 530 786 430 10;
+#X obj 93 268 dynroute 4;
+#X msg 41 147 apple red \, banana yellow \, pear green \, apple yellow
\, strawberry red;
-#X obj 80 131 list prepend;
-#X obj 100 230 print 0;
-#X obj 160 230 print 1;
-#X obj 220 230 print 2;
-#X obj 280 230 print 3;
-#X msg 236 104 clear \, add apple 0 \, add banana 1 \, add pear 2;
-#X msg 242 138 remove pear 2 \, add pear 0 \, add strawberry 2;
-#X connect 0 0 3 0;
-#X connect 0 1 4 0;
-#X connect 0 2 5 0;
-#X connect 0 3 6 0;
+#X obj 41 194 list prepend;
+#X msg 200 224 clear \, add apple 0 \, add banana 1 \, add pear 2;
+#X msg 206 258 remove pear 2 \, add pear 0 \, add strawberry 2;
+#X text 39 32 Dynamically route lists based on first element \, according
+to the mapping specified on right inlet. Creation argument (float)
+specifies how many outlet to have (including last outlet \, which is
+used for sending unmatching items);
+#X text 44 120 Test it with some data:;
+#X obj 93 379 print out1;
+#X obj 115 352 print out2;
+#X obj 137 325 print out3;
+#X obj 160 298 print other;
+#X text 256 293 <-- non-matching stuff is sent here;
+#X text 196 192 Change the mapping:;
+#X connect 0 0 7 0;
+#X connect 0 1 8 0;
+#X connect 0 2 9 0;
+#X connect 0 3 10 0;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
-#X connect 7 0 0 1;
-#X connect 8 0 0 1;
+#X connect 3 0 0 1;
+#X connect 4 0 0 1;