list-math-help.pd 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #N canvas 0 31 618 551 10;
  2. #X obj 100 259 print L;
  3. #X msg 100 194 1 2 3 4 a b c;
  4. #X floatatom 210 193 5 0 0 0 - - -;
  5. #X obj 344 263 print L;
  6. #X msg 344 198 1 2 3 4 a b c;
  7. #X floatatom 454 197 5 0 0 0 - - -;
  8. #X obj 104 365 print L;
  9. #X msg 104 300 1 2 3 4 a b c;
  10. #X floatatom 214 299 5 0 0 0 - - -;
  11. #X obj 100 226 list-math *;
  12. #X msg 99 167 1 2 3 4 a b c \, 10 20 30 x y z;
  13. #X text 72 87 Use as "list-math operator" where operator is some binary
  14. operator \, that expr can understand \, like + \, - \, * or /;
  15. #X obj 346 373 print L;
  16. #X msg 346 308 1 2 3 4 a b c;
  17. #X floatatom 456 307 5 0 0 0 - - -;
  18. #X obj 72 31 cnv 15 140 30 empty empty list-math 20 12 0 14 -233017
  19. -66577 0;
  20. #X text 232 40 simple mathematical operations on lists.;
  21. #X obj 344 230 list-math +;
  22. #X obj 104 332 list-math /;
  23. #X obj 346 340 list-math -;
  24. #X msg 346 416 1 2 3 4 a b c;
  25. #X floatatom 456 415 5 0 0 0 - - -;
  26. #X obj 346 448 list-math - 2;
  27. #X obj 346 481 print L-with-arg;
  28. #X text 189 448 Using a default arg:;
  29. #X text 71 125 A second argument is accepted to set a default scalar
  30. to use.;
  31. #N canvas 510 66 494 396 META 0;
  32. #X text 12 25 LICENSE SIBSD;
  33. #X text 12 125 AUTHOR Frank Barknecht;
  34. #X text 12 145 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  35. added by Jonathan Wilkes for Pd version 0.42.;
  36. #X text 12 65 INLET_0 anything;
  37. #X text 12 5 KEYWORDS control list_op;
  38. #X text 12 105 OUTLET_0 list;
  39. #X text 12 45 DESCRIPTION simple mathematical operations on lists;
  40. #X text 12 85 INLET_1 float;
  41. #X restore 556 521 pd META;
  42. #X connect 1 0 9 0;
  43. #X connect 2 0 9 1;
  44. #X connect 4 0 17 0;
  45. #X connect 5 0 17 1;
  46. #X connect 7 0 18 0;
  47. #X connect 8 0 18 1;
  48. #X connect 9 0 0 0;
  49. #X connect 10 0 9 0;
  50. #X connect 13 0 19 0;
  51. #X connect 14 0 19 1;
  52. #X connect 17 0 3 0;
  53. #X connect 18 0 6 0;
  54. #X connect 19 0 12 0;
  55. #X connect 20 0 22 0;
  56. #X connect 21 0 22 1;
  57. #X connect 22 0 23 0;