embedding a patch on a website?
Recently a friend of mine has asked me to embed a max patch into his website, but i have no idea if this can be done. Any pointers would be appreciated (please keep in mind that i am not that savvy with website building, but he has a web guy who doesn’t know max/msp)
*in case you wanted to see how bad my web building skills are
what if it was a standalone? Does that change anything?
Subject: [maxmsp] Re: embedding a patch on a website?
You still can’t put it in your browser like it was a picture or youtube video I’m afraid. Your browser has no idea what max is or how to accomplish the tasks that max can. By the way, your website isn’t all that bad, though that picture scares me a little! Want a redesign?
And you toured with Fugazi?! That’s pretty amazing, I’m a little bit awe-struck.
i’m not sure if it is realizable, but seems possible, that you make a flash front-end with OSC for max patch and run max at the server.
Has anyone found a solution for this yet? It’s a great idea.
I once developed a web site for a project that was using Ruby On Rails and sqlite3 as a database. At the same time I had Max with FTM installed on the server (OSX 10.5 Server on a MiniMac), so that it was possible to send UDP messages to the server from Max applications running on clients.
on the server side also php and java can send udp data…
the way back should work as well: The Max-patch sends data via [udpsend] to the server and the server pushes the information to the client-brower i.e using a socalled unterminated http-request (also called Comet).
For the sending/pushing of the data from and to the browser this might be interesting:
p.s. This is more for a nerd-mind-f*** – But as max patches are saved using the JSON format, you could theoretically even create an entire max-patch from the browser, save it on the server and load it automatically into a patcher-object inside a max-patch….
I’m having good results at the moment using net.loadbang.web.
Closest I’ve gotten as of late is sending serial data from Max to a NodeJS server. Another potential avenue. Plus extra controller ideas.
I appreciate all of these comments, and I probably should have been clearer with my query. I am seeking the interactive, visual Max Patching Window within a web browser. So, the patch has to be visible, interactive, and run just as it does in the current patching window. Ahmet’s code looks to be the closest to the desired feature, but appears to be only a renderer (great start though). I did not see a source code repository (e.g., github) for his demonstration–so people can easily adapt to any server. Raja’s point seems spot on — the idea for Cycling is to broaden the interface so that is not as limited. Currently, that broadening is best achieved through HTML5/CSS/JS since that can then be pushed to any platform.
This Chrome Web Labs project looks like it may have some the pieces you would need:
@antialias: Chrome Web Labs appears to be missing the key part: the patching window interface (i.e., seeing the patch itself (not just a presentation) and being able to edit and interact with it).
Forums > MaxMSP