From ede66ad78a3c06557c53b2c0b6ee014aa3418e03 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Wed, 11 Jul 2007 17:34:38 +0000 Subject: unpackOSC now simply outputs (through the right outlet) a delay in milliseconds when it receives a timetag, as the timetag itself is not useable inside pd. The delay is zero when the timetag is in the past. Help patches have been updated to match. Also corrected a mistake in packOSC.c timetag calculation. svn path=/trunk/externals/mrpeach/; revision=8008 --- osc/packOSC-help.pd | 71 ++++++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) (limited to 'osc/packOSC-help.pd') diff --git a/osc/packOSC-help.pd b/osc/packOSC-help.pd index 1747f30..11d9cdb 100755 --- a/osc/packOSC-help.pd +++ b/osc/packOSC-help.pd @@ -1,7 +1,7 @@ -#N canvas 0 366 1064 453 12; +#N canvas 0 430 1064 453 12; #X obj 72 393 udpsend; -#X msg 373 359 disconnect; -#X msg 161 359 connect 127.0.0.1 9997; +#X msg 102 368 disconnect; +#X msg 80 345 connect 127.0.0.1 9997; #X obj 72 296 packOSC; #X obj 72 428 tgl 15 0 empty empty 1=connected 20 8 0 8 -262144 -1 -1 1 1; @@ -14,26 +14,24 @@ of floats instead of directly connecting to the network; #X text 299 2 send a type-guessed message; #X text 596 201 send a type-forced message; -#X obj 652 417 routeOSC; -#X text 573 417 see also:; -#X msg 121 264 typetags \$1; -#X obj 121 247 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +#X obj 387 381 routeOSC; +#X text 308 380 see also:; +#X msg 242 264 typetags \$1; +#X obj 242 247 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; -#X text 228 264 typetags are on by default; -#X text 670 223 Useable types are:; -#X text 670 241 i: 32 bit integer; -#X text 670 259 f: 32-bit float; -#X text 670 277 s: string; +#X text 349 264 typetags are on by default; +#X text 722 218 Useable types are:; +#X text 722 236 i: 32 bit integer; +#X text 722 254 f: 32-bit float; +#X text 722 272 s: string; #X text 539 26 send a type-forced message; #X msg 164 27 sendtyped /test/one/two/three sis zz 88 T; #X msg 112 202 sendtyped /left/right TTiTIFNfisf 1.1 2.1 3.1 4.1 5.1 ; -#X text 670 295 T: true (no argument); -#X text 670 313 F: false (no argument); -#X text 670 331 I: infinitum (no argument); -#X obj 72 323 list prepend send; -#X obj 72 349 list trim; -#X text 670 348 N: Nil (no argument); +#X text 722 290 T: true (no argument); +#X text 722 308 F: false (no argument); +#X text 722 326 I: infinitum (no argument); +#X text 722 343 N: Nil (no argument); #X msg 115 225 bufsize 100; #X text 221 226 set buffer size (default is 64000 bytes); #X msg 83 84 prefix /test; @@ -43,22 +41,29 @@ of floats instead of directly connecting to the network; #X text 189 156 'send' prefix is not required; #X msg -37 105 [; #X msg -95 129 ]; -#X text 270 421 2007/07/05 Martin Peach; #X text 8 104 open a bundle; #X text -55 128 close bundle; #X msg 457 111 timetagoffset 0; #X msg 464 130 timetagoffset -1; #X text 602 110 send current time as timetag; -#X msg 472 149 timetagoffset 1e+07; #X text 494 169 (timetags are sent in bundle messages only); -#X text 680 148 current time plus 10 seconds; #X obj -95 71 t b a b; #X msg -95 48 /test 5 6 7; #X text 615 129 immediate time tag (default); +#X floatatom 130 323 5 0 0 0 - - -; +#X text 180 323 bundle depth; +#X obj 294 340 cnv 15 380 30 empty empty empty 20 12 0 14 -24198 -66577 +0; +#X text 270 421 2007/07/11 Martin Peach; +#X text 469 380 and http://opensoundcontrol.org/cnmat; +#X text 653 148 current time plus 1 second; +#X msg 472 149 timetagoffset 1e+06; +#X text 298 347 <- First open routeOSC-help \, then connect; #X connect 0 0 4 0; #X connect 1 0 0 0; #X connect 2 0 0 0; -#X connect 3 0 28 0; +#X connect 3 0 0 0; +#X connect 3 1 47 0; #X connect 5 0 3 0; #X connect 6 0 3 0; #X connect 7 0 3 0; @@ -68,18 +73,16 @@ of floats instead of directly connecting to the network; #X connect 16 0 15 0; #X connect 23 0 3 0; #X connect 24 0 3 0; -#X connect 28 0 29 0; -#X connect 29 0 0 0; +#X connect 29 0 3 0; #X connect 31 0 3 0; #X connect 33 0 3 0; -#X connect 35 0 3 0; +#X connect 34 0 3 0; #X connect 36 0 3 0; -#X connect 38 0 3 0; -#X connect 39 0 3 0; -#X connect 43 0 3 0; -#X connect 44 0 3 0; -#X connect 46 0 3 0; -#X connect 49 0 39 0; -#X connect 49 1 3 0; -#X connect 49 2 38 0; -#X connect 50 0 49 0; +#X connect 37 0 3 0; +#X connect 40 0 3 0; +#X connect 41 0 3 0; +#X connect 44 0 37 0; +#X connect 44 1 3 0; +#X connect 44 2 36 0; +#X connect 45 0 44 0; +#X connect 53 0 3 0; -- cgit v1.2.1