routeOSC-help.pd 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #N canvas 156 138 996 758 12;
  2. #X declare -lib mrpeach;
  3. #X obj -34 554 cnv 15 820 130 empty empty empty 20 12 0 14 -261207
  4. -66577 0;
  5. #X obj -76 40 udpreceive 9997;
  6. #X floatatom 91 111 3 0 0 0 - - -;
  7. #X floatatom 118 111 3 0 0 0 - - -;
  8. #X floatatom 145 111 3 0 0 0 - - -;
  9. #X floatatom 172 111 3 0 0 0 - - -;
  10. #X text 51 110 from;
  11. #X obj -76 164 unpackOSC;
  12. #X text 324 108 see also:;
  13. #X obj 396 109 packOSC;
  14. #X floatatom 483 184 10 0 0 1 millisecond_delay - -;
  15. #X obj -76 191 pipelist;
  16. #X text 484 559 arguments are OSC addresses to be routed;
  17. #X text 43 707 see:;
  18. #X text 190 708 for a way to send OSC over TCP or serial connections.
  19. ;
  20. #X obj 78 708 unpackOSCstream;
  21. #X obj -110 218 print unpacked;
  22. #X obj 91 87 unpack 0 0 0 0 0;
  23. #X floatatom 200 111 8 0 0 0 - - -;
  24. #X obj 26 64 route received from;
  25. #X floatatom 26 132 5 0 0 0 - - -;
  26. #X text 66 132 bytes;
  27. #X text 43 40 Open [packOSC-help] to send packets to this patch.;
  28. #X text -6 186 If the OSC packet has a timetag \, [pipelist] will delay
  29. it until the time occurs;
  30. #X obj 272 653 print match_1;
  31. #X obj 338 631 print match_2;
  32. #X obj 472 587 print no_match;
  33. #N canvas 500 255 494 344 META 0;
  34. #X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  35. Wilkes for Pd version 0.42.;
  36. #X text 12 25 LICENSE GPL v2 or later;
  37. #X text 12 5 KEYWORDS control list_op;
  38. #X text 12 75 INLET_0 list verbosity paths set;
  39. #X text 12 95 OUTLET_N list;
  40. #X text 12 115 OUTLET_R list;
  41. #X text 12 135 AUTHOR Martin Peach;
  42. #X text 12 45 DESCRIPTION routes lists as OSC packets.;
  43. #X restore 788 685 pd META;
  44. #X obj -7 8 import mrpeach;
  45. #X text 612 657 2012/03/13 Martin Peach;
  46. #X text -5 149 [unpackOSC] parses lists of floats (only integers on
  47. [0..255]) as OSC packets.;
  48. #X obj -34 249 cnv 15 600 160 empty empty empty 20 12 0 14 -204786
  49. -66577 0;
  50. #X obj 127 412 cnv 15 600 140 empty empty empty 20 12 0 14 -261234
  51. -66577 0;
  52. #X msg 76 343 set /left;
  53. #X msg 53 320 set /left /right;
  54. #X text 181 341 (but new outlets can't be created);
  55. #X msg 27 294 paths;
  56. #X msg 4 271 verbosity \$1;
  57. #X obj 4 253 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1
  58. ;
  59. #X text 22 249 set to 1 for debugging;
  60. #X text 233 365 routeOSC will match deep paths;
  61. #X text 177 319 [set( reassigns outputs from left to right;
  62. #X text 81 294 [paths( will print the current OSC addresses to Pd console
  63. ;
  64. #X msg 145 412 /test any2 4 5;
  65. #X msg 257 524 1 2 3;
  66. #X msg 99 366 set /one/two/three;
  67. #X msg 122 389 set /*;
  68. #X text 175 388 this will match any OSC message;
  69. #X msg 212 479 /* zap!;
  70. #X msg 235 502 zorro trope;
  71. #X text 323 502 not a valid OSC message;
  72. #X text 301 523 not a valid OSC message;
  73. #X text 260 412 input is a message whose selector is an OSC path;
  74. #X text 352 434 or a list whose first element is an OSC path;
  75. #X obj 405 609 print match_3;
  76. #X obj 272 559 routeOSC /test /west /one/two;
  77. #X msg 189 456 /one/two/three yikes!;
  78. #X msg 167 434 list /west/rate any1 2 3;
  79. #X text -34 586 [routeOSC] routes Open Sound Control* messages \, or
  80. lists of anything beginning with a /path;
  81. #X text -32 629 *See http://opensoundcontrol.org/spec-1_0;
  82. #X connect 1 0 7 0;
  83. #X connect 1 1 19 0;
  84. #X connect 7 0 11 0;
  85. #X connect 7 0 16 0;
  86. #X connect 7 1 10 0;
  87. #X connect 7 1 11 1;
  88. #X connect 11 0 55 0;
  89. #X connect 17 0 2 0;
  90. #X connect 17 1 3 0;
  91. #X connect 17 2 4 0;
  92. #X connect 17 3 5 0;
  93. #X connect 17 4 18 0;
  94. #X connect 19 0 20 0;
  95. #X connect 19 1 17 0;
  96. #X connect 33 0 55 0;
  97. #X connect 34 0 55 0;
  98. #X connect 36 0 55 0;
  99. #X connect 37 0 55 0;
  100. #X connect 38 0 37 0;
  101. #X connect 43 0 55 0;
  102. #X connect 44 0 55 0;
  103. #X connect 45 0 55 0;
  104. #X connect 46 0 55 0;
  105. #X connect 48 0 55 0;
  106. #X connect 49 0 55 0;
  107. #X connect 55 0 24 0;
  108. #X connect 55 1 25 0;
  109. #X connect 55 2 54 0;
  110. #X connect 55 3 26 0;
  111. #X connect 56 0 55 0;
  112. #X connect 57 0 55 0;