Forums > Javascript

message to max from JS

February 24, 2013 | 11:46 am

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.


February 24, 2013 | 12:52 pm

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


Viewing 2 posts - 1 through 2 (of 2 total)