list-insert-help.pd 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #N canvas 0 31 451 383 10;
  2. #X obj 125 251 list-insert 2;
  3. #X obj 168 172 hradio 15 1 0 8 empty empty POS_(zero-based) 0 -6 0
  4. 8 -262144 -1 -1 0;
  5. #X msg 233 222 0 1 2 3 4 5 6;
  6. #X text 231 203 original list;
  7. #X floatatom 168 197 5 0 0 0 - - -;
  8. #X text 68 69 Argument: default POS;
  9. #X text 67 49 POS is zerobased. Negative POS will count from the end.
  10. ;
  11. #X msg 125 132 list SOME ELEMENTS;
  12. #X msg 125 162 INS;
  13. #X text 65 12 list-insert: insert LIST before element at position POS
  14. in original list.;
  15. #X obj 125 280 print NEW_LIST;
  16. #X floatatom 125 190 5 0 0 0 - - -;
  17. #X text 125 113 LIST or element to insert;
  18. #N canvas 461 31 494 396 META 0;
  19. #X text 12 25 LICENSE SIBSD;
  20. #X text 12 155 AUTHOR Frank Barknecht;
  21. #X text 12 175 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  22. added by Jonathan Wilkes for Pd version 0.42.;
  23. #X text 12 5 KEYWORDS control list_op;
  24. #X text 12 75 INLET_0 anything;
  25. #X text 12 95 INLET_1 float;
  26. #X text 12 45 DESCRIPTION insert LIST before element at position POS
  27. in original list;
  28. #X text 12 115 INLET_2 anything;
  29. #X text 12 135 OUTLET_0 list;
  30. #X restore 397 357 pd META;
  31. #X connect 0 0 10 0;
  32. #X connect 1 0 4 0;
  33. #X connect 2 0 0 2;
  34. #X connect 4 0 0 1;
  35. #X connect 7 0 0 0;
  36. #X connect 8 0 0 0;
  37. #X connect 11 0 0 0;