diff options
Diffstat (limited to 'msd3D/help-msd3D.pd')
-rw-r--r-- | msd3D/help-msd3D.pd | 247 |
1 files changed, 170 insertions, 77 deletions
diff --git a/msd3D/help-msd3D.pd b/msd3D/help-msd3D.pd index aa1d899..14fd769 100644 --- a/msd3D/help-msd3D.pd +++ b/msd3D/help-msd3D.pd @@ -1,83 +1,176 @@ -#N canvas 0 0 743 844 10; -#X obj 17 9 cnv 15 610 305 empty empty CREATION 20 12 0 14 -262131 +#N canvas 0 0 467 396 10; +#N canvas 271 52 742 843 masses 0; +#X obj 62 154 cnv 15 610 180 empty empty CREATION 20 12 0 14 -262131 -66577 0; -#X msg 34 38 reset; -#X text 204 69 Add a mass; -#X text 290 70 \$1 : Id (symbol); -#X text 289 90 \$2 : fixed or mobile (0/1); -#X text 289 108 \$3 : mass; -#X text 289 146 \$1 : Id (symbol); -#X text 201 146 Add a link; -#X text 288 166 \$2 : creation No of mass1; -#X text 288 184 \$3 : creation No of mass2; -#X text 287 202 \$4 : rigidity; -#X text 206 39 Delete all masses and links; -#X text 287 220 \$5 : viscosity; -#X text 287 237 \$6 : damping; -#X obj 17 319 cnv 15 610 60 empty empty COMPUTATION 20 12 0 14 -261689 +#X msg 79 183 reset; +#X text 249 214 Add a mass; +#X text 335 215 \$1 : Id (symbol); +#X text 334 235 \$2 : fixed or mobile (0/1); +#X text 334 253 \$3 : mass; +#X text 251 184 Delete all masses and links; +#X obj 62 338 cnv 15 610 60 empty empty COMPUTATION 20 12 0 14 -261689 -66577 0; -#X msg 37 348 bang; -#X text 190 348 Compute new masses positions; -#X obj 16 383 cnv 15 610 220 empty empty DYNAMIC_SETTING 20 12 0 14 +#X msg 82 367 bang; +#X text 235 367 Compute new masses positions; +#X obj 61 403 cnv 15 610 210 empty empty DYNAMIC_SETTING 20 12 0 14 -262131 -66577 0; -#X msg 124 405 setD \$1 \$2; -#X text 309 423 \$1 : Id (symbol); -#X text 309 441 \$2 : New value; -#X msg 42 405 setK \$1 \$2; -#X text 305 477 \$1 : Id (symbol); -#X text 305 495 \$2 : New value; -#X text 353 532 \$1 : Id (symbol); -#X text 353 550 \$2 : New value; -#X msg 42 457 posX \$1 \$2; -#X text 305 459 Set position of mass(es); -#X text 352 515 Add force on mass(es); -#X msg 40 516 forceX \$1 \$2; -#X msg 210 405 setD2 \$1 \$2; -#X text 309 405 Set rigidity \, viscosity or damping of link(s); -#X obj 15 612 cnv 15 610 198 empty empty GET_ATTRIBUTES 20 12 0 14 +#X text 350 449 \$1 : Id (symbol); +#X text 350 467 \$2 : New value; +#X text 348 503 \$1 : Id (symbol); +#X text 348 521 \$2 : New value; +#X msg 87 429 posX \$1 \$2; +#X text 350 431 Set position of mass(es); +#X text 347 486 Add force on mass(es); +#X msg 82 480 forceX \$1 \$2; +#X obj 61 617 cnv 15 610 198 empty empty GET_ATTRIBUTES 20 12 0 14 -261689 -66577 0; -#X msg 101 639 massePosL; -#X msg 101 667 masseForcesL; -#X text 202 639 output all masses positions in a list on outlet No +#X msg 147 644 massePosL; +#X msg 147 672 masseForcesL; +#X text 248 644 output all masses positions in a list on outlet No 1; -#X text 201 668 output all masses forces in a list on outlet No 1; -#X msg 100 705 get \$1 \$2; -#X text 203 706 Get specific attribute; -#X text 203 731 \$1 : Attribute type ( massesPos / massesSpeeds / massesForces +#X text 247 673 output all masses forces in a list on outlet No 1; +#X msg 146 710 get \$1 \$2; +#X text 249 711 Get specific attribute; +#X text 249 736 \$1 : Attribute type ( massesPos / massesSpeeds / massesForces / linksPos ); -#X text 203 768 \$2 : Id (symbol or creations numbers); -#X msg 31 146 link \$1 \$2 \$3 \$4 \$5 \$6; -#X msg 30 253 deleteMass \$1; -#X text 195 255 Delete a mass and associated links; -#X text 285 272 \$1 : Creation No of mass; -#X msg 29 289 deleteLink \$1; -#X text 194 291 Delete a link; -#X text 295 291 \$1 : Creation No of link; -#X msg 98 788 infosL; -#X text 201 788 Get infos on all masses and links on outlet No 2; -#X text 302 588 \$1 : Value; -#X msg 135 515 forceY \$1 \$2; -#X msg 123 457 posY \$1 \$2; -#X msg 39 568 Xmin \$1 \, Xmax \$1 \, Ymin \$1 \, Ymax \$1; -#X text 302 571 Set minimimum and maximum of masses positions; -#X msg 34 69 mass \$1 \$2 \$3 \$4 \$5 \$6; -#X text 289 126 \$4 \, \$5 \, \$6 : position; -#X msg 123 457 posY \$1 \$2; -#X msg 204 457 posZ \$1 \$2; -#X msg 229 515 forceZ \$1 \$2; -#X obj -12 816 msd3D; -#X msg 39 586 Zmin \$1 \, Zmax \$1; -#X connect 1 0 60 0; -#X connect 15 0 60 0; -#X connect 21 0 60 0; -#X connect 26 0 60 0; -#X connect 29 0 60 0; -#X connect 33 0 60 0; -#X connect 34 0 60 0; -#X connect 37 0 60 0; -#X connect 41 0 60 0; -#X connect 42 0 60 0; -#X connect 45 0 60 0; -#X connect 48 0 60 0; -#X connect 53 0 60 0; -#X connect 55 0 60 0; +#X text 249 773 \$2 : Id (symbol or creations numbers); +#X msg 79 290 deleteMass \$1; +#X text 248 292 Delete a mass and associated links; +#X text 338 309 \$1 : Creation No of mass; +#X msg 144 793 infosL; +#X text 247 793 Get infos on all masses and links on outlet No 2; +#X text 347 555 \$1 : Value; +#X text 73 22 MASSES :; +#X text 66 69 They got only one physical parameter \, the value of +their; +#X text 67 83 mass. They can be mobile or fixed \, in this case forces +; +#X text 67 54 The msd masses are the principals objects of the model. +; +#X text 66 97 applied on them automatically \, by links \, or manually +\, by; +#X text 67 112 messages \, don't do anything.; +#X msg 81 578 setMobile \$1 \, setFixed \$1; +#X text 345 578 Change mobile parameter; +#X text 345 594 \$1 : Creation No of mass; +#X msg 166 429 posY \$1 \$2; +#X msg 174 480 forceY \$1 \$2; +#X text 347 538 Set minimimum and maximum X \, Y of masses; +#X msg 83 525 Xmin \$1 \, Xmax \$1 \, Ymin \$1 \, Ymax \$1; +#X msg 79 214 mass \$1 \$2 \$3 \$4 \$5 \$6; +#X text 334 271 \$4 \, \$5 \, \$6 : initial position; +#X msg 246 429 posZ \$1 \$2; +#X msg 83 503 forceZ \$1 \$2; +#X msg 83 548 Zmin \$1 \, Zmax \$1; +#X obj 33 821 msd3D; +#X connect 1 0 52 0; +#X connect 8 0 52 0; +#X connect 15 0 52 0; +#X connect 18 0 52 0; +#X connect 20 0 52 0; +#X connect 21 0 52 0; +#X connect 24 0 52 0; +#X connect 28 0 52 0; +#X connect 31 0 52 0; +#X connect 40 0 52 0; +#X connect 46 0 52 0; +#X connect 47 0 52 0; +#X restore 158 305 pd masses; +#N canvas 222 83 808 841 links 0; +#X obj 62 250 cnv 15 610 305 empty empty CREATION 20 12 0 14 -262131 +-66577 0; +#X msg 79 279 reset; +#X text 338 308 \$1 : Id (symbol); +#X text 250 308 Add a link; +#X text 337 328 \$2 : creation No of mass1; +#X text 337 346 \$3 : creation No of mass2; +#X text 336 364 \$4 : rigidity; +#X text 251 280 Delete all masses and links; +#X text 336 382 \$5 : viscosity; +#X text 336 399 \$6 : damping; +#X obj 61 561 cnv 15 610 82 empty empty DYNAMIC_SETTING 20 12 0 14 +-262131 -66577 0; +#X msg 172 583 setD \$1 \$2; +#X text 354 601 \$1 : Id (symbol); +#X text 354 619 \$2 : New value; +#X msg 87 583 setK \$1 \$2; +#X msg 255 583 setD2 \$1 \$2; +#X text 354 583 Set rigidity \, viscosity or damping of link(s); +#X obj 60 650 cnv 15 610 140 empty empty GET_ATTRIBUTES 20 12 0 14 +-261689 -66577 0; +#X msg 75 679 get \$1 \$2; +#X text 237 680 Get specific attribute; +#X text 237 705 \$1 : Attribute type ( massesPos / massesSpeeds / massesForces +/ linksPos ); +#X text 237 742 \$2 : Id (symbol or creations numbers); +#X msg 78 308 link \$1 \$2 \$3 \$4 \$5 \$6; +#X msg 74 532 deleteLink \$1; +#X text 239 534 Delete a link; +#X text 340 534 \$1 : Creation No of link; +#X msg 73 762 infosL; +#X text 236 762 Get infos on all masses and links on outlet No 2; +#X msg 73 423 iLink \$1 \$2 \$3 \$4 \$5 \$6; +#X text 338 308 \$1 : Id (symbol); +#X text 250 308 Add a link; +#X text 337 328 \$2 : creation No of mass1; +#X text 337 346 \$3 : creation No of mass2; +#X text 336 364 \$4 : rigidity; +#X text 336 382 \$5 : viscosity; +#X text 336 399 \$6 : damping; +#X text 410 422 \$1 : Id (symbol); +#X text 409 478 \$4 : rigidity; +#X text 409 496 \$5 : viscosity; +#X text 409 513 \$6 : damping; +#X text 410 422 \$1 : Id (symbol); +#X text 409 478 \$4 : rigidity; +#X text 409 496 \$5 : viscosity; +#X text 409 513 \$6 : damping; +#X text 248 423 Add an interactor link; +#X text 94 52 LINKS :; +#X text 71 91 parameters : length \, rigidity \, viscosity and damping. +; +#X text 72 78 Links connect masses two by two. They got 4 physicals +; +#X text 70 134 the two masses at the creation.; +#X text 71 120 message. The lenght is initialised to the distance between +; +#X text 71 106 Rigidity \, viscosity and damping are defined by the +creation; +#X text 409 442 \$2 : Id (symbol) of masses type 1; +#X text 409 460 \$3 : Id (symbol) of masses type 2; +#X text 70 148 Interactor links are links between mutiples masses \, +instead; +#X text 70 161 of creation number \, the masses linked are defined +with; +#X text 69 175 their Id.; +#X obj 33 821 msd3D; +#X connect 1 0 56 0; +#X connect 14 0 56 0; +#X connect 18 0 56 0; +#X connect 22 0 56 0; +#X connect 23 0 56 0; +#X connect 26 0 56 0; +#X connect 28 0 56 0; +#X restore 160 335 pd links; +#X text 12 305 HELP on masses --->; +#X text 11 336 HELP on links --->; +#X text -50 110 There are 4 types of messages for msd :; +#X text -49 74 It is designed to implement particules physical model +in PD.The model is based on two elements type : mass and link.; +#X obj -50 125 cnv 15 420 30 empty empty empty 20 12 0 14 -262131 -66577 +0; +#X obj -50 158 cnv 15 420 30 empty empty empty 20 12 0 14 -261689 -66577 +0; +#X obj -50 191 cnv 15 420 30 empty empty empty 20 12 0 14 -262131 -66577 +0; +#X obj -50 224 cnv 15 420 30 empty empty empty 20 12 0 14 -261689 -66577 +0; +#X text -47 132 CREATION : To create the model masses and links.; +#X text -47 197 DYNAMIC SETTING : To set the model parameters dynamically. +; +#X text -47 230 ATTRIBUTES : To get the model parameters.; +#X text -47 159 COMPUTATION : To compute the new model state based +on previous instant.; +#X text 32 16 MSD3D : mass - spring - damper model; +#X text -48 61 MSD3D is the 3D object of the msd objects collection. +; |