aboutsummaryrefslogtreecommitdiff
path: root/pmpd-help.pd
blob: a1d0b7578aeb7c5ef12db1b372418648b1df87e4 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#N canvas 557 109 710 663 10;
#X obj 90 363 pmpd;
#X msg 186 32 reset;
#X text 373 68 Add a mass;
#X text 396 83 \$1 : Id (symbol);
#X text 395 103 \$2 : fixed or mobile (0/1);
#X text 395 121 \$3 : mass;
#X msg 186 55 mass \$1 \$2 \$3 \$4;
#X text 395 139 \$4 : initial position;
#X text 393 195 \$1 : Id (symbol);
#X text 393 248 \$4 : rigidity;
#X text 393 195 \$1 : Id (symbol);
#X text 393 248 \$4 : rigidity;
#X text 393 213 \$2 : creation No/Id of mass1;
#X text 393 231 \$3 : creation No/Id of mass2;
#X text 388 176 Add link(s);
#X text 393 266 \$5 : damping;
#X msg 194 87 link \$1 \$2 \$3 \$4 \$5 (\$6 \$7 \$8);
#X msg 255 216 posX \$1 \$2;
#X text 383 451 Add force on mass(es);
#X msg 254 272 forceX \$1 \$2;
#X text 385 519 \$1 : Value;
#X text 386 414 \$1 : Id (symbol) or No;
#X text 386 468 \$1 : Id (symbol) or No;
#X text 386 396 Set position of fixed mass(es);
#X text 386 432 \$2 : Value;
#X text 386 486 \$2 : Value;
#X text 382 503 Set minimimum and maximum position of all masses;
#X text 381 551 Set mass to mobile or fixed;
#X msg 280 714 setD \$1 \$2;
#X text 377 687 \$2 : New value;
#X msg 280 663 setK \$1 \$2;
#X text 377 743 \$2 : New value;
#X text 377 796 \$2 : New value;
#X text 371 651 Set rigidity of link(s);
#X text 371 707 Set damping of link(s);
#X msg 280 769 setL \$1 \$2;
#X text 371 760 Set initial lenght of link(s);
#X text 377 669 \$1 : Id (symbol) or No;
#X text 377 725 \$1 : Id (symbol) or No;
#X text 377 778 \$1 : Id (symbol) or No;
#X text 384 568 \$1 : Id (symbol) or No;
#X text 214 848 General :;
#X text 214 911 Lists :;
#X msg 240 878 infosL;
#X text 343 878 Get infos on all masses and links on right outlet;
#X msg 239 944 massesPosL;
#X msg 239 972 massesForcesL;
#X text 377 944 Output all masses positions in a list on outlet No
1;
#X text 347 1054 Get specific attribute on specific element;
#X msg 227 1052 get \$1 (\$2);
#X text 347 1155 The get message return the asked attribute preceded
by an identifier and the creation No of the element. The identifier
is made of the asked parameter and the way you asked for it.;
#X text 348 1231 message;
#X text 588 1231 response;
#X text 347 1212 Examples with 3 masses numbered 0 \, 1 and 2 and named
mas:;
#X text 353 1321 [get massesPos mas( -----> [massesPosId 0 x0(;
#X text 542 1336 [massesPosId 2 x2(;
#X text 542 1351 [massesPosId 1 x1(;
#X text 381 1250 [get massesPos( -----> [massesPos 0 x0(;
#X text 542 1264 [massesPos 2 x2(;
#X text 542 1278 [massesPos 1 x1(;
#X text 367 1300 [get massesPos 1( -----> [massesPosNo 1 x1(;
#X text 377 973 Output all forces applied on masses in a list on outlet
No 1;
#X text 347 1122 (\$2) : - If not defined all the attributes are send
for all the elements. - Ids or/and creations No;
#X text 347 1079 \$1 : Attribute type ( massesPos / massesPosName /
massesSpeeds / massesSpeedsName / massesForces / massesForces / linksPos
/ linksPos );
#X text 353 1370 [get massesPosName( -----> [massesPosName name_0 x0(
;
#X text 543 1400 [massesPosName name_1 x1(;
#X text 543 1385 [massesPosName name_2 x2(;
#X msg 179 10 bang;
#X msg 37 35 mass test1 0 1 0;
#X msg 246 22 infosL;
#X msg 40 67 mass test2 1 2 3;
#X text 391 286 (\$6) : Power of the rigidity distance;
#X text 390 303 (\$7) : minimum lenght of link;
#X text 390 320 (\$8) : maximum lenght of link;
#X msg 69 132 link toto 1 test1 3 4 5;
#X msg 79 152 link toto test1 2 3 4 5;
#X msg 89 172 link toto test1 test2 3 4 5;
#X msg 112 200 forceX test2 1;
#X msg 127 228 posX test2 3;
#X msg 179 319 Xmin -1;
#X msg 179 341 Xmax 11;
#X msg 180 368 setMobile test1;
#X msg 178 389 setFixed 1;
#X msg 56 112 link toto1 1 2 3 4 5;
#X msg 144 254 setK toto 4;
#X msg 155 285 setK 1 2;
#X msg 74 444 get massesPos test1;
#X msg 84 464 get massesPos 1;
#X msg 94 484 get massesPos;
#X obj 92 391 print out1;
#X msg 74 504 get massesPosName test1;
#X msg 84 524 get massesPosName 1;
#X msg 94 544 get massesPosName;
#X msg 96 599 get linksPos toto;
#X msg 277 526 massesPosL;
#X msg 277 546 massesForcesL;
#X msg 278 148 link a 1 2 11 22;
#X connect 0 0 89 0;
#X connect 1 0 0 0;
#X connect 6 0 0 0;
#X connect 16 0 0 0;
#X connect 67 0 0 0;
#X connect 68 0 0 0;
#X connect 69 0 0 0;
#X connect 70 0 0 0;
#X connect 74 0 0 0;
#X connect 75 0 0 0;
#X connect 76 0 0 0;
#X connect 77 0 0 0;
#X connect 78 0 0 0;
#X connect 79 0 0 0;
#X connect 80 0 0 0;
#X connect 81 0 0 0;
#X connect 82 0 0 0;
#X connect 83 0 0 0;
#X connect 84 0 0 0;
#X connect 85 0 0 0;
#X connect 86 0 0 0;
#X connect 87 0 0 0;
#X connect 88 0 0 0;
#X connect 90 0 0 0;
#X connect 91 0 0 0;
#X connect 92 0 0 0;
#X connect 93 0 0 0;
#X connect 94 0 0 0;
#X connect 95 0 0 0;
#X connect 96 0 0 0;