turn all effect moduls of and keep the effect states
-
Hi there, I have a button in my FX Plugin that I use to turn off all the effect modules I use. How can I make sure that the effects that were on before I turned them off turn on again and that the effects that were off stay off? Can anyone help me?
-
@treynterrio When you click your button you need to loop over all your effects and store their current state in an array. Then when the button is pressed again you can restore the state using the values in the array.
-
@d-healey do you've an example? or a starting point
-
@treynterrio I don't think I have an example ready to go, but I'll give you some pointers.
Create an array in on init,
const effectBypassState = [];
In your button callback run a loop over your effects and populate the array.
for (x in myEffects) // Put the actual name of your array of effect references here { effectBypassState.push(x.isBypassed()); }
At this point you have stored the bypass state of the effects.
-
@d-healey I've been watching the post for a few days, did you manage to do it? I don't quite understand how to do it