osc_help.pd 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #N canvas 341 22 804 756 10;
  2. #X obj 14 14 cnv 15 750 30 empty empty OSC_communication_system_for_KOLLABS
  3. 20 12 0 14 -233017 -66577 0;
  4. #X obj 14 56 cnv 15 750 200 empty empty Registering_variables 20 12
  5. 0 14 -204800 -66577 0;
  6. #X text 22 124 There are three types:;
  7. #X text 22 172 [osc_bi] registers a variable for BIDIRECTIONAL osc.
  8. ;
  9. #X text 75 186 It also includes feedback prevention.;
  10. #X text 22 144 [osc_r] registers a variable to RECEIVE osc;
  11. #X text 22 158 [osc_s] registers a variable to SEND osc;
  12. #X obj 14 261 cnv 15 750 200 empty empty Example 20 12 0 14 -204800
  13. -66577 0;
  14. #X obj 612 355 hsl 128 15 0 127 0 0 /i/send/data /i/send/data /i/send/data
  15. -2 -8 0 10 -262144 -1 -1 2900 1;
  16. #X obj 620 303 nbx 5 14 -1e+37 1e+37 0 0 /i/receive/data /i/receive/data
  17. /i/receive/data 0 -8 0 10 -262144 -1 -1 42 256;
  18. #X obj 14 472 cnv 15 750 180 empty empty OSC_Output 20 12 0 14 -204786
  19. -66577 0;
  20. #X obj 150 575 spigot 1;
  21. #X obj 195 550 tgl 15 0 empty empty print_osc_output 17 7 0 10 -262144
  22. -1 -1 0 1;
  23. #X obj 14 661 cnv 15 750 220 empty empty OSC_Input 20 12 0 14 -204786
  24. -66577 0;
  25. #X obj 20 698 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
  26. -262144 -1 -1 42 256;
  27. #X msg 20 717 /i/receive/data \$1;
  28. #X msg 144 717 /i/do/both \$1;
  29. #X obj 147 697 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
  30. -1 -1 0 1;
  31. #X text 233 788 <-- put your OSC input in here. Like this:;
  32. #X obj 612 425 hsl 128 15 0 127 0 0 /i/do/both /i/do/both /i/do/both
  33. -2 -8 0 10 -262144 -1 -1 2100 1;
  34. #X text 160 520 Connect this to your OSC externals \, i.e. mrpeach
  35. or iemnet:;
  36. #X text 21 621 Play around with the patch on top of the page \, and
  37. see what's going to be printed...;
  38. #X text 598 19 (c)2011-2012 Marian Weger;
  39. #X text 21 89 New variables can be registered to an OSC-domain by using
  40. the [osc_...] modules.;
  41. #X text 23 208 SYNTAX: [osc_xx <domain> <variable_name>] \, where <domain>
  42. is the name of the storage you want to register to \, and <variable_name>
  43. is the complete name of your variable.;
  44. #X text 123 667 The OSC input must be sent to "/osc/<domain>/out";
  45. #X text 127 477 The OSC output can be accessed und under "/osc/<domain>/out"
  46. ;
  47. #X obj 538 554 packOSC;
  48. #X obj 538 521 r /osc/help/out;
  49. #X obj 150 499 r /osc/help/out;
  50. #X obj 150 599 print /osc/help/out;
  51. #X obj 144 790 s /osc/help/in;
  52. #X obj 31 363 osc_s help /i/send/data;
  53. #X obj 34 420 osc_bi help /i/do/both;
  54. #X obj 27 301 osc_r help /i/receive/data;
  55. #X text 185 419 This registers "/i/do/both" for bidirectional OSC communication
  56. with domain "help";
  57. #X text 180 357 This registers "/i/send/data" to send OSC from domain
  58. "help";
  59. #X text 188 300 This registers "/i/receive/data" to receive OSC from
  60. domain "help";
  61. #X obj 537 757 udpreceive 6666;
  62. #X obj 537 789 unpackOSC;
  63. #X obj 537 821 s /osc/help/in;
  64. #X obj 538 606 udpsend;
  65. #X obj 610 552 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  66. -1 -1;
  67. #X msg 610 572 connect 127.0.0.1 6666;
  68. #X connect 11 0 30 0;
  69. #X connect 12 0 11 1;
  70. #X connect 14 0 15 0;
  71. #X connect 15 0 31 0;
  72. #X connect 16 0 31 0;
  73. #X connect 17 0 16 0;
  74. #X connect 27 0 41 0;
  75. #X connect 28 0 27 0;
  76. #X connect 29 0 11 0;
  77. #X connect 38 0 39 0;
  78. #X connect 39 0 40 0;
  79. #X connect 42 0 43 0;
  80. #X connect 43 0 41 0;
  81. #X coords 0 756 1 755 85 60 0;