list-moses-help.pd 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #N canvas 0 31 691 397 10;
  2. #X floatatom 95 93 5 0 0 0 - - -;
  3. #X obj 95 355 print smaller;
  4. #X obj 141 332 print bigger-or-equal;
  5. #X floatatom 141 227 5 0 0 2 split-value - -;
  6. #X text 57 38 list-moses: like [moses] for lists. Additionally you
  7. can set the element index \, at which to compare \, if it is bigger
  8. or smaller than the stored value.;
  9. #X text 338 217 arg1: comparison value;
  10. #X obj 188 255 hradio 15 1 0 8 empty empty split-index 0 -6 0 10 -262144
  11. -1 -1 1;
  12. #X floatatom 128 148 5 0 0 0 - - -;
  13. #X obj 95 277 list-moses 4 2;
  14. #X text 337 252 arg2: which element to compare (zero based). Can be
  15. negative \, too.;
  16. #X msg 128 172 1 TEST \$1 4 5 6 7 8;
  17. #X obj 188 306 print not-a-float;
  18. #X msg 95 117 \$1 \$1 \$1 \$1 \$1 \$1 \$1 \$1;
  19. #N canvas 510 66 494 396 META 0;
  20. #X text 12 25 LICENSE SIBSD;
  21. #X text 12 185 AUTHOR Frank Barknecht;
  22. #X text 12 205 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  23. added by Jonathan Wilkes for Pd version 0.42.;
  24. #X text 12 5 KEYWORDS control list_op;
  25. #X text 12 45 DESCRIPTION like [moses] for lists;
  26. #X text 12 65 INLET_0 anything;
  27. #X text 12 85 INLET_1 float;
  28. #X text 12 105 INLET_2 float;
  29. #X text 12 125 OUTLET_0 list;
  30. #X text 12 145 OUTLET_1 list;
  31. #X text 12 165 OUTLET_2 list;
  32. #X restore 636 371 pd META;
  33. #X connect 0 0 12 0;
  34. #X connect 3 0 8 1;
  35. #X connect 6 0 8 2;
  36. #X connect 7 0 10 0;
  37. #X connect 8 0 1 0;
  38. #X connect 8 1 2 0;
  39. #X connect 8 2 11 0;
  40. #X connect 10 0 8 0;
  41. #X connect 12 0 8 0;