How to react to a started clip recording?

83 viewsGeneral
0

I want to set some parameters as soon as a clip started recording.
So I store the clip id and track id in modifiers.

I created a second reaction and added a listener:

self.song().tracks[self.get_modifier_value("m1")].clip_slots[self.get_modifier_value("m2")].clip.add_is_recording_listener

This reaction never gets fired. I believe that using modifiers doesn’t work with listeners. So why can I use modifiers for listeners?

I also tried to add a listener that fires as soon as the clips of a track changed:

self.song().tracks[0].add_clip_slots_listener

This also never fires..
Can someone confirm that behaviour?

admin Changed status to publish May 22, 2024
Attached Files:
0
Attached Files:
0

I tried it with another listener:
self.song().tracks[0].clip_slots[0].add_has_clip_listener
self.song().tracks[0].clip_slots[1].add_has_clip_listener
fires if a clip is created on first track in the first 2 slots.

But when I add a listener like that:
self.song().tracks[0].clip_slots[self.get_modifier_value("m1")].add_has_clip_listener
And change the value of m1 for example to 1 then the listener only fires if I create a clip in the first slot. So the listener seems not to update to other slots if I change the modifier.

Pleeeeeaaaaase dear admins. Can you start to help?

admin Changed status to publish May 22, 2024
Attached Files:
0

Here is a minimal script that should fire in my opinion as soon as a new clip is created on the first track. But nothing happens at all.

admin Changed status to publish May 22, 2024
Attached Files:
0

No. No errors, warnings. Nothing at all.
Can you try it on your own and share a script that should work and outputs a message to the log as soon as a new clip records?

admin Changed status to publish May 22, 2024
Attached Files:
0

Are you seeing any errors in the log when you try to use this?

admin Changed status to publish May 22, 2024
Attached Files: