aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-05 07:52:57 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-05 07:52:57 +0000
commited219c52beb1d6f811a644b85e8f46b297889e21 (patch)
tree7a3e4b46fdc9321a02aeeafa46988731fc1f66b9
parent30546491b6eaf5c0228d202312a1a4e18211b711 (diff)
super quick OSC wildcard example
svn path=/trunk/; revision=5050
-rw-r--r--doc/tutorials/networking/07.matching_with_wildcards.pd43
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/tutorials/networking/07.matching_with_wildcards.pd b/doc/tutorials/networking/07.matching_with_wildcards.pd
new file mode 100644
index 00000000..4174b967
--- /dev/null
+++ b/doc/tutorials/networking/07.matching_with_wildcards.pd
@@ -0,0 +1,43 @@
+#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
+-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;