onlyone-help.pd 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #N canvas 1 53 556 485 10;
  2. #X obj 63 213 loadbang;
  3. #X msg 123 213 set a;
  4. #X msg 165 214 set b;
  5. #X msg 208 214 set;
  6. #X obj 270 214 loadbang;
  7. #X msg 330 214 set a;
  8. #X msg 373 216 set b;
  9. #X msg 415 216 set;
  10. #X msg 270 305 1;
  11. #X msg 345 305 0;
  12. #X msg 63 305 1;
  13. #X msg 138 305 0;
  14. #X obj 63 279 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  15. -1;
  16. #X obj 138 279 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  17. -1 -1;
  18. #X obj 270 279 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  19. -1 -1;
  20. #X obj 345 277 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  21. -1 -1;
  22. #X obj 63 250 tof/onlyone a;
  23. #X obj 270 250 tof/onlyone b;
  24. #X obj 39 33 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577
  25. 0;
  26. #X text 44 84 author: mrtoftrash@gmail.com;
  27. #X text 44 64 tags: initialization control;
  28. #X text 44 105 version: 2009-10-24;
  29. #X text 44 33 description: makes sure it is the first or only [onlyone]
  30. to use that name.;
  31. #X text 77 399 Outlet 1: bangs if it is the first or only one to use
  32. that name.;
  33. #X text 78 431 Outlet 2: bangs if it not the the first and not the
  34. only one to use that name.;
  35. #X obj 63 367 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  36. -1;
  37. #X obj 63 339 metro 500;
  38. #X obj 270 339 metro 500;
  39. #X obj 270 367 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  40. -1 -1;
  41. #X text 62 171 If both [onlyone] have the same name \, only one metro
  42. will be active.;
  43. #N canvas 152 214 494 344 META 0;
  44. #X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  45. Wilkes for Pd version 0.42.;
  46. #X text 12 55 LICENSE GPL v2;
  47. #X text 12 135 AUTHOR Thomas Ouellet Fredericks;
  48. #X text 12 25 DESCRIPTION make sure it is the first or only [onlyone]
  49. to use that name.;
  50. #X text 12 5 KEYWORDS control nonlocal;
  51. #X text 12 75 INLET_0 bang set;
  52. #X text 12 95 OUTLET_0 bang;
  53. #X text 12 115 OUTLET_1 bang;
  54. #X restore 479 432 pd META;
  55. #X text 62 139 Try to "set" the name of each [onlyone] to the same
  56. name and then to different names.;
  57. #X connect 0 0 16 0;
  58. #X connect 1 0 16 0;
  59. #X connect 2 0 16 0;
  60. #X connect 3 0 16 0;
  61. #X connect 4 0 17 0;
  62. #X connect 5 0 17 0;
  63. #X connect 6 0 17 0;
  64. #X connect 7 0 17 0;
  65. #X connect 8 0 27 0;
  66. #X connect 9 0 27 0;
  67. #X connect 10 0 26 0;
  68. #X connect 11 0 26 0;
  69. #X connect 12 0 10 0;
  70. #X connect 13 0 11 0;
  71. #X connect 14 0 8 0;
  72. #X connect 15 0 9 0;
  73. #X connect 16 0 12 0;
  74. #X connect 16 1 13 0;
  75. #X connect 17 0 14 0;
  76. #X connect 17 1 15 0;
  77. #X connect 26 0 25 0;
  78. #X connect 27 0 28 0;