Connect Knob to Master Chain correctly
-
I forgot how to link knob to master chain correctly without having any values offset. Can someone kindly remind me how? I've tried with ```
Engine.getGainFactorForDecibels(double decibels)
and
Engine.getDecibelsForGainFactor(double gainFactor)
Without any result. Any help is very appreciated.
-
-
@nesta99 You will need to set Knob mode to Decibel.
-
@nesta99 Here is a example
Content.makeFrontInterface(500, 400); const var SineWaveGenerator1 = Synth.getChildSynth("Sine Wave Generator1"); const var Vol = Content.getComponent("Vol"); inline function onVolControl(component, value) { SineWaveGenerator1.setAttribute(SineWaveGenerator1.Gain,Engine.getGainFactorForDecibels(value)); }; Content.getComponent("Vol").setControlCallback(onVolControl);
Don't forget to change Content specific property Mode to Decibel.
-
@dabdab Thanks. I've missed the "value" part. Thanks again.