Forums > Max For Live

How many clips in a track??

November 14, 2010 | 3:07 pm

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


November 17, 2010 | 4:28 pm

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
November 17, 2010 | 4:38 pm

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.

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

– Pasted Max Patch, click to expand. –

November 17, 2010 | 6:18 pm

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. :-)


November 18, 2010 | 10:25 pm

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


November 19, 2010 | 5:15 am

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.


July 1, 2013 | 10:00 am

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:

http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/

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



Viewing 8 posts - 1 through 8 (of 8 total)