list-splat-help.pd 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #N canvas 0 31 583 340 10;
  2. #X floatatom 197 104 5 0 0 0 - - -;
  3. #X msg 118 105 0 1 2 3 4;
  4. #X obj 197 163 print shorter;
  5. #N canvas 130 18 600 416 rot 0;
  6. #X obj 173 193 list prepend;
  7. #X obj 151 44 inlet;
  8. #X obj 252 115 inlet;
  9. #X text 304 115 how often to rotate;
  10. #X obj 151 220 list;
  11. #X text 198 43 list to rotate;
  12. #X obj 151 250 outlet;
  13. #X obj 151 70 t b l b;
  14. #X text 267 194 move right part of list to left.;
  15. #X obj 173 152 list-splat 1;
  16. #X connect 0 0 4 1;
  17. #X connect 1 0 7 0;
  18. #X connect 2 0 9 1;
  19. #X connect 4 0 6 0;
  20. #X connect 7 0 4 0;
  21. #X connect 7 1 9 0;
  22. #X connect 7 2 0 1;
  23. #X connect 9 0 0 0;
  24. #X connect 9 1 0 1;
  25. #X restore 374 156 pd rot;
  26. #X msg 374 126 0 1 2 3 4;
  27. #X floatatom 456 127 5 0 0 0 - - -;
  28. #X obj 374 184 print;
  29. #X obj 118 138 list-splat 2;
  30. #X text 72 37 list-splat: an advanced [list split] which also accepts
  31. negative indices to split of elements from the back of a list.;
  32. #X obj 118 219 print head;
  33. #X obj 157 192 print tail;
  34. #N canvas 506 181 494 396 META 0;
  35. #X text 12 25 LICENSE SIBSD;
  36. #X text 12 195 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  37. added by Jonathan Wilkes for Pd version 0.42.;
  38. #X text 12 5 KEYWORDS control list_op;
  39. #X text 12 45 DESCRIPTION an advanced [list split] which also accepts
  40. negative indices to split elements from the back of a list;
  41. #X text 12 75 INLET_0 anything;
  42. #X text 12 95 INLET_1 float;
  43. #X text 12 115 OUTLET_0 list float symbol pointer;
  44. #X text 12 135 OUTLET_1 list float symbol pointer;
  45. #X text 12 155 OUTLET_2 list float symbol pointer;
  46. #X text 12 175 AUTHOR Frank Barknecht;
  47. #X restore 521 311 pd META;
  48. #X connect 0 0 7 1;
  49. #X connect 1 0 7 0;
  50. #X connect 3 0 6 0;
  51. #X connect 4 0 3 0;
  52. #X connect 5 0 3 1;
  53. #X connect 7 0 9 0;
  54. #X connect 7 1 10 0;
  55. #X connect 7 2 2 0;