max controlled over network…?

Feb 23, 2012 at 10:40am

max controlled over network…?

Hi,
The setup I am aiming for is this:
a max patch running in a gallery space to manipulate sound / video. the patch is controlled by users online through a downloadable patch that connects to the gallery and sends just control data to the gallery patch.

i thought this would be possible using udpsend/receive and opening up (port forwarding) a port at the gallery end. This should work for one user but if more people are online using the patch i would like to queue the users trying to connect.
Does anyone know how this could be done using Max?

in the downloadable patch it is set so their public ip is sent to the gallery when they load the patch but i’m not sure how i can check from the gallery who is connected over time.

any help / hints would be greatly appreciated. this is all taking place on OS X 10.6.4
thanks,
d

#61932
Feb 23, 2012 at 11:26am

Hi d.w.str_,

You could use a push-servive.
I published one tool for that here:http://cycling74.com/toolbox/jm-pubnub/
(Note that “only” 5 million messages per month are for free…)

With this you can just assign a random/unique key to every patch to queue the users.

This could be done in JS by getting the the timestamp in milliseconds when opening the path for the first time.

Jan

#223669
Feb 23, 2012 at 11:34am

…if you rely on public IP you my have duplicates when several users call from the same LAN behind a router.

#223670
Feb 23, 2012 at 12:00pm

thanks Jan,

good point about the public ip problem. i will certainly take a look at the tool you published when i get a chance.

will report back…….

david

#223671
Feb 23, 2012 at 10:04pm

Oli Larkin was working on a patch to control Max from a web browser

http://olilarkin.blogspot.com/2011/05/maxwebcontrol-v0-1.html

#223672
Feb 23, 2012 at 10:40pm

thanks grizzle.

the patch by Oli looks very nice indeed.
i’m still plugging away at w few different things but these suggestions really help so much!

thanks,
d

#223673

You must be logged in to reply to this topic.