list-pad-help.pd 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #N canvas 0 31 554 508 10;
  2. #X obj 159 285 list-pad;
  3. #X obj 159 335 list trim;
  4. #X obj 159 313 list prepend set;
  5. #X msg 62 209 bang;
  6. #X msg 212 253 a b c d e f;
  7. #X msg 159 211 1 2 3;
  8. #X msg 206 210 1 2 3 4 5 6 7 8 9;
  9. #X text 111 417 Using an idiom by Michal Seta;
  10. #X msg 125 211 1;
  11. #X text 97 53 Use [list-pad] when you want to complete a list with
  12. more values \, if the incoming list is too short. Longer lists get
  13. passed unchanged.;
  14. #X obj 50 29 list-pad;
  15. #X text 315 256 <= pad to these values;
  16. #X obj 212 233 loadbang;
  17. #X text 97 105 The list of padding values is provided through the second
  18. inlet.;
  19. #X text 96 149 The result list consists of the first list padded with
  20. the respective values of the second list.;
  21. #N canvas 506 181 494 396 META 0;
  22. #X text 12 25 LICENSE SIBSD;
  23. #X text 12 135 AUTHOR Frank Barknecht;
  24. #X text 12 155 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  25. added by Jonathan Wilkes for Pd version 0.42.;
  26. #X text 12 45 DESCRIPTION complete a list with more values \, if the
  27. incoming list is too short;
  28. #X text 12 75 INLET_0 anything;
  29. #X text 12 115 OUTLET_0 list;
  30. #X text 12 95 INLET_1 anything;
  31. #X text 12 5 KEYWORDS control list_op;
  32. #X restore 465 456 pd META;
  33. #X msg 159 380;
  34. #X connect 0 0 2 0;
  35. #X connect 1 0 16 0;
  36. #X connect 2 0 1 0;
  37. #X connect 3 0 0 0;
  38. #X connect 4 0 0 1;
  39. #X connect 5 0 0 0;
  40. #X connect 6 0 0 0;
  41. #X connect 8 0 0 0;
  42. #X connect 12 0 4 0;