From ed219c52beb1d6f811a644b85e8f46b297889e21 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 5 May 2006 07:52:57 +0000 Subject: super quick OSC wildcard example svn path=/trunk/; revision=5050 --- .../networking/07.matching_with_wildcards.pd | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 doc/tutorials/networking/07.matching_with_wildcards.pd (limited to 'doc/tutorials/networking') 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; -- cgit v1.2.1