-
Notifications
You must be signed in to change notification settings - Fork 2
/
of.gravitation-help.pd
76 lines (76 loc) · 2.13 KB
/
of.gravitation-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
72
73
74
75
76
#N canvas 562 185 626 480 12;
#X declare -lib ofelia;
#X obj 9 10 cnv 15 600 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 17 109 of.draw;
#X msg 453 185 width 50;
#X text 432 122 list of all parameters;
#X text 449 164 Single parameter;
#X msg 433 146 100 400 5 5 center line 3;
#X obj 462 45 declare -lib ofelia;
#X msg 467 234 debug \$1;
#X obj 467 213 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 522 176 ...;
#X text 487 211 Show center axis;
#X obj 518 19 of.window 1;
#X obj 497 21 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 38 215 time \$1;
#X floatatom 38 191 5 0 0 0 - - -;
#X obj 38 141 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 55 138 animate;
#X obj 17 351 of.gravitation;
#X msg 136 133 amount \$1;
#X floatatom 136 104 5 0 0 0 - - -;
#X msg 52 246 random;
#X msg 139 307 speedmax 2 3;
#X msg 138 259 speedmin 0.01 0.1;
#X text 25 20 simulate a gravitation animation (experimental);
#N canvas 343 432 148 225 counter 0;
#X obj 32 20 inlet;
#X obj 32 150 outlet;
#X obj 75 88 + 1;
#X obj 32 60 metro 20;
#X obj 32 88 1000;
#X connect 0 0 3 0;
#X connect 2 0 4 1;
#X connect 3 0 4 0;
#X connect 4 0 2 0;
#X connect 4 0 1 0;
#X restore 38 162 pd counter;
#X obj 433 350 of.gravitation;
#X text 136 239 minimum speed: low high;
#X text 136 289 maximum speed: low high;
#X floatatom 136 170 5 0 0 0 - - -;
#X obj 17 406 of.circle 10;
#X msg 136 211 boundary \$1 \$1 \$1;
#X obj 174 383 print;
#X text 222 382 -> get the x \, y \, z coordinate for each element
, f 21;
#X floatatom 57 381 5 0 0 0 - - -;
#X text 178 101 how many elements (default 100);
#X text 25 40 Args: amount \, boundary x y z;
#X text 139 192 bounding box x \, y \, z;
#X text 99 380 size;
#X connect 1 0 17 0;
#X connect 2 0 25 0;
#X connect 5 0 25 0;
#X connect 7 0 25 0;
#X connect 8 0 7 0;
#X connect 12 0 11 0;
#X connect 13 0 17 0;
#X connect 14 0 13 0;
#X connect 15 0 24 0;
#X connect 17 0 29 0;
#X connect 17 1 31 0;
#X connect 18 0 17 0;
#X connect 19 0 18 0;
#X connect 20 0 17 0;
#X connect 21 0 17 0;
#X connect 22 0 17 0;
#X connect 24 0 14 0;
#X connect 28 0 30 0;
#X connect 30 0 17 0;
#X connect 33 0 29 1;