aboutsummaryrefslogtreecommitdiff
path: root/pmpd-help.pd
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2013-06-05 10:10:13 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2013-06-05 10:10:13 +0000
commit9b422d40b1429a59b1e2acc9ffe315232737fe35 (patch)
treee402c1712e8a1737469e4480549d027e77284607 /pmpd-help.pd
parent96382b7eb561d0e6231a1d665eaf878d22fe7b7e (diff)
update help file thanks to Alexandros Drymonitis
svn path=/trunk/externals/pmpd/; revision=17148
Diffstat (limited to 'pmpd-help.pd')
-rw-r--r--pmpd-help.pd723
1 files changed, 351 insertions, 372 deletions
diff --git a/pmpd-help.pd b/pmpd-help.pd
index 3e2c339..3e386ad 100644
--- a/pmpd-help.pd
+++ b/pmpd-help.pd
@@ -1,4 +1,4 @@
-#N canvas 1190 226 566 769 10;
+#N canvas 171 123 590 764 10;
#X obj 4 369 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577
0;
#X obj 5 709 cnv 15 550 40 empty empty empty 20 12 0 14 -158509 -66577
@@ -26,7 +26,7 @@
#X text 11 602 Outlets:;
#X text 19 659 See Also:;
#X text 74 48 Full Name:;
-#N canvas 58 50 262 70 Related_Objects 0;
+#N canvas 56 110 262 70 Related_Objects 0;
#X obj 3 10 cnv 15 250 15 empty empty empty 20 12 0 14 -158509 -66577
0;
#X obj 3 30 cnv 15 250 30 empty empty empty 20 12 0 14 -233017 -66577
@@ -34,8 +34,8 @@
#X text 5 10 Externals and libraries;
#X obj 44 37 pmpd2d;
#X obj 140 37 pmpd3d;
-#X restore 122 715 pd Related_Objects;
-#N canvas 541 387 524 302 init 0;
+#X restore 122 716 pd Related_Objects;
+#N canvas 537 397 524 302 init 0;
#X msg 89 187 Xmax 127 \, Xmin 0;
#X obj 89 215 t a;
#X obj 89 33 loadbang;
@@ -65,12 +65,12 @@ souple 3 2 1 0.5;
#X obj 17 344 s \$0-out;
#X obj 17 295 r \$0-in;
#X obj 261 184 vsl 15 127 0 127 0 0 empty empty Drag-----> -70 60 1
-10 -262144 -1 -1 0 1;
+10 -262144 -1 -1 4400 1;
#X obj 292 184 vsl 15 127 0 127 0 0 empty empty empty 0 -8 0 8 -262144
--1 -1 0 1;
+-1 -1 4400 1;
#X obj 261 345 s \$0-in;
#X msg 261 322 posX fix \$1;
-#N canvas 565 515 355 193 compute 0;
+#N canvas 561 581 355 193 compute 0;
#X obj 159 37 inlet;
#X obj 159 74 metro 20;
#X obj 159 135 s \$0-in;
@@ -86,23 +86,19 @@ souple 3 2 1 0.5;
-1 -1;
#X obj 261 131 route massesPosL;
#X obj 311 184 vsl 15 127 0 127 0 0 empty empty empty 0 -8 0 8 -262144
--1 -1 0 1;
+-1 -1 4400 1;
#X obj 330 184 vsl 15 127 0 127 0 0 empty empty empty 0 -8 0 8 -262144
--1 -1 0 1;
+-1 -1 4400 1;
#X obj 261 152 unpack f f f f;
-#X text 101 388 Bang - A bang at the left inlet compute the new model
-state based on previous instant.;
-#X text 188 478 To set the model parameters after creation.;
-#X text 188 456 To create the model masses and links.;
-#X text 186 512 To get the model parameters;
+#X text 160 477 To set the model parameters after creation.;
+#X text 160 458 To create the model masses and links.;
#X text 103 582 None;
#X text 18 623 - Left:;
#X text 101 624 Outputs the model parameters asked with the attributes
messages.;
#X text 101 420 Messages - Different messages are used to control the
msd object. They are of three types :;
-#X text 9 681 CATEGORY: control;
-#X text 9 691 KEYWORDS: physical model mass spring damper link;
+#X text 9 680 CATEGORY: control;
#X text 111 659 01_msdtest.pd;
#X obj 157 48 pmpd;
#X text 12 8 HELP: pmpd;
@@ -112,282 +108,264 @@ msd object. They are of three types :;
#X text 266 716 - Cyrille Henry \, 2011;
#X text 283 732 based on MSD by Nicolas Montgermont;
#X obj 17 187 loadbang;
-#N canvas 414 430 1213 533 links_attributes 0;
+#N canvas 181 157 606 881 links_attributes 0;
#X obj 5 3 cnv 15 590 15 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X obj 10 248 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
+#X obj 9 221 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X obj 4 227 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
+#X obj 9 201 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
0;
#X text 7 2 ATTRIBUTES Messages;
-#X text 7 227 Lists :;
-#X obj 11 302 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
+#X text 12 201 Lists :;
+#X obj 10 274 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X obj 11 358 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
+#X obj 11 327 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X obj 611 26 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
+#X obj 11 460 cnv 15 170 200 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X obj 605 5 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
+#X obj 11 439 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
0;
-#X obj 612 80 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
+#X text 257 419 \$1 (optional): Masses Id;
+#X text 284 800 \$2 (optional): Masses Id;
+#X text 283 787 \$1 : table name;
+#X text 14 439 tables :;
+#X text 169 233 Output all links center positions in a list on outlet
+No 1;
+#X obj 11 380 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X obj 612 133 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
+#X text 183 469 Output all links center positions in a table (\$1)
+;
+#X obj 8 95 cnv 15 150 100 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X text 349 475 \$1 (optional): Masses Id;
-#X text 834 260 \$2 (optional): Masses Id;
-#X text 833 247 \$1 : table name;
-#X text 608 5 tables :;
+#X msg 16 103 linkPos [\$1];
+#X msg 16 138 linkEnd [\$1];
+#X obj 8 74 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
+0;
+#X text 11 74 generic :;
+#X text 196 116 linkPos symbolId number center;
+#X text 199 154 linkEnd symbolId number posX1 posX2;
+#X obj 11 664 cnv 15 170 200 empty empty empty 20 12 0 14 -233017 -66577
+0;
+#X msg 25 672 linkEndT \$1 [\$2];
+#X msg 34 692 linkEnd1T \$1 [\$2];
+#X msg 34 711 linkEnd2T \$1 [\$2];
+#X msg 34 730 linkEndXT \$1 [\$2];
+#X msg 34 749 linkEnd1XT \$1 [\$2];
+#X msg 34 768 linkEnd2XT \$1 [\$2];
+#X msg 34 787 linkEndYT \$1 [\$2];
+#X msg 34 806 linkEnd1YT \$1 [\$2];
+#X msg 34 825 linkEnd2YT \$1 [\$2];
+#X text 216 703 table is posX1 posY1 posX2 posY2 ....;
+#X msg 18 231 linkPosL (\$1);
+#X msg 18 250 linkPosXL (\$1);
+#X msg 19 281 linkLengthL (\$1);
+#X msg 19 300 linkLengthXL (\$1);
+#X msg 18 334 linkPosSpeedL (\$1);
+#X msg 18 353 linkPosSpeedXL (\$1);
+#X msg 18 387 linkLengthSpeedL (\$1);
+#X msg 18 406 linkLengthSpeedXL (\$1);
+#X msg 15 465 linkPosT \$1 (\$2);
+#X msg 15 484 linkPosXT \$1 (\$2);
+#X msg 16 512 linkLengthT \$1 (\$2);
+#X msg 16 531 linkLengthXT \$1 (\$2);
+#X msg 16 562 linkPosSpeedT \$1 (\$2);
+#X msg 16 581 linkPosSpeedXT \$1 (\$2);
+#X msg 16 612 linkLengthSpeedT \$1 (\$2);
+#X msg 16 631 linkLengthSpeedXT \$1 (\$2);
#X text 15 30 The attributes messages ask the object to output some
-of his internal parameters. They can be output by lists for positions
+of its internal parameters. They can be output as lists for positions
and forces of links;
-#X text 170 260 Output all links center positions in a list on outlet
-No 1;
-#X obj 12 414 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X text 184 422 Output all link lenght deformation speed in a list
-on outlet No 1;
-#X obj 612 189 cnv 15 150 50 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X text 808 197 Output all link lenght deformation speed in a list
-on outlet No 1;
-#X text 793 47 Output all links center positions in a table (\$1);
-#X text 170 313 Output all link lenght in a list on outlet No 1;
-#X text 171 372 Output all link center speed in a list on outlet No
+#X text 200 175 \$1 : Id float or symbol of masses (nothing for all)
+;
+#X text 167 99 output a message for every link :;
+#X text 167 138 output a message for every link :;
+#X text 169 285 Output all links length in a list on outlet No 1;
+#X text 171 341 Output all links center speed in a list on outlet No
1;
-#X text 797 94 Output all link length in a list on outlet No 1;
-#X text 795 144 Output all link center speed in a list on outlet No
+#X text 171 387 Output all links length deformation speed in a list
+on outlet No 1;
+#X text 181 515 Output all links length in a list on outlet No 1;
+#X text 183 563 Output all links center speed in a list on outlet No
1;
-#X obj 8 95 cnv 15 150 100 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X text 172 100 \$1 : id float or symbol of masses (nothing for all)
-;
-#X text 172 160 \$1 : id float or symbol of masses (nothing for all)
-;
-#X msg 12 103 linkPos [\$1];
-#X msg 12 163 linkEnd [\$1];
-#X text 173 120 output a message for every links :;
-#X text 173 180 output a message for every links :;
-#X obj 2 76 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
-0;
-#X text 5 76 generic :;
-#X text 202 137 linkPos symbolId number center;
-#X text 172 196 linkEnd symbolId number posX1 posX2;
-#X obj 614 323 cnv 15 150 200 empty empty empty 20 12 0 14 -233017
--66577 0;
-#X obj 608 302 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
-0;
-#X text 611 302 tables :;
-#X msg 628 331 linkEndT \$1 [\$2];
-#X text 790 331 Put position of the 2 link end on a table [\$1] \,
-filter on link id is possible;
-#X msg 640 351 linkEnd1T \$1 [\$2];
-#X msg 639 371 linkEnd2T \$1 [\$2];
-#X msg 638 392 linkEndXT \$1 [\$2];
-#X msg 638 411 linkEnd1XT \$1 [\$2];
-#X msg 638 431 linkEnd2XT \$1 [\$2];
-#X msg 639 453 linkEndYT \$1 [\$2];
-#X msg 641 473 linkEnd1YT \$1 [\$2];
-#X msg 640 493 linkEnd2YT \$1 [\$2];
-#X text 795 363 table is posX1 posY1 posX2 posY2 ....;
-#X msg 11 259 linkPosL (\$1);
-#X msg 11 278 linkPosXL (\$1);
-#X msg 13 309 linkLengthL (\$1);
-#X msg 13 328 linkLengthXL (\$1);
-#X msg 16 365 linkPosSpeedL (\$1);
-#X msg 16 384 linkPosSpeedXL (\$1);
-#X msg 14 421 linkLengthSpeedL (\$1);
-#X msg 14 440 linkLengthSpeedXL (\$1);
-#X msg 615 38 linkPosT \$1 (\$2);
-#X msg 616 57 linkPosXT \$1 (\$2);
-#X msg 616 92 linkLengthT \$1 (\$2);
-#X msg 616 111 linkLengthXT \$1 (\$2);
-#X msg 616 139 linkPosSpeedT \$1 (\$2);
-#X msg 616 158 linkPosSpeedXT \$1 (\$2);
-#X msg 614 196 linkLengthSpeedT \$1 (\$2);
-#X msg 613 215 linkLengthSpeedXT \$1 (\$2);
-#X restore 12 519 pd links_attributes ___;
-#N canvas 306 101 1146 821 dynamic 0;
-#X obj 5 3 cnv 15 550 15 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X obj 10 85 cnv 15 130 580 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X obj 4 62 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577
-0;
-#X obj 575 86 cnv 15 130 380 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X obj 568 62 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577
-0;
-#X text 7 62 Masses :;
-#X text 571 62 Links :;
-#X text 7 2 DYNAMIC SETTINGS Messages;
-#X text 190 144 Add force on mass(es);
-#X msg 30 152 forceX \$1 \$2;
-#X text 192 212 \$1 : Value;
-#X text 193 107 \$1 : Id (symbol) or No;
-#X text 193 161 \$1 : Id (symbol) or No;
-#X msg 29 244 setMobile \$1;
-#X msg 29 265 setFixed \$1;
-#X text 193 89 Set position of fixed mass(es);
-#X text 193 125 \$2 : Value;
-#X text 193 179 \$2 : Value;
-#X text 189 196 Set minimimum and maximum position of all masses;
-#X text 188 244 Set mass to mobile or fixed;
-#X msg 594 150 setD \$1 \$2;
-#X text 749 136 \$2 : New value;
-#X msg 594 99 setK \$1 \$2;
-#X text 749 192 \$2 : New value;
-#X text 749 245 \$2 : New value;
-#X text 743 100 Set rigidity of link(s);
-#X text 743 156 Set damping of link(s);
-#X msg 594 205 setL \$1 \$2;
-#X text 743 209 Set initial lenght of link(s);
-#X text 749 118 \$1 : Id (symbol) or No;
-#X text 749 174 \$1 : Id (symbol) or No;
-#X text 749 227 \$1 : Id (symbol) or No;
-#X text 191 261 \$1 : Id (symbol) or No;
-#X text 10 25 Dynamic settings messages allows the user to redefine
-internal parameters of links and masses.;
-#X msg 26 610 setDEnv \$1;
-#X text 173 612 Change environement damping;
-#X text 185 629 \$1 : damping;
-#X msg 584 358 setLinkId \$1 \$2;
-#X text 738 359 Change the Id of a link;
-#X text 739 376 \$1 : link (number or Id);
-#X text 742 393 \$2 : New Id;
-#X msg 587 431 setLKTab \$1 \$2;
-#X text 746 431 change the table (K) size of a non linear link;
-#X text 747 451 \$1 : link (number or Id);
-#X text 748 468 \$2 : New KL;
-#X text 747 513 \$1 : link (number or Id);
-#X msg 587 493 setLDTab \$1 \$2;
-#X text 746 493 change the table (D) size of a non linear link;
-#X text 748 530 \$2 : New DL;
+#X text 184 612 Output all links length deformation speed in a list
+on outlet No 1;
+#X text 187 672 Put position of the 2 link end on a table [\$1] \,
+filter on link Id is possible;
+#X restore 12 517 pd links_attributes ___;
+#N canvas 165 110 997 789 dynamic 0;
+#X obj 5 3 cnv 15 900 15 empty empty empty 20 12 0 14 -233017 -66577
+0;
+#X obj 10 85 cnv 15 130 650 empty empty empty 20 12 0 14 -233017 -66577
+0;
+#X obj 4 62 cnv 15 450 15 empty empty empty 20 12 0 14 -158509 -66577
+0;
+#X obj 465 86 cnv 15 130 650 empty empty empty 20 12 0 14 -233017 -66577
+0;
+#X obj 458 62 cnv 15 450 15 empty empty empty 20 12 0 14 -158509 -66577
+0;
+#X text 20 62 Masses :;
+#X text 471 62 Links :;
+#X text 17 2 DYNAMIC SETTINGS Messages;
+#X text 148 149 Add force on mass(es);
+#X msg 21 152 forceX \$1 \$2;
+#X text 188 212 \$1 : Value;
+#X text 187 109 \$1 : Id (symbol) or No;
+#X text 188 164 \$1 : Id (symbol) or No;
+#X msg 20 244 setMobile \$1;
+#X msg 20 265 setFixed \$1;
+#X text 146 94 Set position of fixed mass(es);
+#X text 187 125 \$2 : Value;
+#X text 188 179 \$2 : Value;
+#X text 147 196 Set minimimum and maximum position of all masses;
+#X text 147 244 Set mass to mobile or fixed;
+#X msg 476 150 setD \$1 \$2;
+#X text 639 136 \$2 : New value;
+#X msg 475 99 setK \$1 \$2;
+#X text 639 192 \$2 : New value;
+#X text 639 245 \$2 : New value;
+#X text 607 100 Set rigidity of link(s);
+#X text 606 156 Set damping of link(s);
+#X msg 477 205 setL \$1 \$2;
+#X text 639 118 \$1 : Id (symbol) or No;
+#X text 639 174 \$1 : Id (symbol) or No;
+#X text 639 227 \$1 : Id (symbol) or No;
+#X text 189 261 \$1 : Id (symbol) or No;
+#X msg 21 610 setDEnv \$1;
+#X text 148 612 Change environement damping;
+#X text 184 629 \$1 : damping;
+#X msg 477 342 setLinkId \$1 \$2;
+#X text 608 343 Change the Id of a link;
+#X text 639 360 \$1 : link (number or Id);
+#X text 639 377 \$2 : New Id;
+#X msg 477 399 setLKTab \$1 \$2;
+#X text 606 399 change the table (K) size of a non linear link;
+#X text 637 419 \$1 : link (number or Id);
+#X text 638 436 \$2 : New KL;
+#X text 637 469 \$1 : link (number or Id);
+#X msg 477 456 setLDTab \$1 \$2;
+#X text 606 456 change the table (D) size of a non linear link;
+#X text 638 479 \$2 : New DL;
#X text 190 401 \$2 : New Id;
-#X msg 24 367 setMassId \$1 \$2;
-#X text 190 367 Change the Id of a mass;
+#X msg 22 367 setMassId \$1 \$2;
+#X text 148 367 Change the Id of a mass;
#X text 191 384 \$1 : mass (number or Id);
#X msg 22 428 setForce \$1 \$2;
#X msg 22 496 setSpeed \$1 \$2;
-#X msg 23 559 addPos \$1 \$2;
+#X msg 21 559 addPos \$1 \$2;
#X text 185 448 \$1 : Id (symbol) or No;
#X text 185 466 \$2 : Value;
-#X text 182 431 set force on mass(es);
+#X text 148 431 set force on mass(es);
#X text 184 515 \$1 : Id (symbol) or No;
#X text 184 533 \$2 : Value;
-#X text 181 498 set speed of a mass(es);
+#X text 147 498 set speed of a mass(es);
#X text 183 576 \$1 : Id (symbol) or No;
#X text 183 594 \$2 : Value;
-#X text 180 559 add pos of a mass(es);
-#X text 185 299 grab a mass \, and move it;
+#X text 147 559 add pos of a mass(es);
+#X text 147 299 grab a mass \, and move it;
#X text 187 317 \$1 : position;
#X text 187 333 \$2 : grab or not (0 or 1);
-#X msg 28 300 grabMass \$1 \$2;
-#X msg 31 96 SetPosX \$1 \$2;
-#X msg 31 116 SetPos \$1 \$2;
-#X msg 30 172 force \$1 \$2;
-#X msg 30 195 minX \$1;
-#X msg 30 217 maxX \$1;
-#X msg 90 195 min \$1;
-#X msg 90 217 max \$1;
-#X text 180 690 \$2 : damping;
-#X text 179 675 \$1 : Id (symbol) or No;
-#X msg 16 659 setDEnvOffset \$1 \$2;
-#X text 168 659 Change environement damping offset;
+#X msg 20 300 grabMass \$1 \$2;
+#X msg 22 96 SetPosX \$1 \$2;
+#X msg 22 116 SetPos \$1 \$2;
+#X msg 21 172 force \$1 \$2;
+#X msg 21 195 minX \$1;
+#X msg 21 217 maxX \$1;
+#X msg 81 195 min \$1;
+#X msg 81 217 max \$1;
+#X text 183 690 \$2 : damping;
+#X text 182 675 \$1 : Id (symbol) or No;
+#X msg 19 659 setDEnvOffset \$1 \$2;
+#X text 145 659 Change environement damping offset;
#X msg 22 448 setForceX \$1 \$2;
#X msg 22 516 setSpeedX \$1 \$2;
-#X msg 23 579 addPosX \$1 \$2;
-#X text 721 272 Set initial lenght of link(s);
-#X text 727 290 \$1 : Id (symbol) or No;
-#X msg 581 271 setLCurrent \$1 [\$2];
-#X text 727 308 \$2 : mix between link size (0) and curent length (1)
+#X msg 21 579 addPosX \$1 \$2;
+#X text 637 284 \$1 : Id (symbol) or No;
+#X msg 477 265 setLCurrent \$1 [\$2];
+#X text 637 302 \$2 : mix between link size (0) and curent length (1)
;
-#X text 722 326 if no \$2 arg is provide \, then L is set to curent
+#X text 636 561 \$1 : link (number or Id);
+#X text 635 517 \$1 : link (number or Id);
+#X msg 477 541 setActive \$1 \$2;
+#X msg 477 497 setInactive \$1 \$2;
+#X text 603 541 compute the link at each bang;
+#X text 631 628 \$1 : link (number or Id);
+#X msg 476 585 setOverdamp \$1 \$2;
+#X text 631 642 \$2 : overdamp value;
+#X text 633 685 \$1 : link (number or Id);
+#X msg 478 666 setEnd \$1 \$2 \$3;
+#X text 632 701 \$2 : mass number for end 1;
+#X text 602 668 Change the masses a link is connected to;
+#X text 631 717 \$3 : mass number for end 2;
+#X msg 498 689 setEnd1 \$1 \$2;
+#X msg 498 711 setEnd2 \$1 \$2;
+#X text 10 25 Dynamic settings messages allow the user to redefine
+internal parameters of links and masses.;
+#X text 636 320 if no \$2 arg is provided \, then L is set to curent
length;
-#X text 600 786 if only 1 argument is previded \, message generally
-used this argument as the value applayed to all masses (or link);
-#X text 746 596 \$1 : link (number or Id);
-#X text 745 552 \$1 : link (number or Id);
-#X msg 586 576 setActive \$1 \$2;
-#X msg 585 532 setInactive \$1 \$2;
-#X text 744 532 did not compute a link anymore;
-#X text 745 576 compute the link at each bang;
-#X text 741 663 \$1 : link (number or Id);
-#X msg 586 620 setOverdamp \$1 \$2;
-#X text 741 677 \$2 : overdamp value;
-#X text 740 621 Change the overdamp of a link. i.e a strange parametter
-that amplifie forces that oposed to movment. Use at your own risk.
+#X text 489 750 if only 1 argument is provided \, message generally
+uses this argument as the value applayed to all masses (or link);
+#X text 604 497 do not compute a link anymore;
+#X text 603 586 Change the overdamp of a link. i.e a strange parametter
+that amplifies forces that oppose to movment. Use at your own risk.
;
-#X text 743 724 \$1 : link (number or Id);
-#X msg 588 705 setEnd \$1 \$2 \$3;
-#X text 742 740 \$2 : mass number for end 1;
-#X text 742 707 Change the masses a link is connected to;
-#X text 741 756 \$3 : mass number for end 2;
-#X msg 600 728 setEnd1 \$1 \$2;
-#X msg 600 750 setEnd2 \$1 \$2;
-#X restore 12 478 pd dynamic settings ___;
-#N canvas 1072 165 630 814 creation____________ 0;
-#X obj 11 95 cnv 15 100 35 empty empty empty 20 12 0 14 -233017 -66577
+#X text 603 209 Set initial length of link(s);
+#X text 611 266 Set initial length of link(s);
+#X restore 12 477 pd dynamic settings ___;
+#N canvas 579 169 571 697 creation____________ 0;
+#X obj 11 95 cnv 15 100 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 5 75 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577
0;
#X obj 5 3 cnv 15 550 15 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 7 2 CREATION Messages;
-#X obj 10 186 cnv 15 150 140 empty empty empty 20 12 0 14 -233017 -66577
+#X obj 9 191 cnv 15 240 140 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 4 167 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577
0;
-#X obj 10 362 cnv 15 240 220 empty empty empty 20 12 0 14 -233017 -66577
+#X obj 10 361 cnv 15 240 330 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 3 338 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577
0;
#X msg 32 104 reset;
-#X text 202 197 Add a mass;
-#X text 288 198 \$1 : Id (symbol);
-#X text 287 218 \$2 : fixed or mobile (0/1);
-#X text 287 236 \$3 : mass;
-#X msg 32 197 mass \$1 \$2 \$3 \$4;
-#X text 287 254 \$4 : initial position;
+#X text 262 197 Add a mass;
+#X text 290 220 \$1 : Id (symbol);
+#X text 289 240 \$2 : fixed or mobile (0/1);
+#X text 289 258 \$3 : mass;
+#X msg 23 197 mass \$1 \$2 \$3 \$4;
+#X text 289 276 \$4 : initial position;
#X text 7 167 Masses :;
#X text 7 74 Reset :;
#X text 129 105 Delete all masses \, links and internal variables;
#X text 6 338 Links :;
-#X text 271 390 \$1 : Id (symbol);
-#X text 271 390 \$1 : Id (symbol);
-#X text 271 443 \$4 : rigidity;
-#X text 271 408 \$2 : creation No/Id of mass1;
-#X text 271 426 \$3 : creation No/Id of mass2;
+#X text 291 390 \$1 : Id (symbol);
+#X text 291 390 \$1 : Id (symbol);
+#X text 291 443 \$4 : rigidity;
+#X text 291 408 \$2 : creation No/Id of mass1;
+#X text 291 426 \$3 : creation No/Id of mass2;
#X text 266 371 Add link(s);
-#X text 271 461 \$5 : damping;
+#X text 291 461 \$5 : damping;
#X text 10 28 Creation messages are used to define the structure of
the model. Messages create links and masses or destroy them.;
-#X text 271 479 \$6 : Power of the rigidity distance;
-#X msg 35 549 tabLink \$1 \$2 \$3 \$4 \$5 \$6 \$7;
-#X text 267 498 (\$7) : minimum lenght of link;
-#X text 268 515 (\$8) : maximum lenght of link;
-#X text 266 565 \$1 : Id (symbol);
-#X text 266 565 \$1 : Id (symbol);
-#X text 266 583 \$2 : creation No/Id of mass1;
-#X text 266 601 \$3 : creation No/Id of mass2;
-#X text 261 546 Add non linear link(s);
-#X text 264 618 \$4 : table name for the rigidity;
-#X text 264 636 \$5 : length of the table;
-#X text 264 654 \$6 : table name for the damping;
-#X text 263 673 \$7 : length of the table;
-#X msg 33 131 print;
-#X text 103 131 post surrent physical model topology;
-#X msg 30 371 link \$1 \$2 \$3 \$4 \$5 [\$6 [\$7 [\$8 ]]];
+#X text 291 479 \$6 : Power of the rigidity distance;
+#X msg 20 549 tabLink \$1 \$2 \$3 \$4 \$5 \$6 \$7;
+#X text 292 565 \$1 : Id (symbol);
+#X text 292 565 \$1 : Id (symbol);
+#X text 292 583 \$2 : creation No/Id of mass1;
+#X text 292 601 \$3 : creation No/Id of mass2;
+#X text 261 549 Add non linear link(s);
+#X text 292 618 \$4 : table name for the rigidity;
+#X text 292 636 \$5 : length of the table;
+#X text 292 654 \$6 : table name for the damping;
+#X text 292 672 \$7 : length of the table;
+#X msg 33 130 print;
+#X msg 19 371 link \$1 \$2 \$3 \$4 \$5 [\$6 [\$7 [\$8 ]]];
+#X text 128 130 post current physical model topology;
+#X text 287 498 [\$7] : minimum lenght of link;
+#X text 288 515 [\$8] : maximum lenght of link;
#X restore 12 457 pd creation____________;
-#N canvas 0 50 901 640 More_Info 0;
+#N canvas 50 82 901 640 More_Info 0;
#X text 96 12 pmpd : mass - spring - damper model;
-#X text 27 155 Be careful : if masses are deleted \, lists messages
-won't work;
-#X text 27 60 It is designed to implement particules physical model
-in PD.The model is based on two elements type : mass and link. The
-pmpd masses are the principals objects of the model. They got only
-one physical parameter \, the value of their mass. They can be mobile
-or fixed \, in this case forces applied on them automatically \, by
-links \, or manually \, by messages \, don't do anything.;
#X obj 426 -5 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 426 294 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
@@ -400,7 +378,7 @@ links \, or manually \, by messages \, don't do anything.;
#X coords 0 3 3 -3 200 150 1;
#X restore 31 428 graph;
#X text 89 585 L0;
-#N canvas 324 73 956 727 figure 0;
+#N canvas 113 82 956 727 figure 0;
#X obj 284 53 loadbang;
#X msg 293 125 \; rigidity1 resize 1 \; rigidity1 resize 4 \; rigidity1
bounds 0 3 3 -3 \; rigidity1 0 -1 0 1 2 \; rigidity1 ylabel -0.5 \;
@@ -566,166 +544,167 @@ rigidity2 yticks 0 5 5 \; rigidity3 resize 51 \; rigidity3 xticks 0
#X text 496 75 else;
#X text 496 95 F[n] = D(L[n]-L[n-1]);
#X text 496 54 F[n] = K(L[n] - L[0])^P + D(L[n] - L[n-1]);
-#X text 28 187 Links connect masses two by two. They got 4 physicals
-parameters : length \, rigidity \, damping and power.;
-#X text 27 216 Rigidity \, damping and power are defined by the creation
-message. The lenght is initialised to the distance between the two
-masses at the creation.;
#X text 495 124 For oriented links \, the force F[n] is projected onto
a vector which is given during the creation of the link using x1y1
coordinates.;
-#X text 495 169 For normal vector \, the direction is calculated using
-the scalar product :;
-#X text 495 248 You can build specific links using different links
-messages defining the characteristic step by step.;
#X text 496 206 x1x2 + y1y2 = 0;
-#X text 27 257 Links can be created in one shot between mutiples masses
-\, instead of creation number \, the masses linked are defined with
-their Id.;
+#X text 495 169 For normal vectors \, the direction is calculated using
+the scalar product :;
+#X text 495 248 You can build specific links using different link messages
+defining the characteristic step by step.;
#X text 28 41 pmpd is the 2D object of the pmpd objects collection.
;
-#X connect 3 0 4 0;
+#X text 27 155 Be careful : if masses are deleted \, list messages
+won't work;
+#X text 27 216 Rigidity \, damping and power are defined by the creation
+messages. The lenght is initialised to the distance between the two
+masses at creation.;
+#X text 27 257 Links can be created in one shot between multiple masses
+\, instead of creation number \, the masses linked are defined by their
+Id.;
+#X text 28 187 Links connect masses two by two. They've got 4 physical
+parameters : length \, rigidity \, damping and power.;
+#X text 27 60 It is designed to implement particle physical models
+in PD.The model is based on a two element type : mass and link. The
+pmpd masses are the principal objects of the model. They've got only
+one physical parameter \, the value of their mass. They can be mobile
+or fixed \, in this case forces applied to them automatically \, by
+links \, or manually \, by messages \, don't do anything.;
+#X connect 1 0 2 0;
#X restore 18 715 pd More_Info;
-#N canvas 809 128 638 809 masses_attributes___ 0;
+#N canvas 424 172 607 825 masses_attributes___ 0;
#X obj 5 3 cnv 15 590 15 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X obj 10 307 cnv 15 150 95 empty empty empty 20 12 0 14 -233017 -66577
+#X obj 7 307 cnv 15 150 100 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X obj 4 287 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
+#X obj 5 286 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
0;
#X text 7 2 ATTRIBUTES Messages;
-#X text 7 287 Lists :;
-#X text 15 30 The attributes messages ask the object to output some
-of his internal parameters. They can be output by lists for positions
-and forces of masses.;
-#X text 171 320 Output all masses positions in a list on outlet;
-#X text 169 349 Output all forces applied on masses in a list on outlet
+#X text 8 286 Lists :;
+#X text 168 320 Output all masses positions in a list on outlet;
+#X text 169 341 Output all forces applied on masses in a list on outlet
;
-#X text 170 379 Output all speeds of the masses in a list on outlet
+#X text 170 362 Output all speeds of the masses in a list on outlet
;
-#X obj 14 438 cnv 15 150 95 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X obj 8 418 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
-0;
-#X text 11 418 Tables :;
-#X text 176 450 Output all masses positions in a table (\$1 = table
-name \, \$2 (optional): Masses Id);
-#X text 174 479 Output all forces applied on masses in a table (\$1
-= table name \, \$2 (optional): Masses Id);
-#X text 174 510 Output all speeds of the masses in a table (\$1 = table
-name \, \$2 (optional): Masses Id);
-#X text 170 333 \$1 (optional): Masses Id;
-#X text 170 363 \$1 (optional): Masses Id;
-#X text 171 392 \$1 (optional): Masses Id;
-#X obj 11 669 cnv 15 150 95 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X obj 5 649 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
-0;
-#X text 171 677 output the closest mass;
-#X text 170 691 \$1 : position;
-#X text 8 649 others :;
-#X msg 16 677 closestMass \$1 (\$2);
-#X text 170 706 \$2 : none or Id;
+#X obj 8 435 cnv 15 150 95 empty empty empty 20 12 0 14 -233017 -66577
+0;
+#X obj 8 414 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
+0;
+#X text 206 383 \$1 (optional): Masses Id;
+#X obj 9 658 cnv 15 150 150 empty empty empty 20 12 0 14 -233017 -66577
+0;
+#X obj 9 637 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
+0;
+#X text 172 666 output the closest mass;
+#X text 201 680 \$1 : position;
+#X text 12 637 others :;
+#X msg 17 666 closestMass \$1 (\$2);
+#X text 201 695 \$2 : none or Id;
#X obj 5 75 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
0;
#X text 7 74 General :;
-#X obj 10 97 cnv 15 150 150 empty empty empty 20 12 0 14 -233017 -66577
+#X obj 6 98 cnv 15 150 180 empty empty empty 20 12 0 14 -233017 -66577
0;
#X msg 14 105 massPos [\$1];
-#X text 187 106 \$1 : id float or symbol of masses (nothing for all)
-;
-#X text 188 126 output a message for every masses :;
-#X text 218 143 massPos symbolId number posX posY posZ;
-#X text 187 166 \$1 : id float or symbol of masses (nothing for all)
-;
-#X text 188 186 output a message for every masses :;
-#X text 218 203 massPos symbolId number speedX speedY speedZ;
-#X text 187 225 \$1 : id float or symbol of masses (nothing for all)
-;
-#X text 188 241 output a message for every masses :;
+#X text 195 123 massPos symbolId number posX posY posZ;
+#X text 197 184 massPos symbolId number speedX speedY speedZ;
#X msg 14 224 massForce [\$1];
-#X text 218 258 massPos symbolId number forceX forceY forceZ;
+#X text 201 238 massPos symbolId number forceX forceY forceZ;
#X msg 14 165 massSpeed [\$1];
-#X obj 12 546 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
-0;
-#X text 172 600 \$1 : table name;
-#X text 171 619 \$2 : masses name;
-#X text 170 577 apply a force to masses. Force come from a table;
-#X obj 13 567 cnv 15 150 40 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X msg 21 574 forceXT \$1 [\$2];
-#X text 15 546 Table in:;
-#X text 178 733 output a series of message :;
-#X msg 15 732 massDistance [\$1 [\$2]];
-#X text 193 747 distance mass1 mass2 distanceX \, distanceY \, distanceZ
+#X obj 9 538 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
+0;
+#X text 202 592 \$1 : table name;
+#X text 201 611 \$2 : masses name;
+#X obj 10 559 cnv 15 150 70 empty empty empty 20 12 0 14 -233017 -66577
+0;
+#X msg 21 566 forceXT \$1 [\$2];
+#X text 12 538 Table in:;
+#X msg 16 717 massDistance [\$1 [\$2]];
+#X text 199 732 distance mass1 mass2 distanceX \, distanceY \, distanceZ
\, distance;
-#X msg 16 320 massPosL (\$1);
-#X msg 16 348 massForceL (\$1);
-#X msg 17 377 massSpeedL (\$1);
-#X msg 16 451 massPosT \$1 (\$2);
-#X msg 16 479 massForceT \$1 (\$2);
-#X msg 17 509 massSpeedT \$1 (\$2);
-#X restore 12 499 pd masses_attributes___;
-#N canvas 888 238 700 758 statistics 0;
-#X obj 25 41 cnv 15 150 270 empty empty empty 20 12 0 14 -233017 -66577
+#X msg 17 320 massPosL (\$1);
+#X msg 17 340 massForceL (\$1);
+#X msg 17 360 massSpeedL (\$1);
+#X msg 19 445 massPosT \$1 (\$2);
+#X msg 19 465 massForceT \$1 (\$2);
+#X msg 19 485 massSpeedT \$1 (\$2);
+#X text 193 140 \$1 : Id float or symbol of masses (nothing for all)
+;
+#X text 196 200 \$1 : Id float or symbol of masses (nothing for all)
+;
+#X text 200 253 \$1 : Id float or symbol of masses (nothing for all)
+;
+#X text 165 106 output a message for every mass :;
+#X text 166 168 output a message for every mass :;
+#X text 169 225 output a message for every mass :;
+#X text 15 30 The attributes messages ask the object to output some
+of its internal parameters. They can be output as lists for positions
+and forces of masses.;
+#X text 170 569 apply a force to masses. Force comes from a table;
+#X text 175 718 output a series of messages :;
+#X text 11 414 Tables out:;
+#X text 167 444 Output all masses positions on a table;
+#X text 167 465 Output all forces applied on masses on a table;
+#X text 167 485 Output all speeds of the masses on a table;
+#X text 200 517 \$2 (optional): Masses Id);
+#X text 200 502 \$1 = table name;
+#X text 197 760 \$1 (optional): Masses Id;
+#X text 197 776 \$2 (optional): Masses Id;
+#X restore 12 497 pd masses_attributes___;
+#N canvas 414 277 631 464 statistics 0;
+#X obj 20 41 cnv 15 170 150 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 19 21 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
0;
-#X text 185 70 \$1 : none or Id;
-#X text 186 113 \$1 : none or Id;
-#X text 185 163 \$1 : none or Id;
-#X text 187 194 \$1 : none or Id;
-#X text 185 242 \$1 : none or Id;
-#X text 186 279 \$1 : none or Id;
-#X msg 30 54 massPosMean;
-#X msg 31 92 massPosStd \$1;
-#X msg 30 141 massForceMean;
-#X msg 30 179 massForceStd \$1;
-#X msg 31 228 massSpeedMean;
-#X msg 30 262 massSpeedStd \$1;
-#X text 182 178 output the standard deviation of masses force;
-#X text 181 263 output the standard deviation of masses velocity;
+#X text 260 196 \$1 : none or Id;
+#X text 202 119 output the standard deviation of masses force;
+#X text 202 166 output the standard deviation of masses velocity;
#X text 22 21 masses :;
-#X obj 29 357 cnv 15 150 350 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X obj 23 337 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
-0;
-#X text 191 389 \$1 : none or Id;
-#X text 190 421 \$1 : none or Id;
-#X text 192 467 \$1 : none or Id;
-#X text 194 504 \$1 : none or Id;
-#X text 187 562 \$1 : none or Id;
-#X text 193 597 \$1 : none or Id;
-#X msg 38 402 linkPosStd \$1;
-#X msg 37 489 linkLengthStd \$1;
-#X msg 37 572 linkPosSpeedStd \$1;
-#X text 194 637 \$1 : none or Id;
-#X text 196 674 \$1 : none or Id;
-#X msg 38 658 linkLengthSpeedStd \$1;
-#X msg 37 364 linkPosMean \$1;
-#X msg 37 450 linkLengthMean \$1;
-#X msg 38 538 linkPosSpeedMean \$1;
-#X msg 39 618 linkLengthSpeedMean \$1;
-#X text 189 404 output the standard deviation of link center position
-;
-#X text 189 488 output the standard deviation of links length;
-#X text 192 572 output the standard deviation of links center position
+#X obj 23 247 cnv 15 170 180 empty empty empty 20 12 0 14 -233017 -66577
+0;
+#X obj 23 227 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577
+0;
+#X text 246 424 \$1 : none or Id;
+#X text 209 316 output the standard deviation of links length;
+#X text 208 358 output the standard deviation of links center position
velocity;
-#X text 191 658 output the standard deviation of links length change
+#X text 209 405 output the standard deviation of links length change
+;
+#X text 26 227 links :;
+#X text 201 51 output the average position of masses;
+#X text 202 74 output the standard deviation of masses position;
+#X text 202 143 output the average velocity of masses;
+#X text 208 254 output the average position of links center;
+#X text 208 297 output the average links length;
+#X text 208 336 output the average center position velocity of links
;
-#X text 26 337 links :;
-#X text 181 141 output the average force applyed to masses;
-#X text 181 54 output the average position of masses;
-#X text 182 91 output the standard deviation of masses position;
-#X text 181 226 output the average velocity of masses;
-#X text 188 361 output the average position of links center;
-#X text 188 451 output the average links length;
-#X text 188 536 output the average center position velocity of links
+#X text 209 385 output the average change in links length;
+#X text 201 96 output the average force applied to masses;
+#X text 208 274 output the standard deviation of links center position
;
-#X text 190 619 output the average change in links length;
-#X restore 13 541 pd statistics _________;
-#X text 187 543 To get statistical data of the simulation;
-#X connect 20 0 47 0;
+#X msg 30 51 massPosMean [\$1];
+#X msg 30 74 massPosStd [\$1];
+#X msg 31 165 massSpeedStd [\$1];
+#X msg 31 120 massForceStd [\$1];
+#X msg 30 97 massForceMean [\$1];
+#X msg 31 143 massSpeedMean [\$1];
+#X msg 34 254 linkPosMean [\$1];
+#X msg 34 275 linkPosStd [\$1];
+#X msg 34 296 linkLengthMean [\$1];
+#X msg 34 317 linkLengthStd [\$1];
+#X msg 34 338 linkPosSpeedMean [\$1];
+#X msg 34 358 linkPosSpeedStd [\$1];
+#X msg 34 384 linkLengthSpeedMean [\$1];
+#X msg 34 405 linkLengthSpeedStd [\$1];
+#X restore 12 537 pd statistics _________;
+#X text 161 539 To get statistical data of the simulation.;
+#X text 101 388 Bang - A bang at the left inlet computes the new model
+state based on previous time step.;
+#X text 160 498 To get the model parameters (masses).;
+#X text 161 518 To get the model parameters (links).;
+#X text 9 691 KEYWORDS: physical model \, mass \, spring \, damper
+\, link;
+#X connect 20 0 44 0;
#X connect 21 0 24 0;
#X connect 24 0 23 0;
#X connect 26 0 25 0;
@@ -736,5 +715,5 @@ velocity;
#X connect 32 1 22 0;
#X connect 32 2 30 0;
#X connect 32 3 31 0;
-#X connect 47 0 19 0;
-#X connect 50 0 26 0;
+#X connect 44 0 19 0;
+#X connect 47 0 26 0;