Welcome to %s forums

BrainModular Users Forum

Login Register

MATCH FADER VALUE TO VST PARAMETER

I need help on a Patch
Post Reply
Ariajazz
Member
Posts: 353
Contact:

Unread post by Ariajazz » 25 Jun 2016, 07:31

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.

XpiR
Member
Posts: 113
Location: Marseille (F)
Contact:

Unread post by XpiR » 25 Jun 2016, 10:18

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


imodularsynth
Member
Posts: 36
Contact:

Unread post by imodularsynth » 21 Aug 2016, 09:46

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)

Post Reply

Who is online

Users browsing this forum: No registered users and 75 guests