Update of /cvsroot/pure-data/externals/nusmuk/msd2D/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15230
Modified Files: README gem_links.pd gem_masses.pd link-set.pd mass-set.pd msd_append.pd Added Files: msd-editor.pd Removed Files: msd2d-editor.pd Log Message:
Support for msd3D added.
Index: gem_masses.pd =================================================================== RCS file: /cvsroot/pure-data/externals/nusmuk/msd2D/editor/gem_masses.pd,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** gem_masses.pd 5 May 2005 15:12:45 -0000 1.4 --- gem_masses.pd 11 May 2005 09:09:47 -0000 1.5 *************** *** 8,18 **** #X msg 47 325 draw line; #X obj 48 300 loadbang; ! #X obj 141 61 unpack 0 0 0; #X obj 150 453 circle 0.05; ! #X obj 240 311 inlet; #X obj 150 362 spigot; ! #X msg 239 289 1; ! #X obj 239 264 loadbang; ! #X connect 0 0 8 0; #X connect 1 0 9 0; #X connect 2 0 4 1; --- 8,43 ---- #X msg 47 325 draw line; #X obj 48 300 loadbang; ! #X obj 141 104 unpack 0 0 0; #X obj 150 453 circle 0.05; ! #X obj 338 297 inlet; #X obj 150 362 spigot; ! #X msg 337 275 1; ! #X obj 337 250 loadbang; ! #N canvas 0 0 450 300 demux 0; ! #X obj 91 69 inlet; ! #X obj 255 73 inlet; ! #X obj 223 106 select 0; ! #X obj 73 213 spigot 1; ! #X obj 165 219 spigot 0; ! #X obj 141 188 unpack 1 0; ! #X obj 96 255 outlet; ! #X obj 173 257 outlet; ! #X msg 174 140 1 0; ! #X msg 216 140 0 1; ! #X connect 0 0 3 0; ! #X connect 0 0 4 0; ! #X connect 1 0 2 0; ! #X connect 2 0 8 0; ! #X connect 2 1 9 0; ! #X connect 3 0 6 0; ! #X connect 4 0 7 0; ! #X connect 5 0 3 1; ! #X connect 5 1 4 1; ! #X connect 8 0 5 0; ! #X connect 9 0 5 0; ! #X restore 141 71 pd demux; ! #X obj 192 44 r MSD-TYPE; ! #X obj 238 104 unpack 0 0 0 0; ! #X connect 0 0 14 0; #X connect 1 0 9 0; #X connect 2 0 4 1; *************** *** 29,30 **** --- 54,61 ---- #X connect 12 0 11 1; #X connect 13 0 12 0; + #X connect 14 0 8 0; + #X connect 14 1 16 0; + #X connect 15 0 14 1; + #X connect 16 1 5 0; + #X connect 16 2 1 2; + #X connect 16 3 1 3;
Index: mass-set.pd =================================================================== RCS file: /cvsroot/pure-data/externals/nusmuk/msd2D/editor/mass-set.pd,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mass-set.pd 5 May 2005 15:12:45 -0000 1.3 --- mass-set.pd 11 May 2005 09:09:47 -0000 1.4 *************** *** 2,6 **** #X obj 251 159 pack 0 p; #X obj 251 187 route $1; ! #X obj 130 347 set mass x y; #X obj 251 100 t p p; #X obj 251 131 get mass mid; --- 2,6 ---- #X obj 251 159 pack 0 p; #X obj 251 187 route $1; ! #X obj 118 383 set mass x y; #X obj 251 100 t p p; #X obj 251 131 get mass mid; *************** *** 30,35 **** #X msg 307 536 posX $2 $3; #X msg 327 562 posY $2 $4; ! #X obj 51 319 scale-msd2ds; #X obj 337 422 scale-ds2msd; #X connect 0 0 1 0; #X connect 1 0 8 0; --- 30,36 ---- #X msg 307 536 posX $2 $3; #X msg 327 562 posY $2 $4; ! #X obj 39 355 scale-msd2ds; #X obj 337 422 scale-ds2msd; + #X msg 95 323 $1 $2; #X connect 0 0 1 0; #X connect 1 0 8 0; *************** *** 45,49 **** #X connect 8 1 14 1; #X connect 9 0 6 0; ! #X connect 11 0 27 2; #X connect 13 0 3 0; #X connect 14 0 22 0; --- 46,50 ---- #X connect 8 1 14 1; #X connect 9 0 6 0; ! #X connect 11 0 29 0; #X connect 13 0 3 0; #X connect 14 0 22 0; *************** *** 65,66 **** --- 66,68 ---- #X connect 28 0 21 2; #X connect 28 1 21 3; + #X connect 29 0 27 2;
--- msd2d-editor.pd DELETED ---
Index: msd_append.pd =================================================================== RCS file: /cvsroot/pure-data/externals/nusmuk/msd2D/editor/msd_append.pd,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** msd_append.pd 8 May 2005 13:19:05 -0000 1.4 --- msd_append.pd 11 May 2005 09:09:47 -0000 1.5 *************** *** 30,34 **** #X obj 66 203 + 20; #X obj 105 148 + 20; ! #X obj 192 177 r $0-M; #X obj 68 231 append mass x y mid mob M; #X obj 553 175 f $1; --- 30,34 ---- #X obj 66 203 + 20; #X obj 105 148 + 20; ! #X obj 208 133 r $0-M; #X obj 68 231 append mass x y mid mob M; #X obj 553 175 f $1; *************** *** 39,42 **** --- 39,45 ---- #X obj 21 135 r $0-geos; #X obj 252 77 r $0-start-traverse; + #X obj 179 204 f 0; + #X obj 21 158 t a b; + #X obj 195 173 r $0-mfds; #X connect 0 0 24 5; #X connect 1 0 21 0; *************** *** 69,79 **** #X connect 28 0 27 0; #X connect 29 0 25 0; ! #X connect 30 0 24 0; #X connect 31 0 2 0; #X restore 105 79 pd guts; #X obj 126 6 inlet; #X obj 169 5 inlet; #X obj 25 59 nbx 5 14 -1e+37 1e+37 0 0 $0-counter $0-counter-in id ! -22 8 0 10 -262144 -1 -1 0 256; #X obj 2 77 cnv 15 80 30 empty empty empty 10 10 0 10 -195568 -1 0 ; --- 72,86 ---- #X connect 28 0 27 0; #X connect 29 0 25 0; ! #X connect 30 0 33 0; #X connect 31 0 2 0; + #X connect 32 0 24 3; + #X connect 33 0 24 0; + #X connect 33 1 32 0; + #X connect 34 0 32 1; #X restore 105 79 pd guts; #X obj 126 6 inlet; #X obj 169 5 inlet; #X obj 25 59 nbx 5 14 -1e+37 1e+37 0 0 $0-counter $0-counter-in id ! -22 8 0 10 -262144 -1 -1 400 256; #X obj 2 77 cnv 15 80 30 empty empty empty 10 10 0 10 -195568 -1 0 ; *************** *** 86,90 **** #X obj 48 33 r $0-make-rect; #X msg 93 67 bang; ! #N canvas 449 480 450 300 1016-geos 1; #X obj 48 82 bng 24 250 50 0 $0-make-rect empty make-rect 0 -6 0 8 -24198 -1 -1; --- 93,97 ---- #X obj 48 33 r $0-make-rect; #X msg 93 67 bang; ! #N canvas 449 480 450 300 6969-geos 0; #X obj 48 82 bng 24 250 50 0 $0-make-rect empty make-rect 0 -6 0 8 -24198 -1 -1; *************** *** 105,108 **** --- 112,119 ---- #X floatatom 251 184 5 0 0 0 masses_# - #0-masses-circ; #X text 107 266 All coords as used by data structs.; + #X obj 54 233 hradio 15 1 0 2 $0-mf $0-mf Mobile/Fix 0 -6 0 8 -262144 + -1 -1 0; + #X obj 91 234 cnv 15 60 15 $0-mobfix $0-mobfix mobile 2 6 0 10 -233017 + -66577 0; #X restore 518 165 pd $0-geos; #X msg 519 125 ; $1 vis 1; *************** *** 112,116 **** #X obj 48 66 t b b; #X obj 78 226 s $0-start-traverse; ! #N canvas 0 0 930 534 1016-sixpack 0; #X obj 250 282 r $0-x0; #X text 452 208 Args; --- 123,127 ---- #X obj 48 66 t b b; #X obj 78 226 s $0-start-traverse; ! #N canvas 0 0 930 534 6969-sixpack 0; #X obj 250 282 r $0-x0; #X text 452 208 Args; *************** *** 133,137 **** #X obj 524 45 r $0-show-geos; #X obj 63 322 r $0-make-circ; ! #N canvas 0 0 930 534 1016-fourpack 0; #X text 452 208 Args; #X obj 320 310 sixpack --------------------; --- 144,148 ---- #X obj 524 45 r $0-show-geos; #X obj 63 322 r $0-make-circ; ! #N canvas 0 0 930 534 6969-fourpack 0; #X text 452 208 Args; #X obj 320 310 sixpack --------------------; *************** *** 155,158 **** --- 166,177 ---- #X obj 106 407 t b a; #X obj 63 370 make_circ 300 300 100 8; + #X obj 368 266 select 0; + #X msg 368 306 label mobile; + #X obj 368 329 s $0-mobfix; + #X msg 420 288 label fix; + #X obj 368 236 r $0-mf; + #X obj 507 332 s $0-mfds; + #X msg 508 301 0; + #X msg 544 299 900; #X connect 0 0 13 0; #X connect 3 0 10 0; *************** *** 174,177 **** --- 193,205 ---- #X connect 21 1 17 0; #X connect 22 0 21 0; + #X connect 23 0 24 0; + #X connect 23 0 29 0; + #X connect 23 1 26 0; + #X connect 23 1 30 0; + #X connect 24 0 25 0; + #X connect 26 0 25 0; + #X connect 27 0 23 0; + #X connect 29 0 28 0; + #X connect 30 0 28 0; #X restore 113 41 pd geos; #X obj 59 29 bng 15 250 50 0 $0-show-geos $0-show-geos geos 0 -6
Index: README =================================================================== RCS file: /cvsroot/pure-data/externals/nusmuk/msd2D/editor/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README 29 Apr 2005 19:28:36 -0000 1.1 --- README 11 May 2005 09:09:47 -0000 1.2 *************** *** 1,10 **** ! msd2d-editor ------------
patched by Frank Barknecht fbar@footils.org with a big hand from Nicolas ! Montgermont montgermont@la-kitchen.fr who wrote the msd2D external required ! for using this patch. GEM is used to provide an alternative visualization, but ! it is not required for the patch to work. Thanks Nicolas for a great external colletion.
! msd2d-editor.pd is the patch to open, further documentation is inside. --- 1,14 ---- ! msd-editor ------------
patched by Frank Barknecht fbar@footils.org with a big hand from Nicolas ! Montgermont montgermont@la-kitchen.fr who wrote the msd2D and msd3D externals ! required for using this patch. GEM is used to provide an alternative ! visualization, but it is not required for the patch to work. ! ! If you want to export the messages to msd2d, that are created, you also need a ! [prepend] external, preferably the one from the Cyclone library. ! Thanks Nicolas for a great external colletion.
! msd-editor.pd is the patch to open, further documentation is inside.
Index: link-set.pd =================================================================== RCS file: /cvsroot/pure-data/externals/nusmuk/msd2D/editor/link-set.pd,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** link-set.pd 5 May 2005 15:12:45 -0000 1.3 --- link-set.pd 11 May 2005 09:09:47 -0000 1.4 *************** *** 1,3 **** ! #N canvas 511 393 574 502 10; #X obj 251 159 pack 0 p; #X obj 251 187 route $1; --- 1,3 ---- ! #N canvas 449 81 747 726 10; #X obj 251 159 pack 0 p; #X obj 251 187 route $1; *************** *** 13,21 **** #X obj 251 131 get liaison lid; #X text 261 220 Select pointer with lid matching $1; ! #X obj 90 349 set liaison x1 y1 x2 y2; #X obj 251 73 r myliapointer; ! #X obj 90 292 unpack 0 0 0 0; ! #X obj 92 320 scale-msd2ds; ! #X obj 183 319 scale-msd2ds; #X connect 0 0 1 0; #X connect 1 0 5 0; --- 13,48 ---- #X obj 251 131 get liaison lid; #X text 261 220 Select pointer with lid matching $1; ! #X obj 90 526 set liaison x1 y1 x2 y2; #X obj 251 73 r myliapointer; ! #X obj 90 337 unpack 0 0 0 0; ! #X obj 90 497 scale-msd2ds; ! #X obj 181 496 scale-msd2ds; ! #N canvas 0 0 450 300 demux 0; ! #X obj 91 69 inlet; ! #X obj 255 73 inlet; ! #X obj 223 106 select 0; ! #X obj 73 213 spigot 1; ! #X obj 165 219 spigot 0; ! #X obj 141 188 unpack 1 0; ! #X obj 96 255 outlet; ! #X obj 173 257 outlet; ! #X msg 174 140 1 0; ! #X msg 216 140 0 1; ! #X connect 0 0 3 0; ! #X connect 0 0 4 0; ! #X connect 1 0 2 0; ! #X connect 2 0 8 0; ! #X connect 2 1 9 0; ! #X connect 3 0 6 0; ! #X connect 4 0 7 0; ! #X connect 5 0 3 1; ! #X connect 5 1 4 1; ! #X connect 8 0 5 0; ! #X connect 9 0 5 0; ! #X restore 90 292 pd demux; ! #X obj 272 340 unpack 0 0 0 0 0 0; ! #X text 198 336 msd2D; ! #X text 410 338 msd3D: skip Z; ! #X obj 157 255 r MSD-TYPE; #X connect 0 0 1 0; #X connect 1 0 5 0; *************** *** 27,31 **** #X connect 5 0 4 0; #X connect 5 1 12 4; ! #X connect 6 0 14 0; #X connect 8 0 3 0; #X connect 10 0 0 0; --- 54,58 ---- #X connect 5 0 4 0; #X connect 5 1 12 4; ! #X connect 6 0 17 0; #X connect 8 0 3 0; #X connect 10 0 0 0; *************** *** 39,40 **** --- 66,74 ---- #X connect 16 0 12 2; #X connect 16 1 12 3; + #X connect 17 0 14 0; + #X connect 17 1 18 0; + #X connect 18 0 15 0; + #X connect 18 1 15 1; + #X connect 18 3 16 0; + #X connect 18 4 16 1; + #X connect 21 0 17 1;
Index: gem_links.pd =================================================================== RCS file: /cvsroot/pure-data/externals/nusmuk/msd2D/editor/gem_links.pd,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** gem_links.pd 5 May 2005 15:12:45 -0000 1.4 --- gem_links.pd 11 May 2005 09:09:47 -0000 1.5 *************** *** 7,17 **** #X obj 156 432 curve 2; #X obj 178 210 pack 0 0 0; ! #X obj 255 189 pack 0 0 0; ! #X obj 141 62 unpack 0 0 0 0 0; ! #X obj 248 322 inlet; #X obj 109 364 spigot; ! #X msg 247 300 1; ! #X obj 247 275 loadbang; ! #X connect 0 0 8 0; #X connect 1 0 3 1; #X connect 2 0 5 0; --- 7,42 ---- #X obj 156 432 curve 2; #X obj 178 210 pack 0 0 0; ! #X obj 269 213 pack 0 0 0; ! #X obj 141 97 unpack 0 0 0 0 0; ! #X obj 282 324 inlet; #X obj 109 364 spigot; ! #X msg 281 302 1; ! #X obj 281 277 loadbang; ! #N canvas 0 0 450 300 demux 0; ! #X obj 91 69 inlet; ! #X obj 255 73 inlet; ! #X obj 223 106 select 0; ! #X obj 73 213 spigot 1; ! #X obj 165 219 spigot 0; ! #X obj 141 188 unpack 1 0; ! #X obj 96 255 outlet; ! #X obj 173 257 outlet; ! #X msg 174 140 1 0; ! #X msg 216 140 0 1; ! #X connect 0 0 3 0; ! #X connect 0 0 4 0; ! #X connect 1 0 2 0; ! #X connect 2 0 8 0; ! #X connect 2 1 9 0; ! #X connect 3 0 6 0; ! #X connect 4 0 7 0; ! #X connect 5 0 3 1; ! #X connect 5 1 4 1; ! #X connect 8 0 5 0; ! #X connect 9 0 5 0; ! #X restore 141 64 pd demux; ! #X obj 192 37 r MSD-TYPE; ! #X obj 280 97 unpack 0 0 0 0 0 0 0; ! #X connect 0 0 13 0; #X connect 1 0 3 1; #X connect 2 0 5 0; *************** *** 29,30 **** --- 54,64 ---- #X connect 11 0 10 1; #X connect 12 0 11 0; + #X connect 13 0 8 0; + #X connect 13 1 15 0; + #X connect 14 0 13 1; + #X connect 15 1 4 0; + #X connect 15 2 6 1; + #X connect 15 3 6 2; + #X connect 15 4 7 0; + #X connect 15 5 7 1; + #X connect 15 6 7 2;
--- NEW FILE: msd-editor.pd --- #N canvas 33 84 866 562 10; #N canvas 0 64 1222 870 data 0; #X restore 719 42 pd data; #X obj 24 523 structures; #X obj 30 314 bng 24 250 50 0 empty $0-generate generate 0 -6 0 8 -24198 -1 -1; #X text 25 499 Data Struct Definitions; #N canvas 460 399 104 45 save 0; #X obj 2 3 cnv 15 100 40 empty empty empty 20 12 0 14 -228992 -66577 0; #X obj 4 17 bng 20 250 50 0 empty empty load 0 -6 0 8 -258699 -1 -1 ; #X obj 34 17 bng 20 250 50 0 empty empty saveas 0 -6 0 8 -24198 -1 -1; #X obj 101 60 savepanel; #X obj 50 168 s pd-data; #X msg 101 115 write $1; #X obj 20 91 openpanel; #X msg 20 115 read $1; [...1025 lines suppressed...] #X connect 22 1 2 0; #X coords 0 0 1 1 77 44 1; #X restore 703 208 pd save; #X text 683 188 Save MSD messages:; #X obj 92 315 tgl 24 0 MSD-TYPE $0-MSD-TYPE 3-D 0 -6 0 8 -233017 -1 -1 1 1; #X text 120 320 MSD-TYPE; #X obj 25 14 msd_append; #X text 240 304 Press "generate" to generate messages to the msd object and create the physical model inside. You can select which type of msd* to use as well: msd2D or msd3D. With 3-D , the Z-coordinate will default to a value of zero.; #X connect 2 0 6 0; #X connect 7 0 8 0; #X connect 7 1 9 0; #X connect 8 0 7 0; #X connect 9 0 7 1; #X connect 11 0 7 2; #X connect 24 0 23 0; #X connect 25 0 23 0;