Scene Selected Clip Launch

Josh Wright's icon

Hello Everyone!

I've got a hopefully simple (but simply mind boggling for this first time Max user) question that I could use some help with.

I'm trying to create a device that uses a user selected midi note to trigger a Clip in a specific track, selected by the highlighted scene. always the same track, but the specific Clip is decided by what scene is highlighted.

As a bonus.... is it possible to have that Clip wait until 1 bar before the end of another Clip?

I'm kinda lost as to where to begin... any help would be most appreciated!

Thanks in advance!

Evan's icon

Here's something to get started (copy this, and then select new from clipboard in Max).

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

It doesn't have the "As a bonus…. is it possible to have that Clip wait until 1 bar before the end of another Clip?" because I don't really know what you're getting at there, and it's easier to handle quantization stuff from Live's end I think.

Josh Wright's icon

Ahh brilliant!!

...now I just have to figure out how to translate that into a patch!! Like I said.... Im a complete newbie!
Thanks Evan, I really appreciate the help.

As far as the bonus stuff, here's what I meant.

The clip I'm attempting to launch, would only be one bar long. However, it is in a session with clips of longer length....say 8 bars. So I want to use a second clip (maybe a clip adjacent to the one being launched as a "reference clip". When the reference clip is one bar from ending, thats when I want the target clip to launch. That way, they end at the same time. Does that make a bit more sense? Is something like that possible?

Evan's icon

That patch is ready to go, it works as is if you paste it in a Max MIDI Effect. Perhaps I misunderstand what you meant?

Yeah that's possible. You'd want to setup some observers to look at the reference clips playing position and length. When the playing position is 1 bar from the end of the clip, let the 'fire' function get sent to the target clip. Might take a stab at setting that up when I get a minute.

Evan's icon

I found a minute:

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

That should be plenty to get you started. A read up on the Live Object Model (https://docs.cycling74.com/max7/vignettes/live_object_model) would be good, I've also commented the code so you can hopefully see how I put it together, and moved around the Live API.

Good luck!

looprication's icon

My own implementation, FWIW. I've wanted something where I could use my foot pedal to trigger a loop on the currently selected clip forever... thanks to everyone who posted here (and other places out there) I finally have it. :)

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

Cheers,

-loops