Assignment for March 3, 2015

In class I’ll introduce the basics of using the JavaScript programming language within Max.

In preparation, read this introduction to JavaScript in Max, and then study this set of three small JavaScript programs. Download and save the six files in that directory. The files are meant to be studied in progressive order: 1) bang2x.maxpat, 2) number1x.maxpat, 3) numbearray.maxpat. Within each patch double-click on the js object to open the script it contains. Study each script till you understand how it works. (Ask questions about anything you don’t understand!)

There’s quite a bit of JavaScript documentation within the Max application’s Max Documentation, which you can also read inĀ the online version. In that documentation, read the Introduction, and Basic Techniques.

You can look up anything about features of the JavaScript language in the official JavaScript reference manual.