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.
max6/m4l docs mention MIDI clip in an arrangement, but how?
-
hiheelhottie
- Posts: 12
- Joined: Fri Aug 28, 2009 3:54 pm
Re: max6/m4l docs mention MIDI clip in an arrangement, but how?
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.
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?
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.
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.
Re: max6/m4l docs mention MIDI clip in an arrangement, but how?
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?
Re: max6/m4l docs mention MIDI clip in an arrangement, but how?
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.
It gives access to the currently selected clip, regardless if it resides in session or arrangement.