aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-08-09 00:26:59 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-08-09 00:26:59 +0000
commitcfb90943ab3499b63a39015d48e9518d27c0e78d (patch)
tree7b955f6eae589c893c9fb4eada3b6e1749d002ff
parente7152bc9308af397f54be36106bd654bea8c2464 (diff)
added more examples
svn path=/trunk/; revision=5521
-rw-r--r--doc/tutorials/networking/08.wildcard_messages.pd90
1 files changed, 48 insertions, 42 deletions
diff --git a/doc/tutorials/networking/08.wildcard_messages.pd b/doc/tutorials/networking/08.wildcard_messages.pd
index 4174b967..0f13f8d7 100644
--- a/doc/tutorials/networking/08.wildcard_messages.pd
+++ b/doc/tutorials/networking/08.wildcard_messages.pd
@@ -1,43 +1,49 @@
-#N canvas 129 112 644 464 10;
-#X obj 8 10 cnv 15 400 40 empty empty matching_with_wildcards 20 12
-0 24 -228992 -66577 0;
-#X text 10 69 OSC gives you a very useful feature which regular [route]
-does not: wildcards. Wildcards are characters that match any pattern.
-The * is the most common \, it means match any amount of any character:
-;
-#X obj 38 236 bng 15 250 50 0 empty empty match 18 8 0 12 -262144 -1
--1;
-#X obj 130 236 bng 15 250 50 0 empty empty unmatched 18 8 0 12 -262144
--1 -1;
-#X msg 30 134 /test/message data;
-#X obj 37 216 OSCroute /*;
-#X msg 56 185 /1/2/3 data;
-#X msg 56 159 /some/other/message 1 2 3;
-#X text 142 214 <-- notice the * in the pattern;
-#X text 320 347 <-- notice the * in the pattern;
-#X msg 212 278 /inst2/note B;
-#X msg 110 279 /inst1/note C;
-#X msg 229 319 /inst3/note F;
-#X obj 202 346 OSCroute /*;
-#X msg 219 298 /player3/note D;
-#X obj 274 366 bng 15 250 50 0 empty empty unmatched 18 8 0 12 -262144
--1 -1;
-#X obj 294 409 bng 15 250 50 0 empty empty unmatched 18 8 0 12 -262144
+#N canvas 235 112 656 476 10;
+#X obj 8 10 cnv 15 400 40 empty empty wildcard_messages 20 12 0 24
+-228992 -66577 0;
+#X text 300 212 <-- notice the * in the pattern;
+#X msg 162 154 /inst2/note B;
+#X msg 151 135 /inst1/note C;
+#X msg 172 175 /inst3/note F;
+#X obj 355 309 bng 15 250 50 0 empty empty unmatched 18 8 0 12 -262144
-1 -1;
-#X obj 202 388 OSCroute /note;
-#X obj 202 410 symbol;
-#X symbolatom 202 432 10 0 0 0 - - -;
-#X connect 4 0 5 0;
-#X connect 5 0 2 0;
-#X connect 5 1 3 0;
-#X connect 6 0 5 0;
-#X connect 7 0 5 0;
-#X connect 10 0 13 0;
-#X connect 11 0 13 0;
-#X connect 12 0 13 0;
-#X connect 13 0 17 0;
-#X connect 13 1 15 0;
-#X connect 14 0 13 0;
-#X connect 17 0 18 0;
-#X connect 17 1 16 0;
-#X connect 18 0 19 0;
+#X obj 64 378 symbol;
+#X symbolatom 64 400 10 0 0 0 - - -;
+#X obj 157 288 OSCroute /inst1 /inst2 /inst3;
+#X msg 199 213 /inst*/note F;
+#X obj 64 355 OSCroute /note;
+#X obj 172 379 symbol;
+#X symbolatom 172 401 10 0 0 0 - - -;
+#X obj 172 356 OSCroute /note;
+#X obj 282 379 symbol;
+#X symbolatom 282 401 10 0 0 0 - - -;
+#X obj 282 356 OSCroute /note;
+#X obj 64 418 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 172 418 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 282 418 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X text 11 70 With OSC \, its much more useful to put the wildcards
+in the messages that you are sending. In this example \, the wildcard
+allows one message to reach three instruments:;
+#X msg 220 250 /inst4/note F;
+#X text 322 249 <-- there is no /inst4 in [OSCroute];
+#X connect 2 0 8 0;
+#X connect 3 0 8 0;
+#X connect 4 0 8 0;
+#X connect 6 0 7 0;
+#X connect 7 0 17 0;
+#X connect 8 0 10 0;
+#X connect 8 1 13 0;
+#X connect 8 2 16 0;
+#X connect 8 3 5 0;
+#X connect 9 0 8 0;
+#X connect 10 0 6 0;
+#X connect 11 0 12 0;
+#X connect 12 0 18 0;
+#X connect 13 0 11 0;
+#X connect 14 0 15 0;
+#X connect 15 0 19 0;
+#X connect 16 0 14 0;
+#X connect 21 0 8 0;