Slight changes to your code -
Shout if its not making sense...const var SimpleGain1 = Synth.getEffect("SimpleGain1"); const var SimpleGain2 = Synth.getEffect("SimpleGain2"); const var Knob1 = Content.getComponent("Knob1"); const var Knob3 = Content.getComponent("Knob3"); const var Button6 = Content.getComponent("Button6"); inline function onButton6Control(component, value) { if (value) { Knob1.setValue(Math.randInt(0, 16)); Knob1.changed(); Knob3.setValue(Math.randInt(0, 10)); Knob3.changed(); } }; Content.getComponent("Button6").setControlCallback(onButton6Control); inline function onKnob1Control(component, value) { SimpleGain1.setAttribute(SimpleGain1.Gain, value); }; Content.getComponent("Knob1").setControlCallback(onKnob1Control); inline function onKnob3Control(component, value) { SimpleGain2.setAttribute(SimpleGain2.Gain, value); }; Content.getComponent("Knob3").setControlCallback(onKnob3Control);>