osc-help.pd 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 0 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 0 256;
  18. #X obj 27 301 osc_r 0 /i/receive/data;
  19. #X obj 31 363 osc_s 0 /i/send/data;
  20. #X text 188 300 This registers "/i/receive/data" to receive OSC from
  21. domain "0";
  22. #X text 180 357 This registers "/i/send/data" to send OSC from domain
  23. "0";
  24. #X obj 34 420 osc_bi 0 /i/do/both;
  25. #X text 185 419 This registers "/i/do/both" for bidirectional OSC communication
  26. with domain "0";
  27. #X obj 14 472 cnv 15 750 180 empty empty OSC_Output 20 12 0 14 -204786
  28. -66577 0;
  29. #X obj 150 499 r /0/osc/out;
  30. #X obj 150 599 print /0/osc/out;
  31. #X obj 150 575 spigot 1;
  32. #X obj 195 550 tgl 15 0 empty empty print_osc_output 17 7 0 10 -262144
  33. -1 -1 0 1;
  34. #X text 537 548 [packOSC];
  35. #X text 537 558 |;
  36. #X text 537 568 |;
  37. #X text 537 578 [udpsend 127.0.0.1];
  38. #X text 537 538 |;
  39. #X text 537 528 |;
  40. #X text 537 518 [r /0/osc/out];
  41. #X obj 14 661 cnv 15 750 220 empty empty OSC_Input 20 12 0 14 -204786
  42. -66577 0;
  43. #X text 502 829 |;
  44. #X text 502 839 |;
  45. #X text 502 809 |;
  46. #X text 502 799 |;
  47. #X obj 144 790 s /0/osc/in;
  48. #X text 502 789 [udreceive 127.0.0.1];
  49. #X text 502 819 [unpackOSC];
  50. #X text 502 849 [s /0/osc/in];
  51. #X obj 20 698 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
  52. -262144 -1 -1 0 256;
  53. #X msg 20 717 /i/receive/data \$1;
  54. #X msg 144 717 /i/do/both \$1;
  55. #X obj 147 697 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
  56. -1 -1 0 1;
  57. #X text 223 788 <-- put your OSC input in here. Like this:;
  58. #X obj 612 425 hsl 128 15 0 127 0 0 /i/do/both /i/do/both /i/do/both
  59. -2 -8 0 10 -262144 -1 -1 0 1;
  60. #X text 160 520 Connect this to your OSC externals \, i.e. mrpeach
  61. or iemnet:;
  62. #X text 127 477 The OSC output can be accessed und under "/<domain>/osc/out"
  63. ;
  64. #X text 123 667 The OSC input must be sent to "/<domain>/osc/out";
  65. #X text 21 621 Play around with the patch on top of the page \, and
  66. see what's going to be printed...;
  67. #X text 598 19 (c)2011-2012 Marian Weger;
  68. #X text 21 89 New variables can be registered to an OSC-domain by using
  69. the [osc_...] modules.;
  70. #X text 23 208 SYNTAX: [osc_xx <domain> <variable_name>] \, where <domain>
  71. is the name of the storage you want to register to \, and <variable_name>
  72. is the complete name of your variable.;
  73. #X connect 17 0 19 0;
  74. #X connect 19 0 18 0;
  75. #X connect 20 0 19 1;
  76. #X connect 37 0 38 0;
  77. #X connect 38 0 33 0;
  78. #X connect 39 0 33 0;
  79. #X connect 40 0 39 0;
  80. #X coords 0 756 1 755 85 60 0;