exampleFruit.pd 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #N canvas 520 112 563 449 10;
  2. #X declare -stdpath Fraise;
  3. #X declare -stdpath moonlib;
  4. #X declare -stdpath hcs;
  5. #X declare -stdpath ggee;
  6. #X declare -stdpath zexy;
  7. #X declare -lib zexy;
  8. #X text 229 245 set period;
  9. #X msg 227 268 4;
  10. #X floatatom 254 297 5 0 255 0 - - -, f 5;
  11. #X msg 254 268 10;
  12. #X msg 284 267 20;
  13. #X obj 23 318 bng 15 100 50 0 empty empty empty 17 7 0 10 -262144 -1
  14. -1;
  15. #X obj 23 360 timer;
  16. #X floatatom 23 384 5 0 0 0 - - -, f 5;
  17. #X obj 23 337 t b b;
  18. #X text 288 297 x 5ms;
  19. #X obj 359 332 tgl 15 0 empty empty set_LED 18 7 0 10 -4034 -1 -1 0
  20. 1;
  21. #X obj 359 282 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
  22. 1;
  23. #X msg 410 257 20;
  24. #X floatatom 410 279 5 2 1000 0 - - -, f 5;
  25. #X msg 440 256 100;
  26. #X obj 359 301 metro 100;
  27. #X msg 198 269 1;
  28. #X obj 23 244 fruit/receive fruit1;
  29. #X obj 19 151 fruit/fruit 1 fruit1 10 exampleFruit;
  30. #X obj 254 381 fruit/send2 fruit1;
  31. #X text -1 26 pied/pied num_serial_device unique_network_port;
  32. #X text -5 132 fruit/fruit piedid fruitname fruitid firmware;
  33. #X msg 254 317 c 1 c \$1;
  34. #X text 48 222 RECEIVE :;
  35. #X text 303 225 SEND :;
  36. #X text 179 59 CAUTION : never open an example Fraise patch while another
  37. is opened (because only one pied with given settings must exist at
  38. a given moment);
  39. #X msg 313 267 200;
  40. #X text 284 146 1 : open fruit's "utils" patch;
  41. #X text 284 157 2 : rename your fruit;
  42. #X text 284 168 3 : program your fruit;
  43. #X text 284 179 4 : assign your fruit;
  44. #X obj 20 6 declare -stdpath Fraise;
  45. #X obj 21 48 pied/pied 0 41424;
  46. #X msg 359 355 L\$1 X;
  47. #X symbolatom 74 368 10 0 0 0 - - -, f 10;
  48. #X symbolatom 97 347 3 0 0 0 - - -, f 3;
  49. #X symbolatom 160 347 3 0 0 0 - - -, f 3;
  50. #X floatatom 183 347 5 0 0 0 - - -, f 5;
  51. #X floatatom 120 347 5 0 0 0 - - -, f 5;
  52. #X obj 74 276 route Hello!;
  53. #X obj 74 319 unpack s s f s f;
  54. #X obj 74 298 list prepend Hello!;
  55. #X connect 1 0 2 0;
  56. #X connect 2 0 22 0;
  57. #X connect 3 0 2 0;
  58. #X connect 4 0 2 0;
  59. #X connect 5 0 8 0;
  60. #X connect 6 0 7 0;
  61. #X connect 8 0 6 0;
  62. #X connect 8 1 6 1;
  63. #X connect 10 0 33 0;
  64. #X connect 11 0 15 0;
  65. #X connect 12 0 13 0;
  66. #X connect 13 0 15 1;
  67. #X connect 14 0 13 0;
  68. #X connect 15 0 10 0;
  69. #X connect 16 0 2 0;
  70. #X connect 17 0 5 0;
  71. #X connect 17 0 39 0;
  72. #X connect 22 0 19 0;
  73. #X connect 26 0 2 0;
  74. #X connect 33 0 19 1;
  75. #X connect 39 0 41 0;
  76. #X connect 40 0 34 0;
  77. #X connect 40 1 35 0;
  78. #X connect 40 2 38 0;
  79. #X connect 40 3 36 0;
  80. #X connect 40 4 37 0;
  81. #X connect 41 0 40 0;