list-lifo-help.pd 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #N canvas 0 31 546 480 10;
  2. #X msg 247 186 1 2 3 4 5;
  3. #X symbolatom 260 207 10 0 0 0 - - -;
  4. #X floatatom 273 224 5 0 0 0 - - -;
  5. #X obj 198 339 bng 15 250 50 0 empty empty EOL 17 7 1 10 -262144 -1
  6. -1;
  7. #X msg 295 274 bang;
  8. #X msg 238 166 a b c;
  9. #X msg 140 149 bang;
  10. #X text 230 147 store lists or elements ("push");
  11. #X text 111 125 trigger output ("pop");
  12. #X text 277 255 clear stored list ("reset");
  13. #X obj 140 305 list-lifo;
  14. #X text 60 38 [list-lifo];
  15. #X text 97 64 [list-lifo] stores incoming (list-)messages and outputs
  16. them one by one on incoming bangs in the opposite order of arrival
  17. like a LIFO: Last in \, first out.;
  18. #N canvas 0 0 450 300 show 0;
  19. #X obj 60 48 inlet;
  20. #X obj 60 72 list prepend set;
  21. #X obj 60 97 list trim;
  22. #X obj 60 126 outlet;
  23. #X connect 0 0 1 0;
  24. #X connect 1 0 2 0;
  25. #X connect 2 0 3 0;
  26. #X restore 140 364 pd show;
  27. #X msg 140 390;
  28. #X msg 74 262 clear;
  29. #X text 82 439 2007 Frank Barknecht;
  30. #N canvas 510 66 494 396 META 0;
  31. #X text 12 25 LICENSE SIBSD;
  32. #X text 12 175 AUTHOR Frank Barknecht;
  33. #X text 12 195 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  34. added by Jonathan Wilkes for Pd version 0.42.;
  35. #X text 12 5 KEYWORDS control list_op;
  36. #X text 12 75 INLET_0 bang clear;
  37. #X text 12 95 INLET_1 anything;
  38. #X text 12 115 INLET_2 bang;
  39. #X text 12 135 OUTLET_0 list;
  40. #X text 12 155 OUTLET_1 bang;
  41. #X text 12 45 DESCRIPTION stores incoming list messages and outputs
  42. them one by one in opposite order or arrival when banged;
  43. #X restore 487 447 pd META;
  44. #X connect 0 0 10 1;
  45. #X connect 1 0 10 1;
  46. #X connect 2 0 10 1;
  47. #X connect 4 0 10 2;
  48. #X connect 5 0 10 1;
  49. #X connect 6 0 10 0;
  50. #X connect 10 0 13 0;
  51. #X connect 10 1 3 0;
  52. #X connect 13 0 14 0;
  53. #X connect 15 0 10 0;