ControlCallback not working
-
Having issues with setControlCallback not working with knob. When I change the knob it is not calling the controlback function at all (I've tried Console.Print("..") in the inline function and it didn't print anything). Am I missing something, or is this something you can't do? (And yes I have tried timers, they cause Hise to crash for some reason).
const var decay_time_label = Content.getComponent("decay_time_label"); const var decayTime = Content.getComponent("decay_time"); inline function onDecayControl(component,value) { decay_time_label.set("text", decayTime.getValue()); }; decayTime.setControlCallback(onDecayControl);
-
@xander Have you assigned the knob to a module using processor/parameter ID?
-
@d-healey Yes, not via code, but just with the side panel.
-
@xander You can use processor/parameter ID or a control callback, not both.
-
@d-healey Thank you! Makes sense, guess I can hardcode the parameter values.