aboutsummaryrefslogtreecommitdiff
path: root/help/arraycopy-help.pd
blob: 6963c694a14d08782cba0ce8b7620c1da244e77b (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#N canvas 140 43 934 584 12;
#N canvas 0 0 450 300 graph1 0;
#X array array1 20 float 1;
#A 0 0 0 0.342857 0.542857 0.6 -0.442857 -0.485714 0.0142858 -0.428571
-0.114286 0.0857143 -0.2 -0.214285 0.314285 -0.157143 -0.314285 -0.142857
-0.0428571 0.114286 -0.685713;
#X coords 0 1 19 -1 200 140 1;
#X restore 680 27 graph;
#N canvas 0 0 450 300 graph2 0;
#X array array2 20 float 1;
#A 0 -0.214286 -0.171429 0.1 0.614286 0.757143 0.757143 0.542857 0.2
-0.0285714 -0.271429 -0.414286 -0.514286 -0.528571 -0.485714 -0.371429
-0.157143 0.214286 0.557143 0.714286 0.757143;
#X coords 0 1 19 -1 200 140 1;
#X restore 681 196 graph;
#N canvas 0 0 450 300 graph3 0;
#X array array3 20 float 1;
#A 0 1.86265e-009 1.86265e-009 1.86265e-009 1.86265e-009 1.86265e-009
-0.0142857 -0.0142857 -0.0142857 -0.0142857 -0.0142857 -0.0142857 -0.0142857
-0.0142857 -0.0285714 -0.0285714 -0.0285714 -0.0285714 -0.0142857 -0.0142857
-0.0142857;
#X coords 0 1 19 -1 200 140 1;
#X restore 680 371 graph;
#X obj 22 500 arraycopy array3;
#X text 339 402 set the destination array;
#X text 41 1 arraycopy :: copy data from one array to another;
#X text 146 22 written by Olaf Matthes <olaf.matthes@gmx.de>;
#X msg 22 109 copy array1;
#X msg 43 139 copy array1 10 15;
#X text 131 109 copy the whole array;
#X text 200 140 copy from value 10 to 15;
#X msg 60 169 copy array1 10 +5;
#X text 217 170 copy from value 10 the next 5 values;
#X msg 85 359 print \$1;
#X obj 85 333 tgl 20 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X text 116 334 switch console printout on/off;
#X text 281 202 copy from value 10 to 15;
#X msg 73 201 copy array1 10 15 array2;
#X text 280 222 into array2 (starting at 0);
#X text 322 251 copy from value 10 to 15;
#X text 321 271 into array2 starting at 4;
#X msg 92 250 copy array1 10 15 array2 4;
#X msg 368 454 array3;
#X msg 86 414 bang;
#X text 137 412 perform last copy;
#X text 137 429 operation again;
#X text 20 537 creation argument: initial destination array to copy
data to;
#X obj 200 502 symbol;
#X msg 339 428 array2;
#X connect 7 0 3 0;
#X connect 8 0 3 0;
#X connect 11 0 3 0;
#X connect 13 0 3 0;
#X connect 14 0 13 0;
#X connect 17 0 3 0;
#X connect 21 0 3 0;
#X connect 22 0 27 0;
#X connect 23 0 3 0;
#X connect 27 0 3 1;
#X connect 28 0 27 0;