unpackOSC-help.pd 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #N canvas 4 80 664 396 10;
  2. #X obj -104 176 cnv 15 100 60 empty empty empty 20 12 0 14 -4034 -66577
  3. 0;
  4. #X obj -85 190 unpackOSC;
  5. #X floatatom 16 207 10 0 0 1 - - -;
  6. #X obj -85 257 pipelist;
  7. #X text -126 337 see:;
  8. #X text 21 337 for a way to send OSC over TCP or serial connections.
  9. ;
  10. #X obj -91 338 unpackOSCstream;
  11. #X obj -92 214 print unpacked;
  12. #X text -29 253 If the OSC packet has a timetag \, [pipelist] will
  13. delay it until the time occurs;
  14. #N canvas 521 651 494 344 META 0;
  15. #X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  16. Wilkes for Pd version 0.42.;
  17. #X text 12 25 LICENSE GPL v2 or later;
  18. #X text 12 5 KEYWORDS control list_op;
  19. #X text 12 45 DESCRIPTION parses lists of floats (only integers on
  20. [0..255]) assuming they represent OSC packets.;
  21. #X text 12 75 INLET_0 list of floats on [0..255];
  22. #X text 12 95 OUTLET_0 OSC message;
  23. #X text 13 115 OUTLET_1 milliseconds until timetag time;
  24. #X text 12 135 AUTHOR Martin Peach;
  25. #X restore 449 362 pd META;
  26. #X obj -85 73 packOSC;
  27. #X obj -62 113 print bytes;
  28. #X msg -113 28 /some/path 1 2 3;
  29. #X msg -134 7 [ \, /another/one/ 4 \, ];
  30. #X obj -85 284 print delayed;
  31. #X msg -92 49 timetagoffset 1.1e+06;
  32. #X obj -46 93 print bundle_depth;
  33. #X text 354 317 2012/02/14 Martin Peach;
  34. #X text 107 15 [unpackOSC] processes lists of floats (only integers
  35. on [0..255]) as though they were OSC packets.;
  36. #X text -76 134 <- usually the bytes pass over the network with [udpsend]/[udpreceive]
  37. \, or serial port using [comport] with [slipenc] and [slipdec];
  38. #X text 48 49 timetag offset is in microseconds relative to sender's
  39. clock;
  40. #X text 83 201 second outlet is timetag offset in millieconds relative
  41. to receiver's clock;
  42. #X connect 1 0 3 0;
  43. #X connect 1 0 7 0;
  44. #X connect 1 1 2 0;
  45. #X connect 1 1 3 1;
  46. #X connect 3 0 14 0;
  47. #X connect 10 0 11 0;
  48. #X connect 10 0 1 0;
  49. #X connect 10 1 16 0;
  50. #X connect 12 0 10 0;
  51. #X connect 13 0 10 0;
  52. #X connect 15 0 10 0;