Ableton issue – clip_slots[X].add_is_triggered_listener

329 viewsCSS Questionsis_triggered Launchpad
0

Good day!

I see an issue and would like to understand the logic of Ableton or CSS.

I am creating custom session box. And i create a reaction for each pad of a session box. It has a listeners and they renew each time session box moves. And i see an issue with this listener:

self.song().tracks[self.track_num(0)].clip_slots[self.scene_num(0)].add_is_triggered_listener

When a certain clip_slot is within my session box – and it has such listener – it works fine. But then that clip_slot is out of my session box and has no such listener, and it was triggered (i supposed that it is a continued action and not input relative, as if clip_slot is triggered it is triggered until start beat comes on or clip is deleted and so on…) and after that i focus on that clip_slot and a listener added – it shows nothing… like a clip_slot is not triggered.. but it actually is…

So clip_clot is in a triggered state for a certain amount of time. And if a listener was added in that period (but not right at a start) it just shows nothing…

Is there a proper way to organize this?

Or is there a way to create a dynamic reaction that listens to all clip_slots? and regenerates when scene/traks adds to the project?

So i will be able to add a custon flag for each clip_slot wheather it is triggered.

I suppose that there is an option to create time listener and scroll through every clip_slot on every track…. But i would like to make it not time relative, but all state clip_slots relative.

May be .add_is_triggered_listener is just action or input relative? …

Thanks!

Hellem Answered question
0

Well, i was wrong trying to capture .will_stop_on_start state of a clip_slot using its play/triggered/play states. Cuz there is a
fired_slot_index
intread-onlyobserve
Reflects the blinking clip slot.
-1 = no slot fired, -2 = Clip Stop Button fired

that can help to get that state, just combine actual playing clip_slot with fired_slot_index == -2

This will mean that a certain clip_slot will stop on a start beat.

Hellem Answered question
You are viewing 1 out of 3 answers, click here to view all answers.