list-round-help.pd 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #N canvas 0 31 625 414 10;
  2. #N canvas 448 238 450 300 show 0;
  3. #X obj 41 39 inlet;
  4. #X obj 186 36 inlet;
  5. #X obj 41 124 outlet;
  6. #X msg 186 76 set;
  7. #X obj 41 59 list prepend set;
  8. #X obj 41 83 list trim;
  9. #X connect 0 0 4 0;
  10. #X connect 1 0 3 0;
  11. #X connect 3 0 2 0;
  12. #X connect 4 0 5 0;
  13. #X connect 5 0 2 0;
  14. #X restore 368 293 pd show;
  15. #X msg 368 318;
  16. #X obj 412 274 bng 15 250 50 1 empty empty clear 0 -6 0 8 -262144 -1
  17. -1;
  18. #X msg 394 170 1.2 3 4.5 6.7 eight 9;
  19. #X msg 368 144 1.2 3 4.5 6.7 8.9;
  20. #N canvas 448 238 450 300 show 0;
  21. #X obj 41 39 inlet;
  22. #X obj 186 36 inlet;
  23. #X obj 41 124 outlet;
  24. #X msg 186 76 set;
  25. #X obj 41 59 list prepend set;
  26. #X obj 41 83 list trim;
  27. #X connect 0 0 4 0;
  28. #X connect 1 0 3 0;
  29. #X connect 3 0 2 0;
  30. #X connect 4 0 5 0;
  31. #X connect 5 0 2 0;
  32. #X restore 65 289 pd show;
  33. #X msg 65 314;
  34. #X obj 109 270 bng 15 250 50 1 empty empty clear 0 -6 0 8 -262144 -1
  35. -1;
  36. #X msg 91 166 1.2 3 4.5 6.7 eight 9;
  37. #X msg 62 136 1.2 3 4.5 6.7 8.9;
  38. #X text 56 34 round all numbers in a list to nearest multiple of first
  39. argument or number in second inlet. Using 0 as argument (or no argumement)
  40. will round to 1 (integer round).;
  41. #X text 44 15 list-round;
  42. #X obj 65 225 list-round;
  43. #X text 62 113 simple integer round;
  44. #X obj 368 229 list-round 3;
  45. #X floatatom 130 200 5 0 0 2 round-to? - -;
  46. #X floatatom 447 205 5 0 0 2 round-to? - -;
  47. #X text 154 224 == [list-round 1];
  48. #N canvas 472 161 494 396 META 0;
  49. #X text 12 25 LICENSE SIBSD;
  50. #X text 12 135 AUTHOR Frank Barknecht;
  51. #X text 12 155 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  52. added by Jonathan Wilkes for Pd version 0.42.;
  53. #X text 12 5 KEYWORDS control list_op;
  54. #X text 12 115 OUTLET_0 list;
  55. #X text 12 45 DESCRIPTION round all numbers in a list to nearest multiple
  56. of first argument or number in second inlet;
  57. #X text 12 75 INLET_0 list;
  58. #X text 12 95 INLET_1 float;
  59. #X restore 563 378 pd META;
  60. #X connect 0 0 1 0;
  61. #X connect 2 0 0 1;
  62. #X connect 3 0 14 0;
  63. #X connect 4 0 14 0;
  64. #X connect 5 0 6 0;
  65. #X connect 7 0 5 1;
  66. #X connect 8 0 12 0;
  67. #X connect 9 0 12 0;
  68. #X connect 12 0 5 0;
  69. #X connect 14 0 0 0;
  70. #X connect 15 0 12 1;
  71. #X connect 16 0 14 1;