diff options
author | N.N. <nimon@users.sourceforge.net> | 2008-03-28 00:54:03 +0000 |
---|---|---|
committer | N.N. <nimon@users.sourceforge.net> | 2008-03-28 00:54:03 +0000 |
commit | d9451f13b229c79a955888d4764e373ebc6191c7 (patch) | |
tree | facfad55b9a39973ad301357e0cd408ffefef261 /msd2D/04_msd2Dperf.pd | |
parent | 7668ac85d55cb34b3a955747cad20bfc8530e71a (diff) |
modified examples
svn path=/trunk/externals/nusmuk/; revision=9634
Diffstat (limited to 'msd2D/04_msd2Dperf.pd')
-rw-r--r-- | msd2D/04_msd2Dperf.pd | 247 |
1 files changed, 116 insertions, 131 deletions
diff --git a/msd2D/04_msd2Dperf.pd b/msd2D/04_msd2Dperf.pd index 8394228..d264d8f 100644 --- a/msd2D/04_msd2Dperf.pd +++ b/msd2D/04_msd2Dperf.pd @@ -1,108 +1,18 @@ -#N canvas 590 22 847 803 10; -#X obj 167 221 t a; -#X obj 167 33 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +#N canvas 521 54 428 182 10; +#X msg 144 71 forceX mob 100; +#X msg 144 94 forceX mob -100; +#X text 141 13 change number of mass to test performance; +#X text 141 26 (and reset afterwards); +#X obj 81 19 nbx 5 14 1 20000 1 1 empty empty empty 0 -6 0 10 -262144 +-1 -1 125.925 256; +#X obj 18 18 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; +#X text 38 16 reset; +#N canvas 487 334 635 333 creation 0; #X msg 239 84 reset; -#X obj 52 15 loadbang; -#X text 205 34 reset; -#X msg 300 402 forceX mob 100; #X obj 167 55 t b b b b b; -#X obj 52 583 msd2D --------------------------------; -#X msg 460 409 0 \, destroy; -#X obj 481 320 gemhead; -#X obj 481 343 world_light; -#X msg 460 386 reset \, create \, lighting 1 \, 1; -#X obj 52 301 t b; -#N canvas 643 123 311 308 massrender 0; -#X obj 24 196 translateXYZ; -#X obj 24 222 sphere 0.1; -#X obj 24 170 separator; -#X obj 24 144 gemhead 45; -#X obj 103 17 inlet; -#X obj 103 55 unpack f f f; -#X obj 109 83 t b f; -#X obj 24 56 loadbang; -#X msg 24 80 0; -#X connect 0 0 1 0; -#X connect 2 0 0 0; -#X connect 3 0 2 0; -#X connect 4 0 5 0; -#X connect 5 1 6 0; -#X connect 5 2 0 2; -#X connect 6 0 3 0; -#X connect 6 1 0 1; -#X connect 7 0 8 0; -#X connect 8 0 3 0; -#X restore 133 635 pd massrender; -#N canvas 284 227 394 269 linkrender 0; -#X obj 121 20 inlet; -#X obj 57 175 separator; -#X obj 57 220 curve 2; -#X obj 43 130 gemhead 45; -#X msg 213 69 \$4 \$5 0; -#X msg 141 65 \$2 \$3 0; -#X obj 140 94 t b a; -#X obj 44 46 loadbang; -#X msg 44 75 0; -#X connect 0 0 4 0; -#X connect 0 0 5 0; -#X connect 1 0 2 0; -#X connect 3 0 1 0; -#X connect 4 0 2 2; -#X connect 5 0 6 0; -#X connect 6 0 3 0; -#X connect 6 1 2 1; -#X connect 7 0 8 0; -#X connect 8 0 3 0; -#X restore 52 656 pd linkrender; -#X obj 52 278 gemhead; -#X obj 460 458 gemwin; -#X msg 52 335 bang \, get massesPos \, get linksPos; -#X obj 52 606 route linksPos massesPos; -#X msg 460 433 view 0 0 4 0 0 0 0 1 0; -#X msg 300 425 forceX mob -100; #X obj 441 55 f; -#X obj 91 421 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 -; -#X obj 91 442 metro 10; -#X floatatom 141 421 5 0 0 0 - - -; -#X text 501 28 change number of mass to test performance; -#X text 501 41 (and reset afterwards); -#X obj 441 34 nbx 5 14 1 20000 1 1 empty empty empty 0 -6 0 10 -262144 --1 -1 381.385 256; -#X text 76 390 instead of GEM doing the timing; #X msg 221 104 mass fix 0 100 0 0; -#N canvas 731 296 454 304 gemmouse 0; -#X obj 189 77 gemmouse; -#X obj 189 184 pack f f; -#X obj 189 218 spigot; -#X obj 109 243 outlet; -#X obj 109 36 inlet; -#X obj 109 98 t b; -#X obj 238 131 + 4; -#X msg 57 182 posX fix \$1; -#X msg 57 203 posY fix \$2; -#X obj 189 108 / 62.5; -#X obj 237 107 / -62.5; -#X obj 189 131 - 4; -#X obj 109 125 list 0 0; -#X connect 0 0 9 0; -#X connect 0 1 10 0; -#X connect 0 2 2 1; -#X connect 1 0 2 0; -#X connect 2 0 12 1; -#X connect 4 0 5 0; -#X connect 5 0 12 0; -#X connect 6 0 1 1; -#X connect 7 0 3 0; -#X connect 8 0 3 0; -#X connect 9 0 11 0; -#X connect 10 0 6 0; -#X connect 11 0 1 0; -#X connect 12 0 7 0; -#X connect 12 0 8 0; -#X restore 372 536 pd gemmouse; -#X obj 372 515 gemhead; #N canvas 0 22 450 300 links 0; #X obj 136 72 t b; #X obj 136 116 + 1; @@ -193,36 +103,111 @@ #X connect 26 0 4 0; #X restore 203 129 pd masses; #X msg 185 155 Xmax 4 \, Xmin -4 \, Ymax 4 \, Ymin -4; -#X connect 0 0 7 0; -#X connect 1 0 6 0; -#X connect 2 0 0 0; +#X obj 166 29 inlet; +#X obj 205 30 loadbang; +#X obj 441 33 inlet; +#X obj 167 221 s \$0-msdin; +#X connect 0 0 10 0; +#X connect 1 0 4 0; +#X connect 1 1 6 0; +#X connect 1 2 5 0; +#X connect 1 3 3 0; +#X connect 1 4 0 0; +#X connect 2 0 4 1; +#X connect 2 0 5 1; +#X connect 3 0 10 0; +#X connect 4 0 10 0; +#X connect 5 0 10 0; +#X connect 6 0 10 0; +#X connect 7 0 1 0; +#X connect 8 0 1 0; +#X connect 9 0 2 0; +#X restore 18 41 pd creation; +#N canvas 0 22 450 300 gem 0; +#X msg 30 99 0 \, destroy; +#X msg 30 76 reset \, create \, lighting 1 \, 1; +#X obj 30 148 gemwin; +#X obj 32 25 inlet; +#X obj 32 53 sel 1 0; +#X obj 241 50 gemhead; +#X obj 241 73 world_light; +#X connect 0 0 2 0; +#X connect 1 0 2 0; +#X connect 3 0 4 0; +#X connect 4 0 1 0; +#X connect 4 1 0 0; +#X connect 5 0 6 0; +#X restore 18 91 pd gem; +#X obj 18 68 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1 +; +#X text 38 66 gem on/off; +#N canvas 0 22 450 300 compute 0; +#N canvas 643 123 311 308 massrender 0; +#X obj 24 196 translateXYZ; +#X obj 24 170 separator; +#X obj 24 144 gemhead 45; +#X obj 103 17 inlet; +#X obj 103 55 unpack f f f; +#X obj 109 83 t b f; +#X obj 24 56 loadbang; +#X msg 24 80 0; +#X obj 24 222 sphere 0.1; +#X connect 0 0 8 0; +#X connect 1 0 0 0; +#X connect 2 0 1 0; +#X connect 3 0 4 0; +#X connect 4 1 5 0; +#X connect 4 2 0 2; +#X connect 5 0 2 0; +#X connect 5 1 0 1; +#X connect 6 0 7 0; +#X connect 7 0 2 0; +#X restore 133 205 pd massrender; +#N canvas 284 227 394 269 linkrender 0; +#X obj 121 20 inlet; +#X obj 57 175 separator; +#X obj 57 220 curve 2; +#X obj 43 130 gemhead 45; +#X msg 213 69 \$4 \$5 0; +#X msg 141 65 \$2 \$3 0; +#X obj 140 94 t b a; +#X obj 44 46 loadbang; +#X msg 44 75 0; +#X connect 0 0 4 0; +#X connect 0 0 5 0; +#X connect 1 0 2 0; +#X connect 3 0 1 0; +#X connect 4 0 2 2; +#X connect 5 0 6 0; +#X connect 6 0 3 0; +#X connect 6 1 2 1; +#X connect 7 0 8 0; +#X connect 8 0 3 0; +#X restore 52 256 pd linkrender; +#X obj 52 28 gemhead; +#X msg 52 85 bang \, get massesPos \, get linksPos; +#X obj 52 176 route linksPos massesPos; +#X obj 82 127 r \$0-msdin; +#X obj 52 153 msd2D; +#X obj 85 198 inlet; +#X obj 52 227 spigot; +#X connect 2 0 3 0; #X connect 3 0 6 0; +#X connect 4 0 8 0; +#X connect 4 1 0 0; +#X connect 5 0 6 0; +#X connect 6 0 4 0; +#X connect 7 0 8 1; +#X connect 8 0 1 0; +#X restore 19 137 pd compute; +#X obj 144 118 s \$0-msdin; +#X text 260 80 click to move; +#X obj 19 115 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X text 39 114 display links; +#X connect 0 0 12 0; +#X connect 1 0 12 0; +#X connect 4 0 7 1; #X connect 5 0 7 0; -#X connect 6 0 32 0; -#X connect 6 1 34 0; -#X connect 6 2 33 0; -#X connect 6 3 29 0; -#X connect 6 4 2 0; -#X connect 7 0 18 0; -#X connect 8 0 16 0; -#X connect 9 0 10 0; -#X connect 11 0 16 0; -#X connect 12 0 17 0; -#X connect 15 0 12 0; -#X connect 17 0 7 0; -#X connect 18 0 14 0; -#X connect 18 1 13 0; -#X connect 19 0 16 0; -#X connect 20 0 7 0; -#X connect 21 0 32 1; -#X connect 21 0 33 1; -#X connect 22 0 23 0; -#X connect 23 0 7 0; -#X connect 24 0 23 1; -#X connect 27 0 21 0; -#X connect 29 0 0 0; -#X connect 30 0 7 0; -#X connect 31 0 30 0; -#X connect 32 0 0 0; -#X connect 33 0 0 0; -#X connect 34 0 0 0; +#X connect 9 0 8 0; +#X connect 14 0 11 0; |