How to trigger Ableton Clips from Max For Live

Zikomo's icon

I am creating a custom plugin for my show which uses a custom interface which changes the logic applied to how I navigate my available clips and make use of my midi controller. I think I could possibly have my app send midi messages to Ableton which are then midi mapped to the relevant clips but I see this method as being tedious and prone to human error.
Is there a tutorial, documentation or some advice on how to make a connection to the Live API and directly launch clips. Better yet - is it possible to tell Ableton to load given mp3 files into those clips?

AudioLemon's icon

As easy way to do it is to go to the EXTRAS menu and click on the M4L.listofabtractions where you can see the way to navigate through scenes and tracks and to fire clips. I don't think you can load audio into clips through M4L.

I found the Live API Explorer a great help http://www.maxforlive.com/library/device.php?id=331 and this article http://blog.synthfan.info/2011/04/11/m4l-diving-into-the-live-object-model.aspx when trying to figure M4L routing out.

Firing selected clips is handy enough.

Max Patch
Copy patch and select New From Clipboard in Max.

timothybone's icon

Is there any good reason why we can't fill audio clips from M4L? what a basic seeming feature. It ought to be really easy

Wetterberg's icon

I'd love a "buffer~ = track x clip y" function, too.

Lee's icon

It should be quite easy to do using the new file_path attribute of an audio clip.... Note this isn't working on windows at the moment, not sure about mac

thomasswell's icon

im trying to do the oppoiiste ie... have max give me a bang when a clip is launched.

thoughts?

Evan's icon

live.observer fed the id of the clip.
property 'is_playing'