Get track/clip length in Max for Live

e-vee's icon

Hi all,

How can I get the length of a sample on a track in the arrangement view, or of a clip in the session view via Max for Live? I tried the following, but 'track' doesn't have an attribute called 'length'. Am I on the right track - I mean, figuratively? I can't find any information about this and - in my eyes - it should be a very standard thing to do.

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


Update
:
I see there is the attribute 'end_time' of a 'clip'. I suppose this is what I am looking for. Is there an alternative attribute within the arrangement view, because when I'm in the arrangement view, I get the error "get: no valid object set".

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

Kind regards,
Eveline

dfwaudio's icon

with ableton11 there is a path for arrangement clips implemented.

live_set tracks N arrangement_clips M > live.path > live.object (right inlet)

end_time: thats the right way... if you have startpoint not at 0 you have to subtract start_time from end_time to get the active clip length

e-vee's icon

Cool, thanks a lot! Happy I decided to buy Ableton 11 :)