message to max from JS

Feb 24, 2013 at 11:46am

message to max from JS

Hi there,
is there a way to send message to max using only JS ?

(I mean without using (; max …..) message objects )

Any leads would be cool.

#66692
Feb 24, 2013 at 12:52pm

From the javascript documentation:

http://www.cycling74.com/docs/max5/vignettes/js/jsglobal.html

http://www.cycling74.com/docs/max5/vignettes/js/jsmaxobject.html#maxobjectproperties

You can access the globally available max object and call methods on it, e.g. to wrap up turning overdrive on/off in a js function:

function setOverdriveState(state) {
max.preempt(state);
}

Other available messages to Max:

http://cycling74.com/docs/max5/vignettes/core/messages_to_max.html

#240042

You must be logged in to reply to this topic.