diff options
Diffstat (limited to 'pmpd-help.pd')
-rw-r--r-- | pmpd-help.pd | 407 |
1 files changed, 246 insertions, 161 deletions
diff --git a/pmpd-help.pd b/pmpd-help.pd index 284071f..82b4235 100644 --- a/pmpd-help.pd +++ b/pmpd-help.pd @@ -1,23 +1,23 @@ -#N canvas 553 116 575 730 10; +#N canvas 37 61 575 730 10; #X obj 4 369 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 0; -#X obj 5 669 cnv 15 550 40 empty empty empty 20 12 0 14 -158509 -66577 +#X obj 5 689 cnv 15 550 40 empty empty empty 20 12 0 14 -158509 -66577 0; #X obj 8 6 cnv 15 550 30 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 14 389 cnv 15 75 15 empty empty empty 20 12 0 14 -233017 -66577 0; -#X obj 14 584 cnv 15 75 15 empty empty empty 20 12 0 14 -233017 -66577 +#X obj 14 604 cnv 15 75 15 empty empty empty 20 12 0 14 -233017 -66577 0; -#X obj 4 527 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 +#X obj 4 547 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 0; -#X obj 4 562 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 +#X obj 4 582 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 0; #X obj 7 76 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 0; -#X obj 5 619 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 +#X obj 5 639 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 0; -#X obj 5 639 cnv 15 550 30 empty empty empty 20 12 0 14 -233017 -66577 +#X obj 5 659 cnv 15 550 30 empty empty empty 20 12 0 14 -233017 -66577 0; #N canvas 76 31 777 741 More_Info 0; #X text 25 65 It is designed to implement particules physical model @@ -176,13 +176,13 @@ masses at the creation.; #X text 26 46 pmpd is the 1D object of the msd objects collection. ; #X connect 2 0 3 0; -#X restore 16 675 pd More_Info; +#X restore 16 695 pd More_Info; #X text 12 76 Examples:; #X text 9 369 Inlets:; #X text 19 388 - Left:; -#X text 10 526 Arguments:; -#X text 11 562 Outlets:; -#X text 19 619 See Also:; +#X text 10 546 Arguments:; +#X text 11 582 Outlets:; +#X text 19 639 See Also:; #X text 74 48 Full Name:; #N canvas 58 22 262 70 Related_Objects 0; #X obj 3 10 cnv 15 250 15 empty empty empty 20 12 0 14 -158509 -66577 @@ -192,7 +192,7 @@ masses at the creation.; #X text 5 10 Externals and libraries; #X obj 44 37 pmpd2d; #X obj 140 37 pmpd3d; -#X restore 122 675 pd Related_Objects; +#X restore 122 695 pd Related_Objects; #N canvas 541 387 524 302 init 0; #X msg 89 187 Xmax 127 \, Xmin 0; #X obj 89 215 t a; @@ -250,149 +250,112 @@ souple 3 2 1 0.5; #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 158 478 To set the model parameters after creation.; -#X text 158 456 To create the model masses and links.; -#X text 158 501 To get the model parameters; -#N canvas 818 245 561 671 creation________ 0; -#X obj 11 95 cnv 15 100 35 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 156 cnv 15 150 140 empty empty empty 20 12 0 14 -233017 -66577 -0; -#X obj 4 137 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 -0; -#X obj 10 332 cnv 15 240 220 empty empty empty 20 12 0 14 -233017 -66577 -0; -#X obj 3 308 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 -0; -#X msg 32 104 reset; -#X text 202 167 Add a mass; -#X text 288 168 \$1 : Id (symbol); -#X text 287 188 \$2 : fixed or mobile (0/1); -#X text 287 206 \$3 : mass; -#X msg 32 167 mass \$1 \$2 \$3 \$4; -#X text 287 224 \$4 : initial position; -#X text 7 137 Masses :; -#X text 7 74 Reset :; -#X text 129 105 Delete all masses \, links and internal variables; -#X text 6 308 Links :; -#X text 271 360 \$1 : Id (symbol); -#X text 271 360 \$1 : Id (symbol); -#X text 271 413 \$4 : rigidity; -#X text 271 378 \$2 : creation No/Id of mass1; -#X text 271 396 \$3 : creation No/Id of mass2; -#X text 266 341 Add link(s); -#X text 271 431 \$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 msg 30 341 link \$1 \$2 \$3 \$4 \$5 (\$6 \$7 \$8); -#X text 271 449 \$6 : Power of the rigidity distance; -#X msg 35 519 tabLink \$1 \$2 \$3 \$4 \$5 \$6 \$7; -#X text 267 468 (\$7) : minimum lenght of link; -#X text 268 485 (\$8) : maximum lenght of link; -#X text 266 535 \$1 : Id (symbol); -#X text 266 535 \$1 : Id (symbol); -#X text 266 553 \$2 : creation No/Id of mass1; -#X text 266 571 \$3 : creation No/Id of mass2; -#X text 261 516 Add non linear link(s); -#X text 264 588 \$4 : table name for the rigidity; -#X text 264 606 \$5 : length of the table; -#X text 264 624 \$6 : table name for the damping; -#X text 263 643 \$7 : length of the table; -#X restore 12 457 pd creation________; -#X text 103 542 None; -#X text 18 583 - Left:; -#X text 101 584 Outputs the model parameters asked with the attributes +#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 103 562 None; +#X text 18 603 - Left:; +#X text 101 604 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 641 CATEGORY: control; -#N canvas 841 74 1139 731 dynamic 0; -#X obj 5 3 cnv 15 550 15 empty empty empty 20 12 0 14 -233017 -66577 +#X text 9 661 CATEGORY: control; +#X text 9 671 KEYWORDS: physical model mass spring damper link; +#X text 111 639 01_msdtest.pd; +#X obj 157 48 pmpd; +#X text 12 8 HELP: pmpd; +#X text 12 20 DESCRIPTION: physical modeling for pd \, based on msd. +; +#X obj 17 319 pmpd; +#X text 266 696 - Cyrille Henry \, 2011; +#X text 283 712 based on MSD by Nicolas Montgermont; +#X obj 17 187 loadbang; +#N canvas 446 66 1236 814 links_attributes 0; +#X obj 5 3 cnv 15 590 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 +#X obj 10 108 cnv 15 150 110 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 +#X obj 4 87 cnv 15 590 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 +#X text 7 2 ATTRIBUTES Messages; +#X text 7 87 Lists :; +#X obj 11 222 cnv 15 150 110 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 +#X obj 11 335 cnv 15 150 110 empty empty empty 20 12 0 14 -233017 -66577 0; -#X text 7 62 Masses :; -#X text 571 62 Links :; -#X text 7 2 DYNAMIC SETTINGS Messages; -#X msg 31 96 posX \$1 \$2; -#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 30 195 Xmin \$1; -#X msg 30 217 Xmax \$1; -#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 28 286 setDEnv \$1; -#X text 184 287 Change environement damping; -#X text 196 304 \$1 : damping; -#X msg 588 280 setLinkId \$1 \$2; -#X text 742 281 Change the Id of a link; -#X text 743 298 \$1 : link (number or Id); -#X text 746 315 \$2 : New Id; -#X msg 591 353 setLKTab \$1 \$2; -#X text 750 353 change the table (K) size of a non linear link; -#X text 751 373 \$1 : link (number or Id); -#X text 752 390 \$2 : New KL; -#X text 751 435 \$1 : link (number or Id); -#X msg 591 415 setLDTab \$1 \$2; -#X text 750 415 change the table (D) size of a non linear link; -#X text 752 452 \$2 : New DL; -#X text 191 373 \$2 : New Id; -#X msg 25 339 setMassId \$1 \$2; -#X text 191 339 Change the Id of a mass; -#X text 192 356 \$1 : mass (number or Id); -#X msg 23 400 setForce \$1 \$2; -#X msg 23 468 setSpeed \$1 \$2; -#X msg 24 531 addPos \$1 \$2; -#X text 186 420 \$1 : Id (symbol) or No; -#X text 186 438 \$2 : Value; -#X text 183 403 set force on mass(es); -#X text 185 487 \$1 : Id (symbol) or No; -#X text 185 505 \$2 : Value; -#X text 182 470 set speed of a mass(es); -#X text 184 548 \$1 : Id (symbol) or No; -#X text 184 566 \$2 : Value; -#X text 181 531 add pos of a mass(es); -#X msg 26 593 grabMass \$1 \$2 \$3; -#X text 183 592 grab a mass \, and move it; -#X text 185 614 \$1 : mass number; -#X text 185 630 \$2 : position; -#X text 185 646 \$3 : grab or not (0 or 1); -#X restore 12 478 pd dynamic settings; -#N canvas 888 196 1230 682 attributes______ 0; +#X obj 611 26 cnv 15 150 110 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 +0; +#X obj 612 140 cnv 15 150 110 empty empty empty 20 12 0 14 -233017 +-66577 0; +#X obj 612 253 cnv 15 150 110 empty empty empty 20 12 0 14 -233017 +-66577 0; +#X text 369 530 \$1 (optional): Masses Id; +#X text 834 500 \$2 (optional): Masses Id; +#X text 833 487 \$1 : table name; +#X obj 17 584 cnv 15 150 220 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 11 564 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577 +0; +#X msg 22 597 massesPosMean; +#X text 177 613 \$1 : none or Id; +#X msg 23 629 massesPosStd \$1; +#X text 179 644 \$1 : none or Id; +#X text 173 597 output the average position of masses; +#X text 174 628 output the standard deviation of masses position; +#X text 177 674 \$1 : none or Id; +#X text 179 711 \$1 : none or Id; +#X text 173 658 output the average position of masses; +#X text 174 695 output the standard deviation of masses position; +#X text 177 749 \$1 : none or Id; +#X text 178 786 \$1 : none or Id; +#X text 173 733 output the average position of masses; +#X text 173 770 output the standard deviation of masses position; +#X msg 22 696 massesForcesStd \$1; +#X msg 22 658 massesForcesMean; +#X msg 23 735 massesSpeedsMean; +#X msg 22 771 massesSpeedsStd \$1; +#X text 608 5 tables :; +#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 links; +#X text 14 564 statistics (not implemented yet) :; +#X msg 11 119 linksPosL (\$1); +#X text 170 120 Output all links center positions in a list on outlet +No 1; +#X msg 11 138 linksPosXL (\$1); +#X msg 13 229 linksLengthL (\$1); +#X msg 13 248 linksLengthXL (\$1); +#X obj 12 451 cnv 15 150 110 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X msg 14 458 linksLengthSpeedL (\$1); +#X msg 14 477 linksLengthSpeedXL (\$1); +#X text 184 459 Output all link lenght deformation speed in a list +on outlet No 1; +#X msg 615 38 linksPosT \$1 (\$2); +#X msg 616 57 linksPosXT \$1 (\$2); +#X msg 616 152 linksLengthT \$1 (\$2); +#X obj 612 369 cnv 15 150 110 empty empty empty 20 12 0 14 -233017 +-66577 0; +#X text 808 377 Output all link lenght deformation speed in a list +on outlet No 1; +#X msg 614 376 linksLengthSpeedT \$1 (\$2); +#X msg 613 395 linksLengthSpeedXT \$1 (\$2); +#X text 793 47 Output all links center positions in a table (\$1); +#X text 170 233 Output all link lenght in a list on outlet No 1; +#X text 171 349 Output all link center speed in a list on outlet No +1; +#X text 797 154 Output all link length in a list on outlet No 1; +#X msg 16 342 linksPosSpeedL (\$1); +#X msg 16 361 linksPosSpeedXL (\$1); +#X msg 616 259 linksPosSpeedT \$1 (\$2); +#X text 795 264 Output all link center speed in a list on outlet No +1; +#X msg 616 171 linksLengthXT \$1 (\$2); +#X msg 616 278 linksPosSpeedXT \$1 (\$2); +#X restore 12 519 pd links_attributes ___; +#N canvas 888 196 1230 682 attributes__________ 0; #X obj 11 95 cnv 15 100 35 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 5 75 cnv 15 590 15 empty empty empty 20 12 0 14 -158509 -66577 @@ -489,18 +452,140 @@ name \, \$2 (optional): Masses Id); #X text 339 645 [massesPosName mas x2(; #X text 337 581 [massesPosId 1 x1(; #X text 337 596 [massesPosId 2 x2(; -#X restore 12 499 pd attributes______; -#X text 9 651 KEYWORDS: physical model mass spring damper link; -#X text 111 619 01_msdtest.pd; -#X obj 157 48 pmpd; -#X text 12 8 HELP: pmpd; -#X text 12 20 DESCRIPTION: physical modeling for pd \, based on msd. -; -#X obj 17 319 pmpd; -#X text 266 676 - Cyrille Henry \, 2011; -#X text 283 692 based on MSD by Nicolas Montgermont; -#X obj 17 187 loadbang; -#X connect 21 0 51 0; +#X restore 12 499 pd attributes__________; +#N canvas 841 74 1139 731 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 msg 31 96 posX \$1 \$2; +#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 30 195 Xmin \$1; +#X msg 30 217 Xmax \$1; +#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 28 286 setDEnv \$1; +#X text 184 287 Change environement damping; +#X text 196 304 \$1 : damping; +#X msg 588 280 setLinkId \$1 \$2; +#X text 742 281 Change the Id of a link; +#X text 743 298 \$1 : link (number or Id); +#X text 746 315 \$2 : New Id; +#X msg 591 353 setLKTab \$1 \$2; +#X text 750 353 change the table (K) size of a non linear link; +#X text 751 373 \$1 : link (number or Id); +#X text 752 390 \$2 : New KL; +#X text 751 435 \$1 : link (number or Id); +#X msg 591 415 setLDTab \$1 \$2; +#X text 750 415 change the table (D) size of a non linear link; +#X text 752 452 \$2 : New DL; +#X text 191 373 \$2 : New Id; +#X msg 25 339 setMassId \$1 \$2; +#X text 191 339 Change the Id of a mass; +#X text 192 356 \$1 : mass (number or Id); +#X msg 23 400 setForce \$1 \$2; +#X msg 23 468 setSpeed \$1 \$2; +#X msg 24 531 addPos \$1 \$2; +#X text 186 420 \$1 : Id (symbol) or No; +#X text 186 438 \$2 : Value; +#X text 183 403 set force on mass(es); +#X text 185 487 \$1 : Id (symbol) or No; +#X text 185 505 \$2 : Value; +#X text 182 470 set speed of a mass(es); +#X text 184 548 \$1 : Id (symbol) or No; +#X text 184 566 \$2 : Value; +#X text 181 531 add pos of a mass(es); +#X msg 26 593 grabMass \$1 \$2 \$3; +#X text 183 592 grab a mass \, and move it; +#X text 185 614 \$1 : mass number; +#X text 185 630 \$2 : position; +#X text 185 646 \$3 : grab or not (0 or 1); +#X restore 12 478 pd dynamic settings ___; +#N canvas 818 245 561 671 creation____________ 0; +#X obj 11 95 cnv 15 100 35 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 156 cnv 15 150 140 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 4 137 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 +0; +#X obj 10 332 cnv 15 240 220 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X obj 3 308 cnv 15 550 15 empty empty empty 20 12 0 14 -158509 -66577 +0; +#X msg 32 104 reset; +#X text 202 167 Add a mass; +#X text 288 168 \$1 : Id (symbol); +#X text 287 188 \$2 : fixed or mobile (0/1); +#X text 287 206 \$3 : mass; +#X msg 32 167 mass \$1 \$2 \$3 \$4; +#X text 287 224 \$4 : initial position; +#X text 7 137 Masses :; +#X text 7 74 Reset :; +#X text 129 105 Delete all masses \, links and internal variables; +#X text 6 308 Links :; +#X text 271 360 \$1 : Id (symbol); +#X text 271 360 \$1 : Id (symbol); +#X text 271 413 \$4 : rigidity; +#X text 271 378 \$2 : creation No/Id of mass1; +#X text 271 396 \$3 : creation No/Id of mass2; +#X text 266 341 Add link(s); +#X text 271 431 \$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 msg 30 341 link \$1 \$2 \$3 \$4 \$5 (\$6 \$7 \$8); +#X text 271 449 \$6 : Power of the rigidity distance; +#X msg 35 519 tabLink \$1 \$2 \$3 \$4 \$5 \$6 \$7; +#X text 267 468 (\$7) : minimum lenght of link; +#X text 268 485 (\$8) : maximum lenght of link; +#X text 266 535 \$1 : Id (symbol); +#X text 266 535 \$1 : Id (symbol); +#X text 266 553 \$2 : creation No/Id of mass1; +#X text 266 571 \$3 : creation No/Id of mass2; +#X text 261 516 Add non linear link(s); +#X text 264 588 \$4 : table name for the rigidity; +#X text 264 606 \$5 : length of the table; +#X text 264 624 \$6 : table name for the damping; +#X text 263 643 \$7 : length of the table; +#X restore 12 457 pd creation____________; +#X connect 21 0 48 0; #X connect 22 0 25 0; #X connect 25 0 24 0; #X connect 27 0 26 0; @@ -511,5 +596,5 @@ name \, \$2 (optional): Masses Id); #X connect 33 1 23 0; #X connect 33 2 31 0; #X connect 33 3 32 0; -#X connect 51 0 20 0; -#X connect 54 0 27 0; +#X connect 48 0 20 0; +#X connect 51 0 27 0; |