script compinling OK but not working
-
Hello devs!
does this script look correct? if it is, then the button I have for mulitple fx bypass is not working...
// Vibe Enable
const var Vibe = Synth.getModulator("Vibe");
const var LFOModulator2VIBE = Synth.getModulator("LFOModulator2VIBE");
const var PhaseFX2 = Synth.getEffect("Phase FX2");const var btnVibeEnable = Content.getComponent("btnVibeEnable");
inline function onbtnVibeEnableControl(component, value)
{
Vibe.setBypassed(1-value);
LFOModulator2VIBE.setBypassed(1-value);
PhaseFX2.setBypassed(1-value);
};Content.getComponent("btnVibeEnable").setControlCallback(onbtnVibeEnable);
-
@virtuscapeaudio The code looks ok. Have you also assigned the button to a processor/parameter ID in the property editor?
-
@d-healey I removed JSON properties when I used the script
-
@virtuscapeaudio Does your callback get triggered when you click the button?
-
@virtuscapeaudio there is a misspelling in you code
inline function onbtnVibeEnableControl(component, value) { Vibe.setBypassed(1-value); LFOModulator2VIBE.setBypassed(1-value); PhaseFX2.setBypassed(1-value); }; Content.getComponent("btnVibeEnable").setControlCallback(onbtnVibeEnable); // this line, the function name is onbtnVibeEnableControl, the "Control" is missing // Content.getComponent("btnVibeEnable").setControlCallback(onbtnVibeEnable);
-
@ulrik Brilliant!! Solved and thanks so much!!