code translation? max/msp-> java or C
Sep 4, 2007 at 2:21am
code translation? max/msp-> java or C
I was wondering if there are any programs that would translate
A few years back, I programmed a very complex patch for tracing
Or course, I could port the code myself… but, this would be long.
Is this even possible?
Sep 4, 2007 at 3:54am
You’re better off learning C and writing it yourself than what you’re asking
Writing a parser that takes pat file input and automatically parses that
On 9/3/07, Pierre-Emmanuel Levesque
> Hi everyone,
> I was wondering if there are any programs that would translate
> the text code of a max patch to java or C code automatically.
> A few years back, I programmed a very complex patch for tracing
> 3d paths that are used to spatialize sound in 3D. I would like
> to keep working on this program, but it would be much easier
> in C and more efficient.
> Or course, I could port the code myself… but, this would be long.
> Is this even possible?
Sep 4, 2007 at 4:02am
I was expecting this kind of reply. I do a lot of web programming so I know how editors create crappy bloated code. I do all my coding by hand.
I was just wondering what if? And wanted to be 100% sure.
I’ll have to move my code to C myself.
I have never found anything that does what my patch does.
Sep 4, 2007 at 10:44am
Quote: bbnickell wrote on Tue, 04 September 2007 05:54
Not only that, but your code generator would need to know how every object instantiated in your patch works. IOW, it would need to be able to re-implement all ~340 standard objects from 2d.wave~ to zmap, about 50 UI objects (from dial to zplane~), a couple dozen built-in objects (from message box to patcher), never mind objects by independent developers (www.maxobjects.com lists about 3,500 such items, ranging from ! to zerocross~).
That’s a pretty massive code project.
I have worked on re-implementing a massive Max/MSP application (ca. 1.5MB patcher code) to C/C++. Although there is quite a bit of work involved, it is considerably more tractable than attempting to build a general “Max to C translator”. The biggest effort is recreating the quite rich world of Max UI elements. The actual calculations are usually fairly straight forward.
Which reminds me: does anyone know of a Windows Forms equivalent for multislider?
Jun 17, 2010 at 10:40am
what’s up gentlemen,
I stumbled across this exchange in the midst of my own research and I thought I’d take a shot in the dark here…
“I have worked on re-implementing a massive Max/MSP application (ca. 1.5MB patcher code) to C/C++. Although there is quite a bit of work involved, it is considerably more tractable than attempting to build a general “Max to C translator”. The biggest effort is recreating the quite rich world of Max UI elements. The actual calculations are usually fairly straight forward.”
I am an aspiring programmer who is working on a couple of different personal music applications and I desire to get down to the heart of the beast when it comes to building/coding my Frankenstein. Foremost, I have every intention to be my own “Max to C translator”, however, I am new to programming on such a low level. Turns out, I am a sponge and everything I’ve learned so far has come with an encouraging level of fluidity although I owe that to everyone who has pointed me in the right direction (even if it’s back from where I came).
“The actual calculations are usually fairly straight forward.”
No point in dancing around it… Where is a good place to start learning how to make the calculations and what information do I use to do them?
I know that this has to be the simplest and most basic way to communicate with the computer and that is what I want to do. So that when I tell it to do something, nothing else gets in the way. I figure this is the best way to get the most efficient and consistent response from an application of any kind.
Any thoughts would be sincerely appreciated…hope someone actually reads this haha
Jun 17, 2010 at 8:26pm
Along these lines, I’m wondering about the Max-to-Arduino project that Cycling is apparently working on… any word yet? Saw a small demo of it last year. You use a set of special objects and make your patch, it generates Arduino code from it. Rather like what’s being described here, but understandably not using the massive set of already-implemented objects, which would be insane to try and tackle.
Still, I would love to tinker around with that… imagine the learning possibilities for Max users who aren’t great with code, but even more important, code users who are learning Max. This would give them something they understand right away and allow them to see how it’s implemented in a patch.
You must be logged in to reply to this topic.