Enable Parametriq Eq
-
Hi, does anyone know how I can activate/deactivate a ParametriqEQ with code? I want to assign it to a button, but I can't figure it out. I've tried using the properties setValue, showControl, and setBypassed. Thanks!
-
@lijas90 You don't need to use code for this, you can connect it up in the property editor.
-
@d-healey
I already know that, but I need to do it with code because I want the Parametric EQ to activate while simultaneously making a panel that I've placed on top disappear.Thanks -
@lijas90 I see, well setBypassed is the correct function, so show me what you tried to do with it.
-
@lijas90 showControl will show/hide your panel
To enable/disable your EQ you want to reference it in your script, reference your button, add a control callback for your button and put the nameofyourEQ.setBypassed(value); in the callback.
From memory, when a button is off the value is 0 and when it's on it's 1. So if you find your button is switching on the EQ when the button is off, and off when the button is on, you can try (value-1);
-
Line 916, column 32: Unknown function 'setBypassed'
const var btnOnEq = Content.getComponent("btnOnEq"); const var PanelParametricEq("PanelParametricEq"); const var PanelTapaEq = Content.getComponent("PanelTapaEq"); inline function onBtnOnEq (component,value){ if(btnOnEq.getValue() == 1){ PanelParametricEq.setBypassed(1); PanelTapaEq.showControl(true); }else{ PanelParamerticEq.setBypassed(0); PanelTapaEq.showControl(false); } } btnOnEq.setControlCallback(onBtnOnEq);
Thanks!
-
@lijas90 You need to call setBypassed on the EQ module itself, rather than the tile on your interface.
-
@lijas90 You need to add a generic script reference for the EQ then bypass it in the button callback
const var ParametriqEQ1 = Synth.getEffect("Parametriq EQ1"); const var Button1 = Content.getComponent("Button1"); inline function onButton1Control(component, value) { ParametriqEQ1.setBypassed(value); }; Content.getComponent("Button1").setControlCallback(onButton1Control);