forked from SynchromaAE/ekext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopyarray-help.pd
65 lines (65 loc) · 2.12 KB
/
copyarray-help.pd
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
63
64
65
#N canvas 228 152 950 447 12;
#X declare -path ekext;
#X text 264 278 source start end destination;
#X obj 502 33 declare -path ekext;
#X obj 143 301 copyarray;
#X msg 143 278 copy \$1 \$2 \$3 \$4;
#N canvas 0 22 450 278 (subpatch) 0;
#X array arraySource 622444 float 2;
#X coords 0 1 622444 -1 200 140 1 0 0;
#X restore 412 76 graph;
#N canvas 0 22 450 278 (subpatch) 0;
#X array arrayDestination 622444 float 2;
#X coords 0 1 622444 -1 200 140 1 0 0;
#X restore 622 76 graph;
#X obj 143 255 pack s f f s;
#X obj 173 56 soundfiler;
#X msg 173 33 read -resize sound/HeadDown.wav arraySource;
#X obj 173 10 loadbang;
#X obj 271 228 loadbang;
#X text 268 157 <---click to copy!;
#X msg 173 79 \; arraySource resize \$1 \; arrayDestination resize \$1;
#X obj 197 207 nbx 6 14 0 622443 0 0 empty empty empty 0 -8 0 12 #fcfcfc #000000 #000000 0 256;
#X obj 170 185 nbx 6 14 0 622443 0 0 empty empty empty 0 -8 0 12 #fcfcfc #000000 #000000 0 256;
#X obj 51 119 - 1;
#X msg 51 183 range 0 \$1;
#X text 274 203 <---end copy;
#X text 246 181 <---start from;
#X msg 652 288 \; arraySource resize 100 \; arrayDestination resize 100;
#X text 649 267 reset array sizes;
#X obj 51 143 t f f;
#X msg 144 338 bang;
#X obj 144 362 tabplay~ arraySource;
#X msg 329 338 bang;
#X obj 329 362 tabplay~ arrayDestination;
#X obj 144 386 dac~;
#X obj 304 386 dac~;
#N canvas 0 23 439 204 credits 0;
#X text 49 69 from the maxlib library;
#X text 50 116 don't try to copy longer than the source array \,;
#X text 50 139 or Pd will likely crash!;
#X text 50 93 with quick (and dirty) improvements.;
#X text 49 45 based on arraycopy by Olaf Mathes;
#X restore 652 243 pd credits and directions;
#X msg 143 158 symbol arraySource;
#X msg 271 251 symbol arrayDestination;
#X connect 3 0 2 0;
#X connect 6 0 3 0;
#X connect 7 0 12 0;
#X connect 7 0 15 0;
#X connect 8 0 7 0;
#X connect 9 0 8 0;
#X connect 10 0 30 0;
#X connect 13 0 6 2;
#X connect 14 0 6 1;
#X connect 15 0 21 0;
#X connect 16 0 14 0;
#X connect 16 0 13 0;
#X connect 21 0 13 0;
#X connect 21 1 16 0;
#X connect 22 0 23 0;
#X connect 23 0 26 0;
#X connect 24 0 25 0;
#X connect 25 0 27 1;
#X connect 29 0 6 0;
#X connect 30 0 6 3;