Get playing clip name. Also in arrangement.

    Max For Liveadvanced

    chapelier fou's icon
    chapelier fou's icon
    chapelier fou
    Jan 11 2022 | 10:03 am
    I'd like to get the currently playing clip name. I have no problem getting the name of a session clip, but I want to keep track of the currently playing clip, either in session or in arrangement. The only way I see for now to get the clip currently playing in arrangement would be to get all arrangement clip ids, get the current transport time, and check for all of them if the current time fits into the starting and end points. That can't be that twisted, can it ? Any help ?

    • Connor Shafran's icon
      Connor Shafran's icon
      Connor Shafran
      Aug 05 2022 | 10:44 pm
      Did you ever end up figuring this out? I have the same question.
      Share
    • chapelier fou's icon
      chapelier fou's icon
      chapelier fou
      Sep 30 2022 | 9:26 am
      Nope, didn't find a solution.
    • Thomas's icon
      Thomas's icon
      Thomas
      Oct 01 2022 | 8:58 am
      clip-name.amxd
      amxd 29.66 KB
      Hi, i have a very useful patch made by Julien Bayle, hope that help you
    • JuSchu's icon
      JuSchu's icon
      JuSchu
      Nov 29 2022 | 10:03 pm
      That patch from Julien Bayle only gives us the name of the playing clip in session view. Has anyone figured out yet how to get the name of the playing clip in the arrangement? I'm currently working on a patch that wouldn't work at all in the arrangement view, thus also not when you're exporting your arrangement, as long as I don't solve this problem.
    • JuSchu's icon
      JuSchu's icon
      JuSchu
      Nov 30 2022 | 1:37 am
      Okay, I got a little bit further. I have a solution in theory but it doesn't work in practice. Clips have a property named is_playing. So I thought I could just iterate through all the arrangement clips and check if is_playing is 1 for one of them. But even if I turn on the arrangement loop and fill the whole loop with clips, all clips have is_playing 0.
      Max Patcher
      In Max, select New From Clipboard.
      Show Text
      However, when I try to read is_playing from a clip in the session view, everything works as expected.
      Max Patcher
      In Max, select New From Clipboard.
      Does anyone know if this is a known bug? Should I report this? Or am I just doing something wrong?