udpsndrcv-help.pd 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #N canvas 193 98 901 628 12;
  2. #X declare -lib mrpeach;
  3. #X msg 166 354 status;
  4. #X text 18 334 get status on right outlet:;
  5. #N canvas 510 620 494 344 META 0;
  6. #X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  7. Wilkes for Pd version 0.42.;
  8. #X text 12 25 LICENSE GPL v2 or later;
  9. #X text 12 5 KEYWORDS control network;
  10. #X text 12 45 DESCRIPTION receive datagrams over a udp connection and
  11. outputs them as raw bytes;
  12. #X text 12 95 OUTLET_0 anything;
  13. #X text 12 135 AUTHOR Martin Peach \, Dennis Engdahl;
  14. #X text 12 75 INLET_0 status port connect disconnect float(s);
  15. #X text 12 115 OUTLET_1 received total;
  16. #X restore 821 567 pd META;
  17. #X obj 208 416 udpsndrcv;
  18. #X msg 197 385 disconnect;
  19. #X msg 105 260 send /info;
  20. #X text -12 3 [udpsndrcv] sends datagrams over udp and receives datagrams
  21. over a udp connection and outputs them as raw bytes. It uses the same
  22. port for both send and receive.;
  23. #X text 168 134 IP address to send to/listen on (required);
  24. #X text 323 447 Total bytes received.;
  25. #X text 242 544 Data received.;
  26. #X text -3 60 This was cadged together by Dennis Engdahl (engdahl@snowcrest.net)
  27. to allow communication with a Behringer X32. The program below demonstrates
  28. this.;
  29. #X obj 105 293 packOSC;
  30. #X obj 238 481 unpackOSC;
  31. #X text 169 149 Port number to send to (required);
  32. #X text 31 132 Creation Arguments:;
  33. #X obj 490 78 import mrpeach;
  34. #X text 202 176 (Must be unique among instances - see below);
  35. #X msg 25 213 connect 192.168.1.101 10023 10023;
  36. #X text 584 598 Dennis Engdahl \, Martin Peach 20104/02/26;
  37. #X obj 268 447 print a;
  38. #X obj 238 518 print Instance_1;
  39. #X obj 208 455 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
  40. 1;
  41. #X msg 496 354 status;
  42. #X text 348 334 get status on right outlet:;
  43. #X obj 538 416 udpsndrcv;
  44. #X msg 527 385 disconnect;
  45. #X msg 435 260 send /info;
  46. #X text 653 447 Total bytes received.;
  47. #X text 572 544 Data received.;
  48. #X obj 435 293 packOSC;
  49. #X obj 568 481 unpackOSC;
  50. #X obj 538 455 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
  51. 1;
  52. #X msg 355 213 connect 192.168.1.101 10023 10024;
  53. #X obj 598 447 print b;
  54. #X obj 568 518 print Instance_2;
  55. #X text 168 163 Port number to send from and listen on (required);
  56. #X connect 0 0 3 0;
  57. #X connect 3 0 21 0;
  58. #X connect 3 1 12 0;
  59. #X connect 3 2 19 0;
  60. #X connect 4 0 3 0;
  61. #X connect 5 0 11 0;
  62. #X connect 11 0 3 0;
  63. #X connect 12 0 20 0;
  64. #X connect 17 0 3 0;
  65. #X connect 22 0 24 0;
  66. #X connect 24 0 31 0;
  67. #X connect 24 1 30 0;
  68. #X connect 24 2 33 0;
  69. #X connect 25 0 24 0;
  70. #X connect 26 0 29 0;
  71. #X connect 29 0 24 0;
  72. #X connect 30 0 34 0;
  73. #X connect 32 0 24 0;