Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#94 Comparaison file

open
nobody
Docs (7)
5
2012-12-21
2010-01-06
BAUDRY Olivier
No

It would be good for WinMerge to compare files from Max Msp development and pure data in MaxMSP take a file extension. But pat and editable form. Txt files as PureData with the extension Pd which are editable. txt

For exemple file pd in text is like this toto.pd:

#N canvas 168 165 616 512 12;
#X obj 53 29 inlet~;
#X obj 129 29 inlet~;
#X obj 192 29 inlet;
#X obj 282 321 outlet;
#X obj 53 324 writesf~ 2;
#X obj 77 196 dac~;
#X msg 193 77 open -wave -bytes 2 \$1;
#X obj 192 54 savepanel;
#X msg 186 229 start;
#X msg 149 256 stop;
#X obj 220 152 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -262144
0 1;
#X msg 282 106 color \$1;
#X obj 249 197 expr $f1 * 3 +13;
#X obj 149 197 select 0 1;
#X obj 318 31 inlet;
#X obj 516 106 switch~;
#X obj 496 84 tgl 15 0 empty empty empty 0 -6 0 8 -258699 -1 -262144
0 1;
#X obj 496 35 inlet;
#X obj 508 135 expr $f1*3 +13;
#X msg 479 159 color \$1;
#X obj 479 191 outlet;
#X obj 423 65 loadbang;
#X msg 423 91 1;
#X text 130 9 AudioR;
#X text 54 9 AudioL;
#X text 194 8 Filename;
#X text 301 5 start/stop bounce;
#X text 18 356 26-apr-2004 Glo@mobil12 dacbounce~v.01;
#X connect 0 0 5 0;
#X connect 0 0 4 0;
#X connect 1 0 5 1;
#X connect 1 0 4 1;
#X connect 2 0 7 0;
#X connect 6 0 4 0;
#X connect 7 0 6 0;
#X connect 8 0 4 0;
#X connect 9 0 4 0;
#X connect 10 0 12 0;
#X connect 10 0 13 0;
#X connect 11 0 3 0;
#X connect 11 0 10 0;
#X connect 12 0 11 0;
#X connect 13 0 9 0;
#X connect 13 1 8 0;
#X connect 14 0 10 0;
#X connect 16 0 15 0;
#X connect 16 0 18 0;
#X connect 17 0 16 0;
#X connect 18 0 19 0;
#X connect 19 0 16 0;
#X connect 19 0 20 0;
#X connect 21 0 22 0;
#X connect 22 0 20 0;
And a file in MaxMsp like toto.pat is :

max v2;
#N vpatcher 138 41 575 486;
#P bpatcher 235 25 34 234 -62 -74 MSD-OneTrack 0 8;
#P bpatcher 202 25 34 234 -62 -74 MSD-OneTrack 0 7;
#P bpatcher 169 25 34 234 -62 -74 MSD-OneTrack 0 6;
#P bpatcher 136 25 34 234 -62 -74 MSD-OneTrack 0 5;
#P bpatcher 103 25 34 234 -62 -74 MSD-OneTrack 0 4;
#P bpatcher 70 25 34 234 -62 -74 MSD-OneTrack 0 3;
#P bpatcher 37 25 34 234 -62 -74 MSD-OneTrack 0 2;
#P bpatcher 4 25 34 234 -62 -74 MSD-OneTrack 0 1;
#P pop;
or :
max v2;
#N vpatcher 221 44 910 720;
#P window setfont "Sans Serif" 9.;
#P user ubumenu 63 211 31 196617 0 0 1 0;
#X add Off;
#X add Grp1;
#X add Grp2;
#X add Grp3;
#X add Grp4;
#X prefix_set 0 0 <none> 0;
#P hidden newex 382 487 78 196617 send~ 8MSDOut;
#P hidden newex 223 443 78 196617 send~ 5MSDOut;
#P hidden newex 276 486 87 196617 send~ 6MSDOut;
#P hidden newex 329 445 78 196617 send~ 7MSDOut;
#P hidden newex 170 485 78 196617 send~ 4MSDOut;
#P hidden newex 11 440 78 196617 send~ 1MSDOut;
#P hidden newex 64 483 87 196617 send~ 2MSDOut;
#P hidden newex 117 443 78 196617 send~ 3MSDOut;
#P hidden message 339 274 263 196617 clear \, append FrontL(1) \, append Front \, append FrontR(2);
#P window linecount 2;
#P hidden message 339 244 312 196617 clear \, append FrontL(1) \, append Front \, append FrontR(2) \, append Right \, append RearR(3) \, append Rear \, append RearL(4) \, append Left;
#P hidden message 339 214 355 196617 clear \, append FrontL(1) \, append Front(2) \, append FrontR(3) \, append Right(4) \, append RearR(5) \, append Rear(6) \, append RearL(7) \, append Left(8);
#P window linecount 1;
#P hidden newex 295 155 27 196617 + 1;
#P hidden newex 295 177 63 196617 select 1 2 3;
#P newex 215 94 45 196617 loadbang;
#P message 215 119 48 196617 border 0;
#P newex -24 66 75 196617 r $1-MidiMute;
#P hidden newex 126 224 129 196617 deselectnumberbox 3000;
#P hidden newex -50 29 100 196617 receive~ $1-MixIn;
#P number 63 176 24 9 -75 18 35 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user ubutton 86 176 15 13 0 0;
#P hidden message 135 152 50 196617 0;
#P hidden message -31 337 26 196617 270;
#P hidden message -47 317 26 196617 225;
#P hidden message -63 299 26 196617 180;
#P hidden message -79 281 26 196617 135;
#P hidden message -95 336 20 196617 90;
#P hidden message -111 316 20 196617 45;
#P hidden message -127 298 14 196617 0;
#P hidden message -143 280 26 196617 315;
#P hidden newex -143 255 141 196617 select 0 1 2 3 4 5 6 7;
#P user panpot 63 243 32 32 104 0;
#P window setfont "Sans Serif" 10.;
#P comment 62 275 36 196618 [Edit];
#B frgb 255 255 255;
#P user led 77 193 17 17 1 150;
#P window setfont "Sans Serif" 9.;
#P hidden newex 11 416 597 196617 poly~ MSD-TrackAuto args $1;
#P user pictslider 63 74 16 100 4 0 4 0 BOUTON-MIX.pct 1 FOND-MIX.pct 1 2610 0 1179648 -4915200 1. 1.;
#P user meter~ 81 74 94 155 100 0 168 0 104 104 104 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P user pictctrl 63 194 14 15 mute.pct 0 15 1 1 26 0 1 0 14 15 128 0 1 10 2 1 1 270;
#P comment 62 229 32 196617 [ Pan];
#B frgb 255 255 255;
#P comment 79 159 19 196617 $1;
#B frgb 255 255 255;
#P comment 85 177 16 196617 r.;
#B frgb 255 255 255;
#P user panel 61 227 34 17;
#X brgb 106 106 106;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P newex 295 132 55 196617 r panmode;
#P user ubutton 63 274 34 14 0 0;
#P user umenu 62 227 32 196647 1 64 243 1;
#X add FrontL(1);
#X add Front(2);
#X add FrontR(3);
#X add Right(4);
#X add RearR(5);
#X add Rear(6);
#X add RearL(7);
#X add Left(8);
#P background;
#P hidden connect 0 0 14 0;
#P hidden connect 14 0 15 0;
#P hidden connect 14 1 16 0;
#P hidden connect 14 2 17 0;
#P hidden connect 14 3 18 0;
#P hidden connect 14 4 19 0;
#P hidden connect 14 5 20 0;
#P hidden connect 14 6 21 0;
#P hidden connect 14 7 22 0;
#P hidden connect 25 0 10 0;
#P hidden connect 26 0 10 0;
#P hidden connect 9 1 10 0;
#P connect 10 0 38 0;
#P hidden connect 29 0 3 0;
#P hidden connect 33 0 0 0;
#P hidden connect 35 0 0 0;
#P hidden connect 34 0 0 0;
#P hidden connect 10 8 25 0;
#P hidden connect 10 10 7 0;
#P hidden connect 28 0 7 0;
#P hidden connect 10 12 44 0;
#P hidden connect 10 9 13 0;
#P hidden connect 15 0 13 0;
#P hidden connect 16 0 13 0;
#P hidden connect 17 0 13 0;
#P hidden connect 18 0 13 0;
#P hidden connect 19 0 13 0;
#P hidden connect 20 0 13 0;
#P hidden connect 21 0 13 0;
#P hidden connect 22 0 13 0;
#P connect 10 1 37 0;
#P hidden connect 10 8 9 1;
#P hidden connect 23 0 9 1;
#P hidden connect 10 11 11 0;
#P hidden connect 26 0 8 0;
#P connect 10 2 36 0;
#P hidden connect 25 0 27 0;
#P hidden connect 13 0 10 1;
#P hidden connect 24 0 23 0;
#P connect 10 3 39 0;
#P connect 30 0 29 0;
#P connect 10 4 42 0;
#P hidden connect 7 0 10 2;
#P connect 10 5 41 0;
#P hidden connect 2 0 32 0;
#P hidden connect 32 0 31 0;
#P connect 10 6 40 0;
#P hidden connect 31 2 33 0;
#P hidden connect 31 1 34 0;
#P hidden connect 31 0 35 0;
#P hidden connect 11 0 10 3;
#P connect 10 7 43 0;
#P hidden connect 1 1 10 4;
#P hidden connect 44 0 10 5;
#P pop;
I think it's better for winmerge to compare some file .pat and pd.

Discussion