-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharray-shuffle-help.pd
71 lines (71 loc) · 1.93 KB
/
array-shuffle-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
66
67
68
69
70
71
#N canvas 404 82 624 548 12;
#N canvas 0 22 450 278 (subpatch) 0;
#X array routetable 12 float 3;
#A 0 4 6 3 10 5 1 7 9 0 8 11 2;
#X coords 0 12 12 0 200 140 1 0 0;
#X restore 225 19 graph;
#X obj 328 202 bng 15 250 50 0 empty empty normal_routing 17 7 0 10
-262144 -1 -1;
#X obj 317 302 t f f;
#X obj 307 340 tabwrite routetable;
#X obj 321 251 array size routetable;
#X obj 54 382 route 0 1 2 3 4 5 6 7 8 9 10 11;
#X obj 446 187 bng 15 250 50 0 empty empty random_routing 17 7 0 10
-262144 -1 -1;
#X msg 61 227 \$1 my_message;
#X floatatom 64 180 5 0 11 0 - - -;
#X obj 57 425 print o1;
#X obj 71 446 print o2;
#X obj 295 477 print o11;
#X obj 260 444 print o10;
#X obj 225 410 print o9;
#X obj 198 489 print o8;
#X obj 176 460 print o7;
#X obj 160 421 print o6;
#X obj 157 520 print o5;
#X obj 117 496 print o4;
#X obj 22 404 print o0;
#X obj 93 467 print o3;
#X obj 61 261 list split 1;
#X obj 71 345 list append;
#X obj 62 304 tabread routetable;
#X obj 179 258 print original;
#X text 73 95 shuffles array;
#X text 447 113 could set another array;
#X obj 322 277 iterate;
#N canvas 0 22 450 278 (subpatch) 0;
#X array drawn 12 float 3;
#A 0 4.71439 1.54289 1.71432 4.2001 8.82877 10.5431 10.3717 10.4574
10.4574 9.68594 6.8573 8.65734;
#X coords 0 12 12 0 200 140 1 0 0;
#X restore 390 386 graph;
#X msg 455 138 set drawn;
#X msg 490 162 set routetable;
#X obj 428 221 ./array-shuffle routetable;
#X connect 1 0 4 0;
#X connect 2 0 3 0;
#X connect 2 1 3 1;
#X connect 4 0 27 0;
#X connect 5 0 19 0;
#X connect 5 1 9 0;
#X connect 5 2 10 0;
#X connect 5 3 20 0;
#X connect 5 4 18 0;
#X connect 5 5 17 0;
#X connect 5 6 16 0;
#X connect 5 7 15 0;
#X connect 5 8 14 0;
#X connect 5 9 13 0;
#X connect 5 10 12 0;
#X connect 5 11 11 0;
#X connect 6 0 31 0;
#X connect 7 0 21 0;
#X connect 7 0 24 0;
#X connect 8 0 7 0;
#X connect 21 0 23 0;
#X connect 21 1 22 1;
#X connect 22 0 5 0;
#X connect 23 0 22 0;
#X connect 27 0 2 0;
#X connect 29 0 31 0;
#X connect 30 0 31 0;