list-apply-help.pd 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #N canvas 0 26 802 590 10;
  2. #X obj 78 317 list-apply + 1;
  3. #X msg 78 285 1 2 3 4;
  4. #X obj 78 344 print;
  5. #X msg 233 285 1 2 3 4;
  6. #X obj 233 347 print;
  7. #X text 29 23 list-apply: apply the object created by [arg1 arg2] on
  8. every list element and return the modified list.;
  9. #X floatatom 171 287 5 0 0 2 add_x - -;
  10. #X msg 360 264 set /synth%d/freq;
  11. #X text 129 126 Inlets:;
  12. #X text 165 168 2) inlet connected to the apply-operation's first inlet.
  13. ;
  14. #X text 164 191 3) inlet connected to the apply-operation's second
  15. inlet \, if possible. (Not connected if there is no second inlet as
  16. is the case with for example makefilename.;
  17. #X msg 360 285 set count_%d...;
  18. #X msg 487 286 not used with makefilename;
  19. #X msg 77 396 1 2 3 4;
  20. #X obj 77 438 print;
  21. #X msg 288 397 1 2 3 4;
  22. #X obj 288 439 print;
  23. #X obj 388 379 hradio 15 1 0 4 empty empty empty 0 -6 0 8 -262144 -1
  24. -1 0;
  25. #X obj 388 396 + 1;
  26. #X floatatom 198 398 5 0 0 2 moses-arg - -;
  27. #X text 128 74 Arguments:;
  28. #X text 163 92 Arg1 and arg2 are used to create the object whose operation
  29. is applied to the list elements.;
  30. #X text 164 148 1) the list to modify.;
  31. #X text 24 248 EXAMPLES:;
  32. #X obj 503 446 print;
  33. #X msg 503 366 1 2 3 3 3 4;
  34. #X msg 560 392 set 1;
  35. #X obj 645 447 print;
  36. #X msg 645 387 45 57 69;
  37. #X obj 79 551 print;
  38. #X msg 79 507 1 2 3 4;
  39. #X text 286 530 prepent is part of list-abs;
  40. #X obj 233 317 list-apply makefilename /synth%d/freq;
  41. #X obj 77 417 list-apply moses 3;
  42. #X obj 288 418 list-apply == 4;
  43. #X obj 503 418 list-apply change;
  44. #X obj 645 418 list-apply mtof;
  45. #X obj 79 528 list-apply prepent whatever;
  46. #N canvas 460 150 494 396 META 0;
  47. #X text 12 5 KEYWORDS control list_op;
  48. #X text 12 25 LICENSE SIBSD;
  49. #X text 12 155 AUTHOR Frank Barknecht;
  50. #X text 12 135 OUTLET_0 list;
  51. #X text 12 175 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  52. added by Jonathan Wilkes for Pd version 0.42.;
  53. #X text 12 95 INLET_1 anything;
  54. #X text 12 75 INLET_0 anything;
  55. #X text 12 45 DESCRIPTION apply the object created by [arg1 arg2] on
  56. every list element and return the modified list.;
  57. #X text 12 115 INLET_2 anything;
  58. #X restore 737 557 pd META;
  59. #X connect 0 0 2 0;
  60. #X connect 1 0 0 0;
  61. #X connect 3 0 32 0;
  62. #X connect 6 0 0 2;
  63. #X connect 7 0 32 1;
  64. #X connect 11 0 32 1;
  65. #X connect 12 0 32 2;
  66. #X connect 13 0 33 0;
  67. #X connect 15 0 34 0;
  68. #X connect 17 0 18 0;
  69. #X connect 18 0 34 2;
  70. #X connect 19 0 33 2;
  71. #X connect 25 0 35 0;
  72. #X connect 26 0 35 1;
  73. #X connect 28 0 36 0;
  74. #X connect 30 0 37 0;
  75. #X connect 32 0 4 0;
  76. #X connect 33 0 14 0;
  77. #X connect 34 0 16 0;
  78. #X connect 35 0 24 0;
  79. #X connect 36 0 27 0;
  80. #X connect 37 0 29 0;