Page 1 of 1

Posted: 25 Jun 2016, 07:31
by Ariajazz
How do I match the min and max values of afader or knob to the parameters of a vst plugin?. For instance: the attack of a compressor goes from 0 ms to 400ms and I want the fader value to display the exact value of the plugin in miliseconds.

Posted: 25 Jun 2016, 10:18
by XpiR
I'd suggest :
- check the range of values expected by your compressor's attack (for ex 0...1)
- check the dispayed range (here 0...400ms)
- build a fader going from 0...400 (integer values), link it to a scale module which will convert 0...400 to 0...1

So you have your chain : fader - scale - compressor

Posted: 11 Jul 2016, 05:53
by Ariajazz
Thanks Xpir

Posted: 21 Aug 2016, 09:46
by imodularsynth
VST parameters are (normally) always 0.0 to 1.0 (I never saw a VST with a restricted input range, and the maximum range is defined by VST standard)
So, normally, you just need to scale the knob output value (let's say 400 in your case) to 1.0, simply by adding a divider of 1/400 between the knob output and the VST parameter input.
Take care however that some parameters can have a non-null value at minimum. So you will probably need to code something in the form y=ax+b between the knob output and the VST parameter input (typical example would be a delay between 10 and 1000ms : the knob shall start at 10, leading to a value of 0 to the plugin input)