If you are already familiar with this setup, you can skip ahead to the next article.
Summary of Steps
- Add a Max Midi Effect device and edit it
- Add a "js your-filename.js" object to the Max device
We're going to interact with Live directly through the LiveAPI, so our Max device will not alter the incoming signal. I usually use a MIDI effect in this situation, but you could use an audio effect. The important thing is the MIDI/audio input is passed directly to the MIDI/audio output. These instructions assume we're using a MIDI effect.
Pro tip: Learn Max keyboard shortcuts. If you type "n" in an unlocked device, it will add an object. Then you can type "js your-filename.js" and hit enter to create a js object.
At this point we could start coding, but let's take the time to choose a name for our files and save them. This way we can easily come back later for another coding session. Use the usual File → Save menu, or hit command+S (ctrl+S on Windows).
Finally, open the Max window via the Window → Max Window menu. When we print out debugging info, it will appear here.
Testing it Out
You should see
Hello World! in the Max window, like in this screenshot:
Adam Murray, April 2014
contact the author...