Lower Sample Volume while Volume goes up
-
Hi there, is it possible to lower my sampler volume with a Knob to -30dB while the Drive of the Polyshaper FX goes to +30dB?
-
@treynterrio Yes
-
@d-healey how? Is this right? setRRGGroupVolume? I just need to know then how I could lower the volume of the Sampler.
-
@treynterrio Add a simple gain module to your sampler and set the value of its Gain knob from within your knob's control callback. At the same time you set the Drive parameter of your polyshaper.
-
Ah looks like you can do it without scripting if you use modulators and tables. CC mods could do it - with Macros.
-
@d-healey I've already a Gain module but there is no gain. The only gain I see is from the sampler but I don't know how I could control this.
-
@treynterrio I'm referring to the gain knob of the Simple Gain effect
-
@d-healey aaaah ok got it I've not seen this I was looking for it there already
-
@d-healey the gain now goes down -30 dB. how should I best adjust the knob which min and max? and what do I have to add to make the drive go up?
const var SimpleGain1 = Synth.getEffect("SimpleGain1"); const var PolyshapeFX = Synth.getEffect("PolyshapeFX"); inline function onGainShapeControl(component, value) { SimpleGain1.setAttribute(SimpleGain1.Gain, value-30); PolyshapeFX.setAttribute(PolyshapeFX.Drive,value); }; Content.getComponent("GainShape").setControlCallback(onGainShapeControl);
-
What is the range of your knob?
-
@d-healey the gain 0 to -20 and the drive 0 to 30
I forget something that's what I have
SimpleGain1.setAttribute(SimpleGain1.Gain, -20 - value); PolyshapeFX. setAttribute(PolyshapeFX.Drive, 30 - value);
-
@treynterrio said in Lower Sample Volume while Volume goes up:
the gain 0 to -20 and the drive 0 to 30
I thought you just have 1 knob to control both?
-
@d-healey I have only 1 knob but I don't know how to set the minimum value and max value of the knob so that gain goes from 0 to -20 and drive goes from 0 to +30
-
@treynterrio What do you want the knob on your UI to display to the user?
-
@treynterrio said in Lower Sample Volume while Volume goes up:
@d-healey I have only 1 knob but I don't know how to set the minimum value and max value of the knob so that gain goes from 0 to -20 and drive goes from 0 to +30
use this:
ScriptSlider.getValueNormalized()
and this:
ScriptSlider.setValueNormalized(double normalizedValue)
-
@Lindon could you give me an example how I use this?
-
@d-healey when the user turns the knob up the gain should go down from 0 to -20 and the drive goes up from 0 to +30
-
@treynterrio I understand that, but what do you want the knob on your UI to display to the user? Is it 0-100%?
-
@d-healey yes when it's off it's 0 when it's on 100% (drive 30dB and the gain -20dB)
at the moment the gain works from 0dB to -20dB like it should but the drive goes only from +10dB to 30dB and not back to 0dB
-
myGainKnob.setValueNormalized(myDriveKnob.getValueNormalized());