list-shellsort-help.pd 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #N canvas 0 31 681 593 10;
  2. #X text 59 525 2008 Matt Barber;
  3. #X obj 188 357 hradio 15 1 0 2 empty empty empty 0 -8 0 10 -262144
  4. -1 -1 0;
  5. #X msg 232 357 asc;
  6. #X msg 270 357 desc;
  7. #X obj 93 205 list-random 100 10;
  8. #X obj 125 256 prepent set;
  9. #X msg 93 179 bang;
  10. #X obj 93 230 t b a;
  11. #X msg 93 291 72 65 75 88 61 50 93 18 88 80;
  12. #X text 279 324 non-floats are removed with a warning.;
  13. #X msg 135 324 100 2 wrong type 3;
  14. #X obj 93 441 prepent set;
  15. #X text 66 80 Inlets: 1) list to sort;
  16. #X text 66 134 Argument:;
  17. #X text 137 134 <direction: 0/asc for ascending \, 1/desc for descending>
  18. ;
  19. #X text 65 40 Sort a list of floats into ascending order using a Shell
  20. sort. Non-numbers are dropped.;
  21. #X obj 355 541 list-sort;
  22. #X text 299 510 Alternative implementation available in:;
  23. #X text 121 98 2) direction: 0 or asc for ascending \, 1 or desc for
  24. descending (default asc);
  25. #X obj 35 11 list-shellsort;
  26. #X obj 93 396 list-shellsort;
  27. #N canvas 506 181 494 396 META 0;
  28. #X text 12 25 LICENSE SIBSD;
  29. #X text 12 155 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  30. added by Jonathan Wilkes for Pd version 0.42.;
  31. #X text 12 45 DESCRIPTION sort a list of floats into ascending order
  32. using a Shell sort. Non-numbers are dropped;
  33. #X text 12 5 KEYWORDS control list_op;
  34. #X text 12 75 INLET_0 list;
  35. #X text 12 95 INLET_1 float asc desc;
  36. #X text 12 135 AUTHOR Matt Barber;
  37. #X text 12 115 OUTLET_0 list;
  38. #X restore 611 564 pd META;
  39. #X msg 93 470;
  40. #X connect 1 0 20 1;
  41. #X connect 2 0 20 1;
  42. #X connect 3 0 20 1;
  43. #X connect 4 0 7 0;
  44. #X connect 5 0 8 0;
  45. #X connect 6 0 4 0;
  46. #X connect 7 0 8 0;
  47. #X connect 7 1 5 0;
  48. #X connect 8 0 20 0;
  49. #X connect 10 0 20 0;
  50. #X connect 11 0 22 0;
  51. #X connect 20 0 11 0;