Auto Wah
-
I built a wah pedal plugin which works great with daw automation which sweeps a couple parameteric eq's via the sweep knob on the gui.
I want to have an auto wah button which responds to incoming audio.
I have tried using an envelope follower in a Scipt FX, but not sure how to expose it's paramaters to the interface.
Or if I am even on the right track. Anyone help? -
@pcs800 you’re definitely on the right track with an envelope follower
Now connect it to a global cable to grab the value from the UI script via a global cable callback -
@ustk So I just add a global_cable under the env follower?
Do I need to add a slot and select it? -
@ustk What's the function call to register the global cable callback in the Interface script?
-
@pcs800 you connect the envelope follower to the global cable and add a new slot
then in the UI script:
const var grm = Engine.getGlobalRoutingManager(); const var autoWah_gc = grm.getCable("yourGlobalCableSlotName"); autoWah_gc.registerCallback(function(value) { // do whatever with value, repaint a panel... }, AsyncNotification); -
@ustk Thanks!
I have envelope_follower connected to global_cable (slot0), and I'm using:const var grm = Engine.getGlobalRoutingManager();
const var autoWah_gc = grm.getCable("slot0");
autoWah_gc.registerCallback(onAutoWahCableCallback, true);But the callback never fires - no values are printed. What am I missing? Can you share a complete working example or snippet?
-
@pcs800 Do you see the cable moving in the network?
Is
onAutoWahCableCallbacka function?trueshould beAsyncNotification(literally) but I don't think it's an issue here... -
@ustk This is what i have in the network

-
@pcs800 Never mind, I got it working.
I forgot to connect the modulation target
Thanks for the help.