Get track/clip length in Max for Live

    Mar 07 2021 | 3:07 pm
    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 Patcher
    In Max, select New From Clipboard.
    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 Patcher
    In Max, select New From Clipboard.
    Kind regards, Eveline

    • Mar 07 2021 | 3:35 pm
      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
    • Mar 07 2021 | 4:08 pm
      Cool, thanks a lot! Happy I decided to buy Ableton 11 :)