[sharing] max web control v0-1
i uploaded a first version of some glue code i’ve been developing to control a max patch from the web browser using net.loadbang.web and jqueryui/ajax
some of the sound file player controls in the demo are not fully working yet
have a look here:
it’s working really nicely on wired and wireless connections, and works on phone browsers etc
Hey that looks real cool man. I’m just in the middle of building something with net.loadbang.web and JQuery as it happens. My traffic is going in more the server to client direction than client to server. The application is a phone based Heads up display that’s gonna sit on a physical midi controller.
I am curious how you are getting realtime data to the client like the VU meter. Digging around it seems there are a few flavours of ‘push’ web coms like comet and a HTML5 one that’s not quite standardized yet.
My current model is a adaptive polling system that polls with ajax more often when it receives more data. It’s not ideal, I’d really like to use something a bit more elegant but have no idea how to set it up with JSP.
to be honest i had lots of difficulty trying to find good docs about the jsp attributes which is how net.loadbang.web sends data from max to the web page, but i got it to work by looking at cassiel.JWebFun.maxpat
essentially i make a regular ajax request for status.jsp, which displays a serverside variable jsonparams which contains the state of the max patch. At the moment i am updating the display and status quite frequently, but it has been working quite well, would be good to soak test it for a long time though.
Endless Series v3 out now – A unique synthesis and effect plugin based on the Shepard Tone auditory illusion
Here’s a little video of my implementation of net.loadband.web
the bars here are updating via an ajax polling function.
that is great, wish Jweb got some more love on max6
Forums > MaxMSP