Live API via JavaScript

You can program the Live API in JavaScript if you prefer using a text-based procedural language. This Max patch demonstrates how to do that. For this demo patch to work, you will need to download the JavaScript file LiveAPIviaJS.js into the folder where you plan to save your Max for Live device, then download this patch, and save it in the same folder as the JavaScript file (otherwise the patch will not find the .js file and the js object will not be created with the correct number of inlets and outlets), and then finally open the patch, and copy and paste it into a Max for Live window.