Good exercices on JS in MaxMSP?
Anyone has good exercices to study JS. The tutorials are not sufficient for me and the examples are not that clear. I would like to have some more examples that are well explained
Check out this post that asked something similar. Lots of the links are references rather than tutorials and none of them are max specific. My own examples aren’t online any more, the hosting expired recently and I haven’t renewed it. However if you think it might help to take a look I can zip it up and send you an email.
as trite as it sounds, project driven learning is pretty efficient. true, you don’t become well rounded immediately, but i don’t think that happens with only lesson based learning either.
Is it possible to send me your examples?
My email: puygranier.olivier(at)free.fr
autowatch = 1;
inlets = 2;
outlets = 2;
// Max special functions
var msg_int = function (v)
post("received integer value :", v ,"n");
var list = function (a)
// get properties of all objects
var bang = function ()
this.patcher.apply( function (a)
var colProps = Object.getOwnPropertyNames(a);
if (colProps) post(colProps,"n");
// js typed array work in Max but not in OSX jsc
var colBytes = new Uint8Array(32);
var colBytes = new Uint16Array(32);
// Dict Object if you don’t know before
var d = new Dict(dict_name);
var keys = d.getkeys();
// If no keys (or empty dictionary)
else if ((typeof keys) == (typeof "string"))
// If dict have only one key
post("you have one key","n");
else if (keys instanceof Array)
// If dict have more than one keys
post("you have more keys","n");