Get playing clip name. Also in arrangement.
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 ?
Did you ever end up figuring this out? I have the same question.
Nope, didn't find a solution.
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.
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.
However, when I try to read is_playing from a clip in the session view, everything works as expected.
Does anyone know if this is a known bug? Should I report this? Or am I just doing something wrong?
Hi Chapelier Fou !
I need the same patch and i didi it … it's very close to working but i don't find any solution. Perhaps you know how to fix it.
Here is the patch. And here is my problem :
I use the arrangement_clip function, which seems to be available from Live 11. This action gives me a list of clips ids, then i get the start_point of these clips with live.object. But the live.object don’t react correctly and send me the message :
« live.object: Setting the Id cannot be triggered by notifications. You will need to defer your response. »
I tried to deferlow messages before live.object, (also several deferlow), and other methods. Nothing works.
It seems to be linked to the list. If i have only four clips for exemple, it's work. But with more it begin to be unstable.
And this kind of messages happened with a few live.objects.
Have you got any idea ?
Thanks a lot and hope it will work for us !
I'm just a week into hacking away at learning Max so forgive me if this is totally old news but this little patch here seems to get the clip id of whatever clip is playing in session view. If this works well, maybe there's an equivalent to arrangement view.
I haven't figured out how to get from the id to the actual clip yet but what I have seems to work and the observer updates by itself when the playing clip changes, which is helpful.