Link clip is_trigger with Scene launch

ELOI's icon

Hello,

I'm learning M4L and I need your help to complete this patch.

I'm building a live performance based on a Push 3 and I want to automatically trigger a scene when a backing track clip is triggered.

The goal is to avoid the boring task to match the clip length with the master follow action length.

Here is an example of live set :

Live Set example

I have an issue with the following patch. Only the last clip of my backing track (blue) is firing the scene "Drop".

Live patch

I suspect a loop issue that erasing the first 3 live.observer is_triggered functions.
Do you have any idea ?

I'm linking my live12 set et my m4l patch as well.
Thanks
Eloi

test_max_live_trigger Project.zip
zip
Auto launch scene from clip.amxd
amxd
Source Audio's icon

this here

outputs list with all id's, but settles with last one at the end

when passed through zl.group 2

all following observers or whatever you use only relate to last id.

how about observing fired_slot_index ?

ELOI's icon

Thank you for your help :)
You're right. Only the last clip slot item is working.
I d'ont know how to loop thru id without erasing previous observer.

Observing fired_slot_index will delay scene triggering by global quantification amount. I want that clip and scene are sync.

Source Audio's icon

I am not using Live at all ...

you have several options, maybe try

playing_slot_index

If that does not work for you create as many observers as clip slots (which might get tricky)

maybe better use poly~ with large number of clip observers

or ... disable launch quantisation.

by the way are sure you query clip slot number in your patch ?

I don't see that, you entered fixed slot 3

test-this.zip
zip

ELOI's icon

Thank you so much @Source Audio !

Poly function is working great :)

My patch is working fine now !

Eloi