File: list-swap-help.pd

package info (click to toggle)
pd-list-abs 0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 756 kB
  • sloc: makefile: 289
file content (30 lines) | stat: -rw-r--r-- 1,038 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#N canvas 0 31 574 354 10;
#X msg 57 84 0 1 2 3 4 5 6 7 8 9 10 11;
#X floatatom 145 148 5 0 0 0 - - -;
#X floatatom 101 146 5 0 0 0 - - -;
#X obj 57 190 list-swap 2 5;
#X text 49 19 [list-swap] - swap two elements of a list at given indices.
Index values can be negative. If an index value is out of range \,
the list is passed with no change.;
#X msg 75 114 list a b c d e f g h i j k;
#X obj 57 216 prepent set;
#X msg 57 241 a c b;
#N canvas 506 181 494 396 META 0;
#X text 12 25 LICENSE SIBSD;
#X text 12 165 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
added by Jonathan Wilkes for Pd version 0.42.;
#X text 12 5 KEYWORDS control list_op;
#X text 12 65 INLET_0 anything;
#X text 12 145 AUTHOR Frank Barknecht;
#X text 12 45 DESCRIPTION swap two elements of a list at given indices
;
#X text 12 85 INLET_1 float;
#X text 12 105 INLET_2 flaot;
#X text 12 125 OUTLET_0 list;
#X restore 512 322 pd META;
#X connect 0 0 3 0;
#X connect 1 0 3 2;
#X connect 2 0 3 1;
#X connect 3 0 6 0;
#X connect 5 0 3 0;
#X connect 6 0 7 0;