listener for any clip playing

1.14K viewsGeneral
0

Is there a listener for something like ‘all tracks playing status’?

Or the possibility to get ‘true’ if any track in the whole set is playing a clip and ‘false’ if no track is playing a clip?

I could do this for single tracks by using the positive or negative index I get from the following code:

self.song().tracks[“track-id”].playing_slot_index >= 0
self.song().tracks[“track-id”].playing_slot_index < 0

I want to use this to lighten the LED of my “stop all clips” button but only when clips are playing.
Currently I could implement this with my workaround for only the 4 tracks in my session box…

Any further suggestions?

Best,
Lukas

admin Changed status to publish
Attached Files:
0

If anyone is interested, I managed to do it:

listeners to:
song is playing, transport stop button was moved, stop all clips button was moved

1st action:
send the stop all clips LED an off value

2nd action is to check for any clip playing with the loop thing and light the LED in that case:
self.song().tracks[loop_number].playing_slot_index >= 0
and send LED on

3rd action:
stop all clips button

The order of the actions is crucial…

Hope this might be of use for other users too!

admin Changed status to publish
Attached Files:
You are viewing 1 out of 2 answers, click here to view all answers.