list_unfold-help.pd 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #N canvas 1 53 833 496 10;
  2. #X msg 83 275 anything works too;
  3. #X msg 71 248 symbol test;
  4. #X obj 42 17 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577
  5. 0;
  6. #X text 47 67 author: mrtoftrash@gmail.com;
  7. #X obj 473 299 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  8. -1 -1;
  9. #X text 47 56 tags: lists;
  10. #X obj 80 378 print ATOM;
  11. #X obj 161 379 print INDEX;
  12. #X obj 444 374 print ATOM;
  13. #X obj 555 371 print INDEX;
  14. #X msg 40 219 list a b c d e f g;
  15. #X msg 444 272 list m n o p q r s t u v;
  16. #X text 448 253 step 1: add list;
  17. #X text 493 297 step 2: bang to output each element;
  18. #X obj 102 303 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  19. -1 -1;
  20. #X text 127 302 bang to interrupt output;
  21. #X text 48 17 description: output the individual elements of a list
  22. and their indices \, either immediately or on bangs.;
  23. #X text 47 78 version: 2009-10-06 (added the second mode);
  24. #X text 36 189 default mode: output everything once it is received.
  25. ;
  26. #X text 408 186 "wait" or "manually" mode: output one element for every
  27. bang .;
  28. #X text 47 135 list_unfold has two modes:;
  29. #X obj 80 352 tof/list_unfold;
  30. #X obj 444 348 tof/list_unfold wait;
  31. #N canvas 162 137 494 344 META 0;
  32. #X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  33. Wilkes for Pd version 0.42.;
  34. #X text 12 25 LICENSE GPL v2;
  35. #X text 12 135 AUTHOR Thomas Ouellet Fredericks;
  36. #X text 12 5 KEYWORDS control list_op;
  37. #X text 12 45 DESCRIPTION output the individual elements of a list
  38. and their indices \, either immediately or on bangs;
  39. #X text 12 75 INLET_0 anything bang;
  40. #X text 12 95 OUTLET_0 float symbol;
  41. #X text 12 115 OUTLET_1 float;
  42. #X restore 775 447 pd META;
  43. #X msg 287 232 traverse pd-list_unfold-help.pd \, bang;
  44. #X obj 287 254 pointer;
  45. #X connect 0 0 21 0;
  46. #X connect 1 0 21 0;
  47. #X connect 4 0 22 0;
  48. #X connect 10 0 21 0;
  49. #X connect 11 0 22 0;
  50. #X connect 14 0 21 0;
  51. #X connect 21 0 6 0;
  52. #X connect 21 1 7 0;
  53. #X connect 22 0 8 0;
  54. #X connect 22 1 9 0;
  55. #X connect 24 0 25 0;
  56. #X connect 25 0 21 0;