How many clips in a track??

S4racen's icon

Hi All,

I'm after a simple patch that will tell me how many of the scenes in a particular track have clips recorded into them? I can tell how many scenes there are and observe the clip_slots as id's but i can't figure out what to do next....

Cheers
D

11OLSEN's icon

hey, i'm thinking about a similar problem. i need to know which ID a clip has had that has just been deleted. a clip slot observer can tell you if there is a clip or not in the slot but nothing about the clip ID.

i'll dig into it later.
can you post your approach?

o.

Myr's icon

Here's the code I posted in the Ableton Forum, should be of use for your problem as well 11olsen.

Open a blank M4L Device, past it in and hit the big bang at the top left.

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

Double click on the Dark Blue Coll objects to view ClipSlot IDs, Clip IDs and Clip Names.

11OLSEN's icon

i think i have another idea, for my situation. i already observe the clip id and the current clip slot index. if the clip id changes to 0 but the slot index is the same, i can tell clip with id N has been deleted. i\'m about to check it.
@ s4racen: do you know the myr m4l control abtractions release 2. there is everything you can get, set and observe in it + useful helpers. although i don\'t wanna help with another device you're gonna sell. :-)

S4racen's icon

I'll have a look for that thanks, and no this isn't for a device i'm selling i'm helping an artist create a device for his live set, it's very specific so i'll doubt it'll see the light of day but it's been a real challenge to get completed and stable....

Cheers
D

11OLSEN's icon

my idea works only for a single clip deletion not for multiple
clips. was hoping to manage this without adding more and more observers.
noticed later it was the Myr himself posted above.

elisabatti's icon

I would like to have a small max audio effect at each single clipslot. This patch should give me these two values ($1 and $2):
path live live_set tracks $1 clip_slots $2

The track ID number I can easily trace it using this patch:

but I am still trying to figure out how to get the ID number of the clip slot…

elisabatti's icon