list-emath-help.pd 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #N canvas 0 26 538 413 10;
  2. #X obj 87 209 print add;
  3. #X msg 87 138 5 5 5 5 x;
  4. #X text 79 22 list-emath: Do math on lists element by element;
  5. #X msg 350 141 0 1 2 3 4;
  6. #X msg 271 140 5 5 5 5 x;
  7. #X msg 88 256 5 5 5 5 x;
  8. #X msg 269 262 5 5 5 5 x;
  9. #X obj 271 211 print mult;
  10. #X obj 88 327 print sub;
  11. #X obj 269 333 print div;
  12. #X obj 269 294 list-emath /;
  13. #X obj 87 171 list-emath +;
  14. #X obj 271 173 list-emath *;
  15. #X obj 88 289 list-emath -;
  16. #X msg 348 263 0 1 x 3 4;
  17. #X msg 167 257 0 1 2 x 4;
  18. #X msg 166 139 0 1 2 x 4;
  19. #X text 80 55 Non-floats in second list will be replaced by 0 for +
  20. and - \, and by 1 for * and /.;
  21. #X msg 430 262 0 0 0 0 0;
  22. #X text 428 243 Just say no!;
  23. #X text 80 91 Symbols in first list will pass unchanged.;
  24. #X text 83 376 Also see list-add \, list-mult \, list-sub for shortcuts.
  25. ;
  26. #N canvas 416 170 494 396 META 0;
  27. #X text 12 5 KEYWORDS control list_op;
  28. #X text 12 25 LICENSE SIBSD;
  29. #X text 12 125 AUTHOR Frank Barknecht;
  30. #X text 12 145 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  31. added by Jonathan Wilkes for Pd version 0.42.;
  32. #X text 12 45 DESCRIPTION do math on lists element by element;
  33. #X text 12 65 INLET_0 list;
  34. #X text 12 85 INLET_1 list;
  35. #X text 12 105 OUTLET_0 list;
  36. #X restore 483 386 pd META;
  37. #X connect 1 0 11 0;
  38. #X connect 3 0 12 1;
  39. #X connect 4 0 12 0;
  40. #X connect 5 0 13 0;
  41. #X connect 6 0 10 0;
  42. #X connect 10 0 9 0;
  43. #X connect 11 0 0 0;
  44. #X connect 12 0 7 0;
  45. #X connect 13 0 8 0;
  46. #X connect 14 0 10 1;
  47. #X connect 15 0 13 1;
  48. #X connect 16 0 11 1;
  49. #X connect 18 0 10 1;