aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-05 07:44:51 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-05 07:44:51 +0000
commit30546491b6eaf5c0228d202312a1a4e18211b711 (patch)
tree956041a5ca4df0066397b88cee47d6fcd2dd7cbe
parent5140196012f3adb5788b0c0533fe60ae5befdd5b (diff)
made basic OSC routing example, could use some work
svn path=/trunk/; revision=5049
-rw-r--r--doc/tutorials/networking/06.routing_OSC.pd51
1 files changed, 51 insertions, 0 deletions
diff --git a/doc/tutorials/networking/06.routing_OSC.pd b/doc/tutorials/networking/06.routing_OSC.pd
new file mode 100644
index 00000000..c858a17f
--- /dev/null
+++ b/doc/tutorials/networking/06.routing_OSC.pd
@@ -0,0 +1,51 @@
+#N canvas 158 45 644 464 10;
+#X obj 8 10 cnv 15 400 40 empty empty routing_OSC 20 12 0 24 -228992
+-66577 0;
+#X text 13 61 OSC messages have two parts \, the identifier and the
+data. The idenifier is made up of symbols separated by slashes ("/").
+[OSCroute] is similar to [route] but is specifically for OSC messages.
+;
+#X obj 24 168 OSCroute /test;
+#X obj 24 223 OSCroute /message;
+#X obj 35 193 print first;
+#X obj 23 272 symbol;
+#X symbolatom 23 296 0 0 0 0 - - -;
+#X obj 362 272 symbol;
+#X symbolatom 362 296 0 0 0 0 - - -;
+#X obj 363 168 route test;
+#X obj 363 223 route message;
+#X obj 35 246 print second;
+#X msg 25 123 /test/message OSCdata;
+#X msg 363 124 test message pddata;
+#X obj 374 193 print 1st;
+#X obj 374 247 print 2nd;
+#X msg 33 145 /test/message otherOSCdata;
+#X msg 378 145 test message otherpddata;
+#X text 17 321 Like [route] \, [OSCroute] outputs anything that didn't
+match out of the right-most outlet. This includes patterns not starting
+with a / and patterns starting with a number.;
+#X obj 165 435 bng 15 250 50 0 empty empty match 18 8 0 12 -262144
+-1 -1;
+#X obj 257 435 bng 15 250 50 0 empty empty unmatched 18 8 0 12 -262144
+-1 -1;
+#X msg 204 375 test/message data;
+#X msg 42 376 /test/message data;
+#X obj 165 413 OSCroute /test;
+#X connect 2 0 3 0;
+#X connect 2 0 4 0;
+#X connect 3 0 5 0;
+#X connect 3 0 11 0;
+#X connect 5 0 6 0;
+#X connect 7 0 8 0;
+#X connect 9 0 10 0;
+#X connect 9 0 14 0;
+#X connect 10 0 7 0;
+#X connect 10 0 15 0;
+#X connect 12 0 2 0;
+#X connect 13 0 9 0;
+#X connect 16 0 2 0;
+#X connect 17 0 9 0;
+#X connect 21 0 23 0;
+#X connect 22 0 23 0;
+#X connect 23 0 19 0;
+#X connect 23 1 20 0;