increment-help.pd 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #N canvas 1 53 640 515 10;
  2. #X obj 22 -23 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577
  3. 0;
  4. #X text 26 15 author: mrtoftrash@gmail.com;
  5. #X msg 115 181 3;
  6. #X msg 76 181 6;
  7. #X text 27 -24 description: increment a number.;
  8. #X text 28 0 tags: flow counter;
  9. #X obj 27 120 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  10. -1;
  11. #X obj 27 279 print;
  12. #X text 24 82 First inlet:;
  13. #X obj 38 427 print;
  14. #X obj 38 317 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  15. -1;
  16. #X msg 61 345 set 43;
  17. #X text 160 387 Argument 1: start value (defaults to 0);
  18. #X obj 166 211 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  19. -1 -1;
  20. #X obj 27 251 tof/increment;
  21. #X obj 38 396 tof/increment 10 3;
  22. #X text 26 30 version: 2009-10-23 (two inlet version);
  23. #X text 107 345 Set the value;
  24. #X text 135 145 Second inlet:;
  25. #X text 150 175 bang: resets to 0;
  26. #X text 149 162 float: sets value;
  27. #X text 69 96 bang: outputs and increments the value;
  28. #X text 70 109 float: sets increment amount and outputs incremented
  29. value;
  30. #X text 160 402 Argument 2: incrementation amount (defaults to 1);
  31. #X msg 51 139 2;
  32. #X msg 78 367 1;
  33. #N canvas 219 217 494 344 META 0;
  34. #X text 12 125 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  35. Wilkes for Pd version 0.42.;
  36. #X text 12 25 LICENSE GPL v2;
  37. #X text 12 105 AUTHOR Thomas Ouellet Fredericks;
  38. #X text 12 5 KEYWORDS control;
  39. #X text 12 45 INLET_0 bang float;
  40. #X text 12 65 INLET_1 bang float;
  41. #X text 12 85 OUTLET_0 float;
  42. #X restore 580 436 pd META;
  43. #X connect 2 0 14 1;
  44. #X connect 3 0 14 1;
  45. #X connect 6 0 14 0;
  46. #X connect 10 0 15 0;
  47. #X connect 11 0 15 0;
  48. #X connect 13 0 14 1;
  49. #X connect 14 0 7 0;
  50. #X connect 15 0 9 0;
  51. #X connect 24 0 14 0;
  52. #X connect 25 0 15 0;