max6/m4l docs mention MIDI clip in an arrangement, but how?

Learn about building and using Max for Live devices.
Post Reply
hiheelhottie
Posts: 12
Joined: Fri Aug 28, 2009 3:54 pm

max6/m4l docs mention MIDI clip in an arrangement, but how?

Post by hiheelhottie » Tue Jan 03, 2012 3:13 am

The max6/m4l docs mention a MIDI clip in an arrangement, but how do you access? I'd to access an existing MIDI clip in the arrangement and replace its notes.

http://www.cycling74.com/docs/max6/dyna ... ject_model

Clip

This class represents a clip in Live. It can be either an audio clip or a MIDI clip in an arrangement or the session depending on the track (slot) it lives in.

trevox
Posts: 659
Joined: Wed Mar 23, 2011 12:58 am

Re: max6/m4l docs mention MIDI clip in an arrangement, but how?

Post by trevox » Tue Jan 03, 2012 12:30 pm

Kind of a lot of learning involved, but basically you are looking to use the commands down where the "Clip" section is. In order to access these, you first need to know what the id of the clip is. You can get this using the live.path object. So a message into that would be something like "path live_set tracks N clip_slots M clip". Once you have the id, you can feed that (from the middle outlet of the live.path object) into the right inlet of the live.object and then feed a message like "call replace_selected_notes" etc which will execute that function in the desired clip.

The hard thing I found to wrap my head around was how and when each of these objects are used, but the above is a simplified version. live.path give you the id to use to change stuff using the live.observer object. Best way of figuring it out is read as much tutorial stuff you can find and play around with it. This object also helped me understand object ID's and how they work. Play around with creating new clips and see where they appear:

http://dl.dropbox.com/u/30280761/Live.API_explorer.amxd

Hope that helps a bit.

hiheelhottie
Posts: 12
Joined: Fri Aug 28, 2009 3:54 pm

Re: max6/m4l docs mention MIDI clip in an arrangement, but how?

Post by hiheelhottie » Tue Jan 03, 2012 1:01 pm

Thanks for the response. I took a look at m4l when it first came out and was able to navigate to a clip inside a session slot and replace its notes. At the time, there didn't seem to be a way to navigate to a clip inside an arrangement.

The max6/m4l docs mention a "MIDI clip in an arrangement" explicitly in the Clip section of the LOM docs, but I still don't see a way to navigate to a clip inside an arrangement and was hoping I was overlooking something.

trevox
Posts: 659
Joined: Wed Mar 23, 2011 12:58 am

Re: max6/m4l docs mention MIDI clip in an arrangement, but how?

Post by trevox » Tue Jan 03, 2012 1:07 pm

Ah, sorry, I misunderstood what you were trying to do. Never ventured into that so can't help much there. Maybe create a clip in the arrange page and have a look using that API explorer object to see if anything appears?

broc
Posts: 1151
Joined: Mon Jul 26, 2004 8:37 am

Re: max6/m4l docs mention MIDI clip in an arrangement, but how?

Post by broc » Tue Jan 03, 2012 1:12 pm

You may use the path 'live_set view detail_clip'.
It gives access to the currently selected clip, regardless if it resides in session or arrangement.

Post Reply