diff options
author | N.N. <nimon@users.sourceforge.net> | 2014-03-04 20:45:03 +0000 |
---|---|---|
committer | N.N. <nimon@users.sourceforge.net> | 2014-03-04 20:45:03 +0000 |
commit | 0da1c629f3042b209655b56a7b078771b4cd1c13 (patch) | |
tree | 92e0155658d552eda3c5cfc95d7dd23ea2f8af44 /examples | |
parent | 4f22ddf762ad3f8da652f8fd223e91e11ee9b929 (diff) |
pmpd : orthograph example
svn path=/trunk/externals/pmpd/; revision=17274
Diffstat (limited to 'examples')
-rw-r--r-- | examples/05_corde2D.pd | 238 |
1 files changed, 120 insertions, 118 deletions
diff --git a/examples/05_corde2D.pd b/examples/05_corde2D.pd index 0f9674c..c798d32 100644 --- a/examples/05_corde2D.pd +++ b/examples/05_corde2D.pd @@ -1,5 +1,5 @@ -#N canvas 76 91 844 550 12; -#X declare -lib Gem; +#N canvas 78 32 1011 625 10; +#X declare -lib Gem -path ../; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -19,42 +19,42 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 143 446 pd mass; -#X obj 62 214 s link; +#X restore 123 446 pd mass; +#X obj 54 214 s link; #X obj 27 239 s mass; -#X obj 397 308 s mass; -#X msg 184 199 setK \$1; -#X msg 399 149 setM \$1; -#X obj 184 231 s link; -#X obj 399 177 s mass; -#X obj 184 173 / 10; -#X obj 184 147 + 1; -#X obj 508 151 gemwin; -#X msg 515 122 0 \, destroy; -#X floatatom 184 125 5 10 100 0 - - -; -#X floatatom 245 127 5 0 3 0 - - -; -#X floatatom 399 126 5 20 500 0 - - -; -#X msg 411 278 force2D 2000 0; +#X obj 439 287 s mass; +#X msg 164 199 setK \$1; +#X msg 339 149 setM \$1; +#X obj 164 231 s link; +#X obj 339 177 s mass; +#X obj 164 173 / 10; +#X obj 164 147 + 1; +#X obj 439 175 gemwin; +#X msg 446 146 0 \, destroy; +#X floatatom 164 125 5 10 100 0 - - -; +#X floatatom 205 127 5 0 3 0 - - -; +#X floatatom 339 126 5 20 500 0 - - -; +#X msg 453 257 force2D 2000 0; #X obj 27 163 metro 10; #X obj 27 187 t b b; -#X msg 396 335 force2D 0 5000; -#X msg 184 101 50; -#X msg 245 101 1; -#X msg 399 102 200; -#X obj 868 143 world_light; -#X obj 868 84 gemhead; -#X obj 868 114 rotateXYZ; -#X msg 397 250 force2D 0 1000; -#X msg 245 150 setD \$1; +#X msg 440 324 force2D 0 5000; +#X msg 164 101 50; +#X msg 205 101 1; +#X msg 339 102 200; +#X obj 791 95 world_light; +#X obj 791 36 gemhead; +#X obj 791 66 rotateXYZ; +#X msg 439 229 force2D 0 1000; +#X msg 205 150 setD \$1; #X obj 27 9 loadbang; #X msg 108 99 reset; #X obj 108 126 s mass; #X obj 27 40 t b b b b; -#X msg 49 100 resetF; -#X obj 49 127 s link; -#X floatatom 321 127 5 0 3 0 - - -; -#X msg 321 101 1; -#X msg 321 150 setD2 \$1; +#X msg 44 100 resetF; +#X obj 44 127 s link; +#X floatatom 271 127 5 0 3 0 - - -; +#X msg 271 101 1; +#X msg 271 150 setD2 \$1; #N canvas 306 123 570 357 mass 0; #X obj 24 99 outlet; #X obj 145 98 gemhead; @@ -73,12 +73,9 @@ #X connect 7 0 0 0; #X connect 7 0 2 0; #X restore 11 383 pd mass; -#X msg 396 366 force2D 5000 0; -#X text 461 7 2D string; -#X text 542 250 <- send Y force to all masss; -#X text 544 279 <- send X force to all masss; -#X text 540 335 <- send Y force to 2 masss; -#X text 542 364 <- send X force to 1 masss; +#X msg 440 355 force2D 5000 0; +#X text 564 324 <- send Y force to 2 masss; +#X text 566 353 <- send X force to 1 masss; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -98,9 +95,9 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 281 449 pd mass; +#X restore 245 446 pd mass; #X obj 11 409 link2D link 30 1 1; -#X obj 158 408 link2D link 30 1 1; +#X obj 133 409 link2D link 30 1 1; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -120,7 +117,7 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 432 446 pd mass; +#X restore 368 446 pd mass; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -140,9 +137,9 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 570 449 pd mass; -#X obj 300 409 link2D link 30 1 1; -#X obj 447 408 link2D link 30 1 1; +#X restore 490 446 pd mass; +#X obj 255 409 link2D link 30 1 1; +#X obj 377 409 link2D link 30 1 1; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -162,8 +159,8 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 719 449 pd mass; -#X obj 596 408 link2D link 30 1 1; +#X restore 611 446 pd mass; +#X obj 499 409 link2D link 30 1 1; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -183,7 +180,7 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 870 446 pd mass; +#X restore 736 446 pd mass; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -203,9 +200,9 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 1008 449 pd mass; -#X obj 738 409 link2D link 30 1 1; -#X obj 885 408 link2D link 30 1 1; +#X restore 858 446 pd mass; +#X obj 621 409 link2D link 30 1 1; +#X obj 743 409 link2D link 30 1 1; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -225,7 +222,7 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 156 589 pd mass; +#X restore 130 564 pd mass; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -245,9 +242,9 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 294 592 pd mass; -#X obj 24 552 link2D link 30 1 1; -#X obj 171 551 link2D link 30 1 1; +#X restore 250 564 pd mass; +#X obj 14 525 link2D link 30 1 1; +#X obj 137 525 link2D link 30 1 1; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -267,7 +264,7 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 445 589 pd mass; +#X restore 372 563 pd mass; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -287,9 +284,9 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 583 592 pd mass; -#X obj 313 552 link2D link 30 1 1; -#X obj 460 551 link2D link 30 1 1; +#X restore 494 563 pd mass; +#X obj 259 525 link2D link 30 1 1; +#X obj 382 525 link2D link 30 1 1; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -309,8 +306,8 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 732 592 pd mass; -#X obj 609 551 link2D link 30 1 1; +#X restore 617 563 pd mass; +#X obj 505 525 link2D link 30 1 1; #N canvas 306 123 261 242 mass 0; #X obj 24 23 inlet; #X obj 24 83 outlet; @@ -330,7 +327,7 @@ #X connect 7 0 4 2; #X connect 8 0 1 0; #X connect 8 0 3 0; -#X restore 883 589 pd mass; +#X restore 742 562 pd mass; #N canvas 306 123 265 246 mass 0; #X obj 24 83 outlet; #X obj 83 138 gemhead; @@ -348,20 +345,25 @@ #X connect 6 0 3 2; #X connect 7 0 0 0; #X connect 7 0 2 0; -#X restore 1021 524 pd mass; -#X obj 751 552 link2D link 30 1 1; -#X obj 898 551 link2D link 30 1 1; -#X msg 508 95 reset \, lighting 1 \, create \, 1; +#X restore 854 498 pd mass; +#X obj 627 525 link2D link 30 1 1; +#X obj 749 525 link2D link 30 1 1; +#X msg 439 119 reset \, lighting 1 \, create \, 1; #X obj 112 15 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#X text 325 23 masss are link together like in an elastic string.; -#X text 30 652 The extrem right and extreme left masss are fixed : -the does not receive a force. they are neaded for the model to be link -to a special point in the screen.; -#X text 742 94 <- 1; -#X obj 443 44 declare -lib Gem; -#X connect 0 0 44 1; -#X connect 0 0 45 0; +#X text 624 118 <- 1; +#X obj 791 13 declare -lib Gem -path ../; +#X text 133 15 reset; +#X text 436 37 Each mass is connected to the one on the left and the +one on the right. The extrem left and right masses are fixed: they +do not receive forces \, they are needed for the model to be linked +to fixed points on the screen; +#X text 436 7 2D string : masses are linked together like an elastic +string.; +#X text 564 229 <- send Y force to all masses; +#X text 564 258 <- send X force to all masses; +#X connect 0 0 41 1; +#X connect 0 0 42 0; #X connect 4 0 6 0; #X connect 5 0 7 0; #X connect 8 0 4 0; @@ -375,7 +377,7 @@ to a special point in the screen.; #X connect 17 0 2 0; #X connect 17 1 1 0; #X connect 18 0 0 0; -#X connect 18 0 43 0; +#X connect 18 0 40 0; #X connect 19 0 12 0; #X connect 20 0 13 0; #X connect 21 0 14 0; @@ -396,58 +398,58 @@ to a special point in the screen.; #X connect 33 0 35 0; #X connect 34 0 33 0; #X connect 35 0 6 0; -#X connect 36 0 44 0; -#X connect 37 0 46 0; +#X connect 36 0 41 0; +#X connect 37 0 43 0; +#X connect 40 0 42 1; +#X connect 40 0 45 0; +#X connect 41 1 0 0; +#X connect 42 0 0 0; +#X connect 42 1 40 0; #X connect 43 0 45 1; -#X connect 43 0 48 0; -#X connect 44 1 0 0; -#X connect 45 0 0 0; +#X connect 43 0 46 0; +#X connect 44 0 46 1; +#X connect 44 0 48 0; +#X connect 45 0 40 0; #X connect 45 1 43 0; -#X connect 46 0 48 1; -#X connect 46 0 49 0; -#X connect 47 0 49 1; +#X connect 46 0 43 0; +#X connect 46 1 44 0; +#X connect 47 0 48 1; #X connect 47 0 51 0; -#X connect 48 0 43 0; -#X connect 48 1 46 0; -#X connect 49 0 46 0; -#X connect 49 1 47 0; -#X connect 50 0 51 1; -#X connect 50 0 54 0; +#X connect 48 0 44 0; +#X connect 48 1 47 0; +#X connect 49 0 51 1; +#X connect 49 0 52 0; +#X connect 50 0 52 1; +#X connect 50 0 55 0; #X connect 51 0 47 0; -#X connect 51 1 50 0; -#X connect 52 0 54 1; -#X connect 52 0 55 0; +#X connect 51 1 49 0; +#X connect 52 0 49 0; +#X connect 52 1 50 0; #X connect 53 0 55 1; -#X connect 53 0 58 0; -#X connect 54 0 50 0; -#X connect 54 1 52 0; -#X connect 55 0 52 0; +#X connect 53 0 56 0; +#X connect 54 0 56 1; +#X connect 54 0 59 0; +#X connect 55 0 50 0; #X connect 55 1 53 0; -#X connect 56 0 58 1; -#X connect 56 0 59 0; +#X connect 56 0 53 0; +#X connect 56 1 54 0; #X connect 57 0 59 1; -#X connect 57 0 62 0; -#X connect 58 0 53 0; -#X connect 58 1 56 0; -#X connect 59 0 56 0; +#X connect 57 0 60 0; +#X connect 58 0 60 1; +#X connect 58 0 62 0; +#X connect 59 0 54 0; #X connect 59 1 57 0; -#X connect 60 0 62 1; -#X connect 60 0 63 0; -#X connect 61 0 63 1; +#X connect 60 0 57 0; +#X connect 60 1 58 0; +#X connect 61 0 62 1; #X connect 61 0 65 0; -#X connect 62 0 57 0; -#X connect 62 1 60 0; -#X connect 63 0 60 0; -#X connect 63 1 61 0; -#X connect 64 0 65 1; -#X connect 64 0 68 0; +#X connect 62 0 58 0; +#X connect 62 1 61 0; +#X connect 63 0 65 1; +#X connect 63 0 66 0; +#X connect 64 0 66 1; #X connect 65 0 61 0; -#X connect 65 1 64 0; -#X connect 66 0 68 1; -#X connect 66 0 69 0; -#X connect 67 0 69 1; -#X connect 68 0 64 0; -#X connect 68 1 66 0; -#X connect 69 0 66 0; -#X connect 70 0 10 0; -#X connect 71 0 30 0; +#X connect 65 1 63 0; +#X connect 66 0 63 0; +#X connect 67 0 10 0; +#X connect 68 0 30 0; |