Good exercices on JS in MaxMSP?

Jul 29, 2010 at 10:54pm

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

#51566
Jul 30, 2010 at 1:40am

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.

#184971
Aug 5, 2010 at 4:41am

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.

#184972
Aug 10, 2010 at 1:19am

@ Luke hall, my email is Thinksamuel@yahoo.com
Thank you very much

#184973
Aug 10, 2010 at 2:19am

Here are three example JavaScript objects for Max that I wrote for someone who is a total beginner. The tasks the objects perform are very simple, but the scripts contain lots of comments, so they should be of some help to you if you need some basic instruction.

#184974
Aug 14, 2010 at 10:29am

Hello Luke,
I need to progress in javascript.
Is it possible to send me your examples?
My email: puygranier.olivier(at)free.fr
Best regards

#184975
Aug 29, 2012 at 4:38pm

@Christopher Dobrian
thanks, your examples help me a lot ! :)

#184976
Sep 5, 2012 at 9:01am

autowatch = 1;
inlets = 2;
outlets = 2;

// Max special functions
var msg_int = function (v)
{
post(“received integer value :”, v ,”n”);
};

var list = function (a)
{
post(arrayfromargs(arguments),”n”);
};

// 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
function testtypedarray()
{
// eg.
var colBytes = new Uint8Array(32);
var colBytes = new Uint16Array(32);
}

// Dict Object if you don’t know before
function dictionary(dict_name)
{
var d = new Dict(dict_name);
var keys = d.getkeys();

if (!keys)
{
// If no keys (or empty dictionary)
post(“no keys”,”n”);
}
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”);
}

}

#184977

You must be logged in to reply to this topic.