Reaction only fires in the last track created

3.18K viewsCSS Questionscss script
0

Hello dear remotify community, I currently have a problem that I can’t solve myself and I hope someone can help me.
I have created a reaction that fires whenever a certain parameter of a device within a device chain changes in the selected track.
Then there is a condition that asks whether the value is 1 or 0. If everything works, I send a sysex message to my controller.
If I now open the Ableton set and change the parameter value then it works great. As soon as I duplicate the track, it also works in the duplicated track
but no longer in the previous track. maybe someone has a tip


self.song().view.selected_track.devices[0].chains[0].devices[self.get_modifier_value("m15")].parameters[1].add_value_listener

								
therockdude Answered question
0
hi John, thanks, I tried that. If I now duplicate the track, 
the mode is activated again as expected. The behavior remains the same. 
The reaction only fires in the last track created. This is only the case 
if the value I query is a 1 or a 0. With values ​​from 0 to 127 it works. 
I removed the condition to test whether it had anything to do with it, 
but the same behavior can be observed here too.
therockdude Posted new comment

I could be wrong but It sounds like the listener isn’t firing, reloading the mode will re-attach listeners, if it hasn’t fixed the problem I’m a bit stumped.
If you move to the problem track first, then reload the mode, does that fix it? (maybe reload the mode using a button press).

Hey John, i’ll try It today. Thx

You are viewing 1 out of 6 answers, click here to view all answers.