example1.pd 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #N canvas 552 121 562 579 10;
  2. #X declare -path Fraise -stdpath Fraise;
  3. #X obj 22 237 analog/parse;
  4. #X obj 22 262 route 0 1 2 3;
  5. #X floatatom 22 371 8 0 0 0 - - -, f 8;
  6. #X floatatom 40 345 8 0 0 0 - - -, f 8;
  7. #X floatatom 59 319 8 0 0 0 - - -, f 8;
  8. #X floatatom 78 293 8 0 0 0 - - -, f 8;
  9. #X obj 22 207 fruit/receive fruit1;
  10. #X text 114 235 Analog capture on connector K1 \, K2 \, K3 and K5.
  11. ;
  12. #X obj 19 141 fruit/fruit 1 fruit1 10 example1;
  13. #X text 109 250 (K4 \, K11 and K12 cannot be analog inputs on Versa1)
  14. ;
  15. #X msg 236 514 L\$1;
  16. #X obj 236 491 tgl 15 0 empty empty set_LED 18 7 0 10 -4034 -1 -1 0
  17. 1;
  18. #X obj 327 455 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
  19. 1;
  20. #X msg 378 430 20;
  21. #X floatatom 378 452 5 2 1000 0 - - -, f 5;
  22. #X msg 408 429 100;
  23. #X obj 327 474 metro 100;
  24. #X obj 131 540 fruit/send2 fruit1;
  25. #X obj 21 38 pied/pied 0 41424;
  26. #X obj 22 399 spigot;
  27. #X obj 80 384 tgl 15 0 empty empty empty 17 7 0 10 -257985 -1 -1 0
  28. 1;
  29. #X text 102 382 <- switch this on \, then touch the pins of connector
  30. K1 to drive the led on., f 30;
  31. #X obj 22 474 > 500;
  32. #X obj 21 16 declare -path Fraise -stdpath Fraise;
  33. #X text 135 292 K5 is programmed for capacitive touch measurement \;
  34. connect a small isolated conductive surface \, and you should see the
  35. value decreasing slightly when the surface is touched.;
  36. #X connect 0 0 1 0;
  37. #X connect 1 0 2 0;
  38. #X connect 1 1 3 0;
  39. #X connect 1 2 4 0;
  40. #X connect 1 3 5 0;
  41. #X connect 2 0 19 0;
  42. #X connect 6 0 0 0;
  43. #X connect 10 0 17 1;
  44. #X connect 11 0 10 0;
  45. #X connect 12 0 16 0;
  46. #X connect 13 0 14 0;
  47. #X connect 14 0 16 1;
  48. #X connect 15 0 14 0;
  49. #X connect 16 0 11 0;
  50. #X connect 19 0 22 0;
  51. #X connect 20 0 19 1;
  52. #X connect 22 0 11 0;