[PD-cvs] doc/tutorials/networking 08.wildcard_messages.pd,1.1,1.2

Hans-Christoph Steiner eighthave at users.sourceforge.net
Wed Aug 9 02:27:01 CEST 2006


Update of /cvsroot/pure-data/doc/tutorials/networking
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30649

Modified Files:
	08.wildcard_messages.pd 
Log Message:
added more examples

Index: 08.wildcard_messages.pd
===================================================================
RCS file: /cvsroot/pure-data/doc/tutorials/networking/08.wildcard_messages.pd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 08.wildcard_messages.pd	7 May 2006 22:50:38 -0000	1.1
--- 08.wildcard_messages.pd	9 Aug 2006 00:26:59 -0000	1.2
***************
*** 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;
--- 1,49 ----
! #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 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;





More information about the Pd-cvs mailing list