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.
From the javascript documentation:
https://cycling74.com/docs/max5/vignettes/js/jsglobal.html
https://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:
https://cycling74.com/docs/max5/vignettes/core/messages_to_max.html