aboutsummaryrefslogtreecommitdiff
path: root/msd2D/01_msd2Dtest.pd
diff options
context:
space:
mode:
Diffstat (limited to 'msd2D/01_msd2Dtest.pd')
-rw-r--r--msd2D/01_msd2Dtest.pd199
1 files changed, 89 insertions, 110 deletions
diff --git a/msd2D/01_msd2Dtest.pd b/msd2D/01_msd2Dtest.pd
index 718310b..91c6ddf 100644
--- a/msd2D/01_msd2Dtest.pd
+++ b/msd2D/01_msd2Dtest.pd
@@ -1,47 +1,20 @@
-#N canvas 552 22 843 838 10;
-#X obj 52 15 loadbang;
-#X obj 314 524 print msd;
-#X obj 633 647 gemwin;
-#X msg 633 625 0 \, destroy;
-#X obj 554 709 gemhead;
-#X obj 554 732 world_light;
-#X msg 633 562 reset \, create \, lighting 1 \, 1;
-#X obj 53 499 msd2D --------------------------------;
-#X text 309 594 WITH GEM;
-#X text 465 563 1 CREATE WINDOW -->;
-#X text 464 626 3 AND DESTROY IT! -->;
-#X text 464 594 2 DRAG THE STRUCTURE WITH THE MOUSE;
-#X obj 118 11 cnv 15 520 275 empty empty empty 20 12 0 14 -262131 -66577
-0;
-#X obj 43 291 cnv 15 595 80 empty empty empty 20 12 0 14 -261689 -66577
-0;
-#X obj 44 374 cnv 15 595 120 empty empty empty 20 12 0 14 -262131 -66577
-0;
-#X obj 47 556 cnv 15 400 200 empty empty empty 20 12 0 14 -261689 -66577
-0;
-#X obj 135 261 t a;
-#X obj 135 20 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262131 -1
+#N canvas 520 22 626 507 10;
+#X obj 27 26 loadbang;
+#X obj 110 419 print msd;
+#X obj 369 155 gemwin;
+#X msg 384 132 0 \, destroy;
+#X text 260 26 2 DRAG THE STRUCTURE WITH THE MOUSE;
+#X obj 87 27 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
-#X msg 207 71 reset;
-#X text 173 21 reset;
-#X obj 135 42 t b b b b b;
-#X msg 153 181 Xmax 100 \, Xmin 0 \, Ymax 100 \, Ymin 0;
-#X text 413 87 CREATION : 3 MASSES \, 2 LINKS;
+#X msg 90 76 reset;
+#X obj 27 47 t b b b b b;
+#X msg 42 186 Xmax 100 \, Xmin 0 \, Ymax 100 \, Ymin 0;
#X obj 53 300 gemhead;
#X obj 53 323 t b;
#X msg 53 345 bang \, get massesPos \, get linksPos;
-#X text 292 313 COMPUTE AND GET ALL MASSES AND LINKS POSITIONS;
-#X msg 216 384 setK souple 1;
-#X msg 85 403 setD souple 1;
-#X msg 216 404 setK souple 2;
-#X text 367 442 ADD FORCE ON ALL MOBILE MASSES;
-#X text 351 396 SET RIGIDITY AND VISCOSITY OF LINKS;
-#X msg 82 442 forceX mob 100;
-#X msg 208 443 forceY mob 100;
#N canvas 643 123 609 594 massrender 0;
#X obj 127 22 inlet;
#X obj 48 203 translateXYZ;
-#X obj 48 229 sphere 0.1;
#X obj 127 86 / 12.5;
#X obj 127 109 - 4;
#X obj 192 87 / 12.5;
@@ -52,23 +25,23 @@
#X obj 48 141 gemhead 45;
#X msg 48 104 0;
#X obj 47 58 loadbang;
-#X connect 0 0 9 0;
-#X connect 1 0 2 0;
-#X connect 3 0 4 0;
-#X connect 4 0 8 0;
-#X connect 5 0 6 0;
-#X connect 6 0 1 2;
-#X connect 7 0 1 0;
-#X connect 8 0 10 0;
-#X connect 8 1 1 1;
-#X connect 9 1 3 0;
-#X connect 9 2 5 0;
-#X connect 10 0 7 0;
+#X obj 48 229 circle 0.1;
+#X connect 0 0 8 0;
+#X connect 1 0 12 0;
+#X connect 2 0 3 0;
+#X connect 3 0 7 0;
+#X connect 4 0 5 0;
+#X connect 5 0 1 2;
+#X connect 6 0 1 0;
+#X connect 7 0 9 0;
+#X connect 7 1 1 1;
+#X connect 8 1 2 0;
+#X connect 8 2 4 0;
+#X connect 9 0 6 0;
+#X connect 10 0 9 0;
#X connect 11 0 10 0;
-#X connect 12 0 11 0;
-#X restore 134 591 pd massrender;
-#X obj 53 562 route linksPos massesPos;
-#X text 261 572 DISPLAY MASSES AND LINKS;
+#X restore 436 267 pd massrender;
+#X obj 366 244 route linksPos massesPos;
#N canvas 731 296 458 308 gemmouse 0;
#X obj 189 77 gemmouse;
#X obj 189 184 pack f f;
@@ -79,29 +52,26 @@
#X obj 189 108 / 5;
#X obj 216 108 / -5;
#X obj 79 51 inlet;
-#X obj 140 75 inlet;
#X obj 109 98 t b;
#X obj 141 120 list;
+#X obj 141 41 r mouse_init;
#X connect 0 0 6 0;
#X connect 0 1 7 0;
#X connect 0 2 2 1;
#X connect 1 0 2 0;
-#X connect 2 0 11 1;
+#X connect 2 0 10 1;
#X connect 4 0 1 0;
#X connect 5 0 1 1;
#X connect 6 0 4 0;
#X connect 7 0 5 0;
-#X connect 8 0 10 0;
-#X connect 9 0 11 1;
-#X connect 10 0 11 0;
-#X connect 11 0 3 0;
-#X restore 53 674 pd gemmouse;
-#X obj 53 653 gemhead;
-#X msg 53 695 posX fix \$1;
-#X msg 53 716 posY fix \$2;
-#X text 204 677 SET FIXED MASS TO MOUSE POSITION;
-#X msg 171 134 mass mob 1 \$1 \$2 \$3;
-#X msg 171 113 100 50 90 \, 100 40 10;
+#X connect 8 0 9 0;
+#X connect 9 0 10 0;
+#X connect 10 0 3 0;
+#X connect 11 0 10 1;
+#X restore 366 356 pd gemmouse;
+#X obj 366 335 gemhead;
+#X msg 366 377 posX fix \$1;
+#X msg 366 398 posY fix \$2;
#N canvas 0 22 454 304 linkrender 0;
#X obj 127 22 inlet;
#X obj 127 86 / 12.5;
@@ -142,48 +112,57 @@
#X connect 15 0 5 0;
#X connect 16 0 17 0;
#X connect 17 0 15 0;
-#X restore 53 613 pd linkrender;
-#X msg 153 160 50 50;
-#X msg 189 91 mass fix 0 100 50 50;
-#X msg 85 383 setD souple 0;
-#X msg 135 226 link souple \$1 \$2 \$3 \$4;
-#X msg 135 205 0 1 10 10 \, 1 2 10 10;
-#X connect 0 0 20 0;
+#X restore 366 289 pd linkrender;
+#X msg 194 139 50 50;
+#X msg 74 96 mass fix 0 100 50 50;
+#X obj 90 259 s msdin;
+#X msg 58 139 mass mob 1 100 \$1 \$2;
+#X obj 84 373 r msdin;
+#X msg 58 118 40 60 \, 60 60 \, 60 40 \, 40 40;
+#X obj 194 162 s mouse_init;
+#X msg 27 207 link souple mob mob 10 5;
+#X msg 27 230 link souple fix mob 10 5;
+#X text 25 1 creation : 5 masses and 20 links;
+#X text 52 281 compute and get masses and links positions;
+#X obj 53 397 msd2D;
+#X obj 52 419 s msdout;
+#X obj 365 423 s msdin;
+#X obj 366 218 r msdout;
+#X text 364 315 move mass to mouse position;
+#X text 365 197 display masses with gem;
+#X msg 369 109 reset \, create \, 1;
+#X text 261 6 1 CREATE WINDOW;
+#X text 108 26 reset struct;
+#X connect 0 0 7 0;
#X connect 3 0 2 0;
-#X connect 4 0 5 0;
-#X connect 6 0 2 0;
-#X connect 7 0 35 0;
-#X connect 7 1 1 0;
-#X connect 16 0 7 0;
-#X connect 17 0 20 0;
-#X connect 18 0 16 0;
-#X connect 20 0 49 0;
-#X connect 20 1 45 0;
-#X connect 20 1 21 0;
-#X connect 20 2 43 0;
-#X connect 20 3 46 0;
-#X connect 20 4 18 0;
-#X connect 21 0 16 0;
-#X connect 23 0 24 0;
-#X connect 24 0 25 0;
-#X connect 25 0 7 0;
-#X connect 27 0 7 0;
-#X connect 28 0 7 0;
-#X connect 29 0 7 0;
-#X connect 32 0 7 0;
-#X connect 33 0 7 0;
-#X connect 35 0 44 0;
-#X connect 35 1 34 0;
-#X connect 35 2 1 0;
-#X connect 37 0 39 0;
-#X connect 37 0 40 0;
-#X connect 38 0 37 0;
-#X connect 39 0 7 0;
-#X connect 40 0 7 0;
-#X connect 42 0 16 0;
-#X connect 43 0 42 0;
-#X connect 45 0 37 1;
-#X connect 46 0 16 0;
-#X connect 47 0 7 0;
-#X connect 48 0 16 0;
-#X connect 49 0 48 0;
+#X connect 5 0 7 0;
+#X connect 6 0 21 0;
+#X connect 7 0 26 0;
+#X connect 7 1 19 0;
+#X connect 7 1 8 0;
+#X connect 7 2 24 0;
+#X connect 7 3 20 0;
+#X connect 7 4 6 0;
+#X connect 8 0 21 0;
+#X connect 9 0 10 0;
+#X connect 10 0 11 0;
+#X connect 11 0 30 0;
+#X connect 13 0 18 0;
+#X connect 13 1 12 0;
+#X connect 14 0 16 0;
+#X connect 14 0 17 0;
+#X connect 15 0 14 0;
+#X connect 16 0 32 0;
+#X connect 17 0 32 0;
+#X connect 19 0 25 0;
+#X connect 20 0 21 0;
+#X connect 22 0 21 0;
+#X connect 23 0 30 0;
+#X connect 24 0 22 0;
+#X connect 26 0 27 0;
+#X connect 26 0 21 0;
+#X connect 27 0 21 0;
+#X connect 30 0 31 0;
+#X connect 30 1 1 0;
+#X connect 33 0 13 0;
+#X connect 36 0 2 0;