Forums > MaxMSP

[ANN] max5 to max4 patch converter


f
July 4, 2008 | 10:21 am

written in supercollider… ;-)

max5 .maxpat to max4 .pat converter

download MaxPat.zip from http://www.fredrikolofsson.com/pages/
code-sc.html
download supercollider 3.2 or newer from http://
supercollider.sourceforge.net
see readme for installation instructions and info on how the
conversion works

disclaimer – of course it will not work 100% due to all the new
features in max5
but it does a fairly thorough conversion. please report any
problems or errors

_f

#|
fredrikolofsson.com klippav.org musicalfieldsforever.com
|#



grg
July 4, 2008 | 1:49 pm



grg
July 4, 2008 | 3:20 pm

> but is there any chance to run this converter on 10.3?

I still don’t know what I’m doing, but apparently copying the
maxIndex/minIndex functions in the file
SCClassLibrary/Common/Collections/Collection.sc
from the 3.2 to the SC-gcc3-07.29.2007 install makes it work on 10.3.
I get bogus objects for counter for reasons unknown to me (for example
in cheby or ModSquad from examples), but appart from that the patches I
tried so far are usable in 4.6.3.

Thanks a lot for posting this!

cheers,
g.



f
July 5, 2008 | 12:56 am

hallo Georg,
thank you for your report.
i’ve updated MaxPat to version 080705 and replaced the call to
minIndex. it should now run on pre sc3.2 without needing to install
extra methods.
i also fixed the problems with bogus counters and a serious bug in
the colour lookup (all coloured buttons and objects became green –
not my intention)
_f

5 jul 2008 kl. 00.20 skrev Georg Bosch:

>> but is there any chance to run this converter on 10.3?
>
> I still don’t know what I’m doing, but apparently copying the
> maxIndex/minIndex functions in the file
> SCClassLibrary/Common/Collections/Collection.sc
> from the 3.2 to the SC-gcc3-07.29.2007 install makes it work on 10.3.
> I get bogus objects for counter for reasons unknown to me (for
> example in cheby or ModSquad from examples), but appart from that
> the patches I tried so far are usable in 4.6.3.
>
> Thanks a lot for posting this!
>
> cheers,
> g.

#|
fredrikolofsson.com klippav.org musicalfieldsforever.com
|#



kjg
July 5, 2008 | 9:18 am

Quote: f wrote on Fri, 04 July 2008 12:21
—————————————————-
>
> written in supercollider… ;-)
>
> max5 .maxpat to max4 .pat converter
>
> download MaxPat.zip from http://www.fredrikolofsson.com/pages/
> code-sc.html
> download supercollider 3.2 or newer from http://
> supercollider.sourceforge.net
> see readme for installation instructions and info on how the
> conversion works
>
> disclaimer – of course it will not work 100% due to all the new
> features in max5
> but it does a fairly thorough conversion. please report any
> problems or errors
>
> _f

How cool is that!!! Thank you very much for your effort!

regards,
kjg



f
July 10, 2008 | 9:02 am

new version up at http://www.fredrikolofsson.com/pages/code-sc.html
many bugs fixed and also new features added to manipulate patches

example of generated patchlines…

#|
fredrikolofsson.com klippav.org musicalfieldsforever.com
|#


July 10, 2008 | 10:10 am

Wow, excellent work !
Thanx !!!


January 25, 2011 | 4:13 pm

Hi guys,
I’ve try to follow step by step the installation but when I try to run the exemple :
//simple example – convert and save on the desktop
a= MaxPat.read("/Applications/Max5/examples/max-tricks/buttonflower.maxpat");
a.saveAsMax4("~/Desktop/buttonflower.pat");
It say :
"
ERROR: Message ‘saveAsMax4′ not understood.
RECEIVER:
nil
ARGS:
Instance of String { (165B6290, gc=C4, fmt=07, flg=10, set=02)
indexed slots [26]
0 : ~
1 : /
2 : D
3 : e
4 : s
5 : k
6 : t
7 : o
8 : p
9 : /
10 : b
11 : u
12 : t
13 : t
14 : o
15 : n
16 : f
17 : l
18 : o
19 : w
20 : e
21 : r
22 : .
23 : p
24 : a
25 : t
}
CALL STACK:
DoesNotUnderstandError:reportError 174258F0
arg this =
Nil:handleError 17425890
arg this = nil
arg error =

Thread:handleError 174257D0
arg this =

arg error =

Object:throw 17425770
arg this =

Object:doesNotUnderstand 17425710
arg this = nil
arg selector = ‘saveAsMax4′
arg args = [*1]
Interpreter:interpretPrintCmdLine 165A5DB0
arg this =

var res = nil
var func =

var code = "a.saveAsMax4("~/Desktop/butt…"
var doc =

Process:interpretPrintCmdLine 17425650
arg this =

"
I’m not a programmer…
Is anyone who could help me ?

Thanks


January 25, 2011 | 4:46 pm

Strange! Did you install the library in the right folder? Did you restart SC afterwards?
What’s displayed once you evaluate the first line? (a=…)

I just tried, and it does work.


January 25, 2011 | 9:25 pm

Thanks !
I’ve put the "MaxPat.sc" in "User/Administrator/LIbrary/Application support/SuperCollider/Extensions"
when i run SC it write
"init_OSC
compiling class library..
NumPrimitives = 754
compiling dir: ‘/Applications/SuperCollider/SCClassLibrary’
compiling dir: ‘/Users/administrateur/Library/Application Support/SuperCollider/Extensions’
pass 1 done
numentries = 922935 / 13290000 = 0.069
5316 method selectors, 2500 classes
method table size 7152716 bytes, big table size 53160000
Number of Symbols 12627
Byte Code Size 428192
compiled 400 files in 1.57 seconds
compile done
Help tree read from cache in 0.084132191 seconds
Class tree inited in 0.17 seconds
Welcome to SuperCollider, type cmd-d for help
"
when I run the first line ("a= MaxPat.read("/Applications/Max5/examples/max-tricks/buttonflower.maxpat");") it says:
"a MaxPat"


Viewing 10 posts - 1 through 10 (of 10 total)