aboutsummaryrefslogtreecommitdiff
path: root/mass-help.pd
blob: 2fdd674b1218cc2beaa0dcef3c202ce8ba9cfae3 (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
#N canvas 596 214 695 631 10;
#X text 153 80 M is positive. negative value give non physical things.
;
#X text 304 321 if the position of the masse is < Xmin then position
will be Xmin;
#X msg 123 448 resetF;
#X msg 124 417 reset;
#X text 258 413 reset position (to it's initial value) and forces to
zero. send it's position to it's outlet.;
#X msg 124 356 bang;
#X msg 122 483 loadbang;
#X text 251 485 output curent position;
#X text 262 353 compute position and output it;
#X text 260 387 add force to this mass;
#X msg 120 173 setM 1;
#X text 261 117 1 : name;
#X text 282 135 this is the name of the mass. you can set value to
this name instead of making a pd connection.;
#X text 156 23 mass : get liaison forces and output position;
#X msg 120 283 setXmin -10000 \, setXmax 10000;
#X msg 121 209 setX 0;
#X obj 36 520 mass;
#X floatatom 36 589 5 0 0 0 - - -;
#X floatatom 45 572 5 0 0 0 - - -;
#X floatatom 55 554 5 0 0 0 - - -;
#X text 260 308 Xmin;
#X text 260 324 Xmax;
#X obj 124 386 0;
#X text 317 6 mass;
#X text 283 188 change weight of the mass;
#X text 259 169 2 : M = weight of the mass;
#X text 281 224 change position of the mass \, and reset memory (for
history).;
#X text 258 452 reset the total forces applied to the mass;
#X text 152 37 the sum of the forces apply to a mass modifie its velocity
(depending of it's weight). the position his change according to the
velocity and the weight of the mass;
#X text 259 208 3 : mass position;
#X text 302 307 set the minimum and maximum position of the mass;
#X text 97 553 X velocity of the mass;
#X text 95 572 X force apply to the mass;
#X text 95 590 X positin of the mass;
#X connect 2 0 16 0;
#X connect 3 0 16 0;
#X connect 5 0 16 0;
#X connect 6 0 16 0;
#X connect 10 0 16 0;
#X connect 14 0 16 0;
#X connect 15 0 16 0;
#X connect 16 0 17 0;
#X connect 16 1 18 0;
#X connect 16 2 19 0;
#X connect 22 0 16 0;