Hello there, i tried to change a max/msp patch to PD but i've got some problems to convert it, do you know how to do? thanks juto
here the code of the patch :
max v2; #N vpatcher 40 55 486 421; #P newex 126 38 35 196617 adc~; #P newex 130 233 35 196617 dac~; #P user meter~ 90 104 110 180 100 0 168 0 104 104 104 255 153 0 255 0 0; #P comment 261 53 59 196617 change freq; #P comment 213 53 41 196617 voix; #P user hslider 213 65 16 71 101 1 0 2; #P newex 127 65 86 196617 panP; #P flonum 273 143 35 9 0 0 8352 3 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 143 82 15 0; #P user multiSlider 243 158 13 65 0.2 6. 1 2681 47; #M frgb 0 0 0; #M brgb 200 103 16; #M rgb2 127 127 127; #P flonum 216 208 28 9 0 0 8352 3 0 0 0 221 221 221 222 222 222 0 0 0; #P user multiSlider 206 157 13 65 0.1 50. 1 2681 47; #M frgb 0 0 0; #M brgb 200 103 16; #M rgb2 127 127 127; #P comment 217 194 27 196617 size; #P flonum 256 208 26 9 0 0 8352 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 256 194 27 196617 pitch; #P user multiSlider 277 84 14 59 0.1 3000. 1 2937 47; #M frgb 0 0 0; #M brgb 255 255 255; #M rgb2 127 127 127; #N vpatcher 238 224 741 419; #P outlet 125 142 15 0; #P outlet 84 142 15 0; #P message 84 124 45 196617 set 1 $1; #P newex 84 102 49 196617 r Mg1dly; #P newex 84 68 53 196617 s Mng1del; #P inlet 84 33 15 0; #P outlet 13 142 15 0; #P message 13 123 35 196617 set $1; #P newex 13 102 53 196617 r Mg1rmp; #P newex 13 68 63 196617 s Mng1ramp; #P inlet 13 33 15 0; #P connect 0 0 1 0; #P connect 2 0 3 0; #P connect 3 0 4 0; #P connect 5 0 6 0; #P connect 7 0 8 0; #P connect 8 0 9 0; #P fasten 7 0 10 0 89 122 130 122; #P pop; #P newobj 204 118 71 196617 p MungKontrol; #P comment 203 84 14 196620 œ; #P user hslider 204 100 14 54 101 1 0 0; #P comment 261 84 14 196622 ; #P comment 225 88 27 196617 ramp; #P user multiSlider 110 104 17 76 0. 127. 1 2921 47; #M frgb 0 0 0; #M brgb 255 255 255; #M rgb2 127 127 127; #N vpatcher 118 173 362 376; #P newex 166 101 40 196617 line; #P message 166 83 41 196617 $1 222; #P newex 166 61 28 196617 r D8; #P outlet 118 143 15 0; #P number 118 125 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 118 82 26 196617 106; #P inlet 16 45 15 0; #P newex 16 64 50 196617 expr !$i1; #P newex 16 84 65 196617 s Mng1Freez; #P comment 25 108 45 196617 Freezer; #P connect 3 0 2 0; #P connect 2 0 1 0; #P connect 4 0 5 0; #P fasten 9 0 5 0 171 121 123 121; #P connect 5 0 6 0; #P connect 7 0 8 0; #P connect 8 0 9 0; #P pop; #P hidden newobj 147 158 49 196617 p mng1fz; #P toggle 162 164 26 0; #P user umenu 160 118 42 196645 1 64 134 0; #X add Init; #X add High; #X add Normal; #X add Low; #P message 205 137 25 196617 open; #P hidden newex 159 142 45 196617 pcontrol; #P user led 141 117 17 17 2 150; #N vpatcher 75 71 983 644; #P origin 0 42; #P inlet 857 8 15 0; #P inlet 839 8 15 0; #P newex 75 456 27 196617 * 0.; #N vpatcher 40 55 198 236; #P inlet 25 41 15 0; #P outlet 25 121 15 0; #P message 25 81 19 196617 -1; #P newex 25 62 30 196617 sel 2; #P message 25 101 92 196617 ambidirectional $1; #P connect 4 0 1 0; #P connect 1 0 2 0; #P fasten 1 1 0 0 50 98 30 98; #P connect 2 0 0 0; #P connect 0 0 3 0; #P pop; #P newobj 280 341 55 196617 p direction; #P user umenu 280 322 63 196647 1 64 338 1; #X add back & for; #X add forwards; #X add backwards; #P newex 256 164 49 196617 s Mg1dly; #P newex 309 71 53 196617 r Mng1del; #P newex 312 164 53 196617 s Mg1rmp; #P newex 369 71 53 196617 r Mng1ramp; #P number 361 128 52 9 0 100 3 3 0 0 0 204 140 140 222 222 222 0 0 0; #P newex 343 194 22 196617 i; #P newex 378 173 31 196617 t b f; #P newex 343 213 82 196617 scale 0 100 0. 1.; #P newex 378 153 31 196617 * 0.5; #P newex 84 541 81 196617 send~ Mg1_Mg2; #N comlet slider 0 127; #P inlet 832 369 15 0; #P number 75 419 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P outlet 118 477 15 0; #P newex 75 436 45 196617 @ 0. 1.2; #P message 75 477 41 196617 $1 444; #P newex 57 519 33 196617 *~ 0.; #P newex 75 494 30 196617 line~; #P newex 20 519 33 196617 *~ 0.; #P message 198 257 23 196617 2.5; #P message 788 44 23 196617 0.1; #P message 728 44 23 196617 0.1; #P message 668 44 14 196617 1; #P message 608 44 23 196617 0.6; #P message 548 44 20 196617 13; #P message 488 44 23 196617 2.5; #P message 428 44 17 196617 3.; #P message 368 44 20 196617 11; #P message 248 43 14 196617 8; #P newex 798 19 31 196617 r init; #P message 308 44 23 196617 0.6; #P flonum 781 128 56 9 0. 1. 3 3 0 0 0 204 140 140 222 222 222 0 0 0; #P flonum 661 128 55 9 0.01 0 1 3 0 0 0 204 140 140 222 222 222 0 0 0; #P flonum 721 128 56 9 0. 0 1 3 0 0 0 204 140 140 222 222 222 0 0 0; #P flonum 601 128 58 9 0. 0 1 3 0 0 0 204 140 140 222 222 222 0 0 0; #P flonum 541 128 55 9 0.1 0 1 3 0 0 0 204 140 140 222 222 222 0 0 0; #P flonum 481 128 58 9 0. 0 1 3 0 0 0 204 140 140 222 222 222 0 0 0; #P flonum 421 128 55 9 0.1 0 1 3 0 0 0 204 140 140 222 222 222 0 0 0; #P number 241 128 52 9 1 20 3 3 0 0 0 204 140 140 222 222 222 0 0 0; #P flonum 301 128 50 9 0.1 3000. 3 3 0 0 0 204 140 140 222 222 222 0 0 0; #P flonum 198 277 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 198 295 41 196617 gain $1; #P message 838 302 14 196617 1; #P newex 754 307 65 196617 r Mng1Freez; #P toggle 754 327 15 0; #P message 754 344 53 196617 record $1; #P newex 114 327 30 196617 del 3000; #P toggle 150 280 15 0; #P message 165 237 14 196617 0; #P newex 161 259 14 196617 i; #P message 150 237 14 196617 1; #P newex 150 218 40 196617 sel 1 0; #P newex 43 89 27 196617 t i i; #P outlet 57 541 15 0; #P newex 784 258 40 196617 line 0.; #P newex 726 258 40 196617 line 0.; #P newex 669 258 40 196617 line 0.; #P newex 609 258 40 196617 line 0.; #P newex 552 258 40 196617 line 0.; #P newex 492 258 40 196617 line 0.; #P newex 435 258 40 196617 line 0.; #P newex 371 257 40 196617 line 0.; #P newex 295 257 40 196617 line 0.; #P message 781 236 41 196617 $1 888; #P comment 792 104 33 196617 stereo; #P flonum 784 278 56 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P inlet 241 -18 15 0; #P message 721 236 41 196617 $1 888; #P message 661 236 41 196617 $1 888; #P message 601 236 41 196617 $1 888; #P message 541 236 41 196617 $1 888; #P message 481 236 41 196617 $1 888; #P message 421 236 41 196617 $1 888; #P message 371 236 41 196617 $1 888; #P message 301 236 41 196617 $1 888; #N coll FMung; #P newobj 241 -1 55 196617 coll FMung; #P newex 43 35 51 196617 r Mng1On; #P newex 241 18 554 196617 unpack 1 0. 0. 0. 0. 0. 0. 0. 0. 0.; #P newex 15 213 31 196617 r init; #P message 80 260 14 196617 0; #P message 96 260 14 196617 1; #P message 59 260 14 196617 0; #P message 43 260 14 196617 1; #P newex 43 232 86 196617 sel 0 1; #P message 96 290 45 196617 $1 2900; #P newex 96 307 28 196617 line~; #P message 43 290 45 196617 $1 3200; #P newex 43 307 30 196617 line~; #P newex 73 346 33 196617 *~ 0.; #P newex 20 346 33 196617 *~ 0.; #N comlet c'est là que tu mets le son; #P inlet 20 317 15 0; #P outlet 20 541 15 0; #N comlet from led; #P inlet 96 35 15 0; #N comlet to led; #P outlet 157 114 15 0; #P message 157 91 35 196617 set $1; #P toggle 43 59 23 0; #P message 150 343 51 196617 power $1; #P message 371 295 65 196617 ramptime $1; #P message 295 295 74 196617 delaylength $1; #P message 241 295 52 196617 voices $1; #P newex 371 368 148 196617 munger~; #P comment 309 116 33 196617 delay; #P comment 369 116 47 196617 ramptime; #P comment 492 104 49 196617 grain sep variation; #P comment 429 104 52 196617 grain separation; #P comment 609 104 46 196617 size variation; #P comment 669 116 53 196617 grain pitch; #P comment 730 104 45 196617 pitch variation; #P comment 549 116 50 196617 grain size; #P comment 258 104 39 196617 Nb of Voices; #P flonum 669 278 55 9 0.01 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 726 278 56 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 609 278 58 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 552 278 55 9 0.1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 492 278 58 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 435 278 55 9 0.1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 371 277 51 9 0.1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 241 277 52 9 1 20 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 295 277 50 9 0. 3000. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 137 404 596 196617 __________ MUNGER KTT v.2 ___________________________________________________________; #P comment 171 105 29 196617 fbck to led; #P comment 531 368 60 196620 Munger 1; #P fasten 31 0 32 0 25 338 25 338; #P connect 32 0 103 0; #P fasten 21 0 103 0 376 389 25 389; #P connect 103 0 30 0; #P fasten 29 0 26 0 101 54 48 54; #P connect 45 0 26 0; #P connect 26 0 69 0; #P connect 69 0 38 0; #P fasten 43 0 39 0 20 254 48 254; #P connect 38 0 39 0; #P fasten 42 0 35 0 85 287 48 287; #P connect 39 0 35 0; #P connect 35 0 34 0; #P connect 34 0 32 1; #P fasten 104 0 103 1 80 514 48 514; #P fasten 21 1 105 0 514 389 62 389; #P fasten 32 0 105 0 25 389 62 389; #P connect 105 0 68 0; #P fasten 38 0 40 0 48 254 64 254; #P fasten 43 0 40 0 20 254 64 254; #P fasten 31 0 33 0 25 338 78 338; #P fasten 110 0 109 0 837 416 80 416; #P connect 109 0 107 0; #P connect 107 0 123 0; #P connect 123 0 106 0; #P connect 106 0 104 0; #P fasten 38 1 42 0 86 254 85 254; #P fasten 104 0 105 1 80 514 85 514; #P fasten 103 0 111 0 25 538 89 538; #P fasten 105 0 111 0 62 538 89 538; #P connect 107 0 123 1; #P fasten 38 1 41 0 86 254 101 254; #P connect 41 0 37 0; #P fasten 40 0 37 0 64 287 101 287; #P connect 37 0 36 0; #P connect 36 0 33 1; #P connect 36 1 75 0; #P connect 123 0 108 0; #P fasten 69 1 70 0 65 109 155 109; #P connect 70 0 71 0; #P connect 71 0 74 0; #P fasten 72 0 74 0 166 278 155 278; #P connect 74 0 25 0; #P fasten 26 0 27 0 48 85 162 85; #P connect 27 0 28 0; #P fasten 75 0 72 0 119 359 146 359 146 256 166 256; #P connect 70 1 73 0; #P connect 73 0 72 1; #P fasten 71 0 72 1 155 254 170 254; #P fasten 92 0 102 0 803 40 203 40; #P connect 102 0 81 0; #P connect 81 0 80 0; #P connect 55 0 46 0; #P connect 46 0 44 0; #P fasten 93 0 83 0 253 71 246 71; #P connect 44 0 83 0; #P connect 83 0 4 0; #P connect 4 0 22 0; #P fasten 92 0 93 0 803 40 253 40; #P fasten 82 0 120 0 306 156 261 156; #P connect 121 0 122 0; #P fasten 47 0 59 0 306 254 300 254; #P connect 59 0 3 0; #P connect 3 0 23 0; #P fasten 91 0 82 0 313 63 306 63; #P connect 44 1 82 0; #P fasten 119 0 82 0 314 108 306 108; #P connect 82 0 47 0; #P fasten 92 0 91 0 803 40 313 40; #P fasten 116 0 118 0 366 155 317 155; #P fasten 114 0 115 0 383 192 348 192; #P fasten 116 0 115 0 366 185 348 185; #P connect 115 0 113 0; #P fasten 94 0 116 0 373 63 366 63; #P connect 44 2 116 0; #P fasten 117 0 116 0 374 106 366 106; #P fasten 92 0 94 0 803 40 373 40; #P fasten 113 0 48 0 348 232 376 232; #P connect 48 0 60 0; #P connect 60 0 5 0; #P connect 5 0 24 0; #P fasten 22 0 21 0 246 315 376 315; #P fasten 23 0 21 0 300 315 376 315; #P fasten 24 0 21 0 376 315 376 315; #P fasten 25 0 21 0 155 362 376 362; #P fasten 33 0 21 0 78 365 376 365; #P fasten 76 0 21 0 759 362 376 362; #P fasten 80 0 21 0 203 315 376 315; #P fasten 122 0 21 0 285 362 376 362; #P fasten 86 0 112 0 546 147 383 147; #P connect 112 0 114 0; #P fasten 6 0 21 1 440 318 395 318; #P connect 114 1 113 4; #P fasten 7 0 21 2 497 318 414 318; #P fasten 95 0 84 0 433 60 426 60; #P connect 44 3 84 0; #P connect 84 0 49 0; #P fasten 92 0 95 0 803 40 433 40; #P fasten 8 0 21 3 557 318 433 318; #P fasten 49 0 61 0 426 256 440 256; #P connect 61 0 6 0; #P fasten 9 0 21 4 614 318 452 318; #P fasten 11 0 21 5 674 318 471 318; #P fasten 96 0 85 0 493 60 486 60; #P connect 44 4 85 0; #P connect 85 0 50 0; #P fasten 10 0 21 6 731 318 490 318; #P fasten 92 0 96 0 803 40 493 40; #P fasten 50 0 62 0 486 256 497 256; #P connect 62 0 7 0; #P fasten 56 0 21 7 789 304 509 304; #P fasten 124 0 86 0 844 75 546 75; #P fasten 97 0 86 0 553 72 546 72; #P connect 44 5 86 0; #P connect 86 0 51 0; #P fasten 92 0 97 0 803 40 553 40; #P fasten 51 0 63 0 546 256 557 256; #P connect 63 0 8 0; #P fasten 98 0 87 0 613 60 606 60; #P connect 44 6 87 0; #P connect 87 0 52 0; #P fasten 92 0 98 0 803 40 613 40; #P fasten 52 0 64 0 606 256 614 256; #P connect 64 0 9 0; #P fasten 125 0 89 0 862 75 666 75; #P fasten 99 0 89 0 673 72 666 72; #P connect 44 7 89 0; #P connect 89 0 53 0; #P fasten 92 0 99 0 803 40 673 40; #P fasten 53 0 65 0 666 256 674 256; #P connect 65 0 11 0; #P fasten 100 0 88 0 733 60 726 60; #P connect 44 8 88 0; #P connect 88 0 54 0; #P fasten 54 0 66 0 726 256 731 256; #P connect 66 0 10 0; #P fasten 92 0 100 0 803 40 733 40; #P fasten 79 0 77 0 843 325 759 325; #P connect 78 0 77 0; #P connect 77 0 76 0; #P fasten 101 0 90 0 793 72 786 72; #P connect 44 9 90 0; #P connect 90 0 58 0; #P fasten 58 0 67 0 786 256 789 256; #P connect 67 0 56 0; #P fasten 92 0 101 0 803 40 793 40; #P fasten 92 0 79 0 803 40 843 40; #P pop; #P newobj 127 135 79 196620 p MUNGER2; #B color 12; #P comment 158 190 35 196617 Freeze; #P flonum 103 182 29 9 0 0 8352 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 144 98 51 196617 s Mng1On; #P comment 291 121 29 196617 Mung delay; #P hidden newex 258 178 38 196617 / 1.01; #P hidden number 258 160 31 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden connect 6 0 32 0; #P hidden connect 6 2 4 0; #P hidden connect 1 0 13 0; #P hidden connect 12 0 13 0; #P connect 34 0 28 0; #P connect 28 0 6 0; #P fasten 28 1 6 0 208 80 132 80; #P connect 6 0 33 0; #P hidden connect 7 0 6 1; #P hidden connect 6 3 7 0; #P connect 26 0 3 0; #P hidden connect 8 0 12 0; #P hidden connect 11 0 12 0; #P hidden connect 10 0 6 2; #P connect 6 0 33 1; #P hidden connect 9 0 8 0; #P hidden connect 8 0 6 3; #P hidden connect 13 0 6 3; #P hidden connect 23 0 6 4; #P hidden connect 25 0 6 5; #P connect 29 0 28 2; #P hidden connect 18 0 16 0; #P hidden connect 8 0 18 0; #P hidden connect 16 0 18 0; #P hidden connect 23 0 24 0; #P hidden connect 25 0 21 0; #P hidden connect 0 0 1 0; #P hidden connect 19 0 18 1; #P hidden connect 18 2 27 0; #P hidden connect 18 1 19 0; #P pop;
Yeah, most of the objects specified in that patch don't exist in
Pd. Like multislider and vpatcher, etc. You could take out all the incompatible objects in Max and then give it another go, or just rebuild it in Pd.
At 09:40 PM 13/03/2003 +0100, juto aviten wrote:
Hello there, i tried to change a max/msp patch to PD but i've got some problems to convert it, do you know how to do? thanks juto
here the code of the patch :
. . David McCallum . Music wants to be free . http://mentalfloss.ca/sintheta/ .
hi,
would not say 'most', as the missing objects are: meter~, umenu, pcontrol, led, scale, and multiSlider (plus the two I do not know about: panP, and munger~ -- are they abstractions?). All the others load more or less ok via the cyclone, including vpatcher.
Usually, the way missing objects should be dealt with, is not removing them, but defining abstraction replacements.
But still, importing max patches is a hard work, unless a patch has actually been created as a cross-platform one.
Krzysztof
David McCallum wrote:
Yeah, most of the objects specified in that patch don't exist in
Pd. Like multislider and vpatcher, etc. You could take out all the incompatible objects in Max and then give it another go, or just rebuild it in Pd.
I was thinking, this would be the perfect place for a sed, awk, or perl script. Has anyone tried to write a script to convert Max/MSP patches to Pd, or vice-versa? It would be a great resource, especially if it was developed into a substantial program.
.hc
On Friday, Mar 14, 2003, at 06:27 America/New_York, Krzysztof Czaja wrote:
hi,
would not say 'most', as the missing objects are: meter~, umenu, pcontrol, led, scale, and multiSlider (plus the two I do not know about: panP, and munger~ -- are they abstractions?). All the others load more or less ok via the cyclone, including vpatcher.
Usually, the way missing objects should be dealt with, is not removing them, but defining abstraction replacements.
But still, importing max patches is a hard work, unless a patch has actually been created as a cross-platform one.
Krzysztof
David McCallum wrote:
Yeah, most of the objects specified in that patch don't
exist in
Pd. Like multislider and vpatcher, etc. You could take out all the incompatible objects in Max and then give it another go, or just
rebuild
it in Pd.
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
hi hc,
there must be something I do not understand? Cyclone loads any max/msp patch, be it in a binary or text format.
The two remaining problems are missing objects and core incompatibilities, none of which can be solved with scripting...
k
Hans-Christoph Steiner wrote:
I was thinking, this would be the perfect place for a sed, awk, or perl script. Has anyone tried to write a script to convert Max/MSP patches to Pd, or vice-versa? It would be a great resource, especially if it was developed into a substantial program.
I am assuming that there are objects in max/msp with similar functionality as objects in Pd, but with different names and maybe slightly different usage. Then a sed script could make the name and connect conversions on the text files to make them work under Pd.
.hc
On Saturday, Mar 15, 2003, at 11:39 America/New_York, Krzysztof Czaja wrote:
hi hc,
there must be something I do not understand? Cyclone loads any max/msp patch, be it in a binary or text format.
The two remaining problems are missing objects and core incompatibilities, none of which can be solved with scripting...
k
Hans-Christoph Steiner wrote:
I was thinking, this would be the perfect place for a sed, awk, or
perl
script. Has anyone tried to write a script to convert Max/MSP
patches
to Pd, or vice-versa? It would be a great resource, especially if it was developed into a substantial program.
hi,
I think these, like spigot/gate, are mostly resolved in the cyclone, apart from a very few external cases, like ggee's envgen (similar to msp's 'function').
Actually, there are many more classes having the very same name, but working differently (biquad~, change, clip, clip~, line, line~, poly, snapshot~, scope~, table, append...). Cyclone's loading procedure does the mapping by changing their first letter to upper-case, like in Scope~.
Cyclone is still in its infancy, containing mostly non-gui classes (around 120, currently). It provides ''dummy substitutions'' for the remaining 200 (in order to preserve connections). If Pd's path contains abstractions named after any of the remaining classes, these are loaded instead of the 'dummies'.
The tricky part are core differences, like msp's 'mixins', 'enable' message and more.
(But perhaps I should keep quiet -- cyclone is not ready to be advertised...)
Krzysztof
Hans-Christoph Steiner wrote:
I am assuming that there are objects in max/msp with similar functionality as objects in Pd, but with different names and maybe slightly different usage. Then a sed script could make the name and connect conversions on the text files to make them work under Pd.
Hallo, Krzysztof Czaja hat gesagt: // Krzysztof Czaja wrote:
would not say 'most', as the missing objects are: meter~, umenu, pcontrol, led, scale, and multiSlider (plus the two I do not know about: panP, and munger~ -- are they abstractions?).
munger~ is a granulating delay line which is part of percolate and works just fine in Pd thanks to Olaf's and Maurizio's efforts.
Frank Barknecht _ ______footils.org__