Quick Sign In:  

Forum: General Discussion

Topic: Script to set/increment gain by decibel values

This topic is old and might contain outdated or incorrect information.

Is there anyway to modify gain values by decibel amounts rather than by knob position? I'm trying to make key controls for setting gain to 0 db and then increasing or decreasing by 0.25 db. The former was pretty easy to figure out, but when i type a decibel value, the script ignores the " dB" and interperets it as a knob position value.
If the knob values were flat I could just try different values until I got the right one, but they aren't there an immediately noticeable curve
 

Posted Tue 06 Apr 21 @ 12:52 pm
NicotuxHome userMember since 2014
fader_curve and levelfader_curve can be used to modify level fader response
crossfader_curve can be used to modify level fader response
but nothing for other such as gain and no log in VDJ

you can use set_gain to set absolute gain in db range [-30db..+30db] old doc was saying but
showing as -101.0 or -99.0 for -inf and -34 up to +12.0 (gain=0.0 gain=1.0)
and accepting [-33.9794019999... up to +12.0] as db
badly it does not work in relative ^^
and even gain_label show it temporary you can't get it back so that it must be handle in external variable
not easy

the other solution is to use "gain_relative" :
0.03125 (1/32) is internal resolution (6/10)/2 gives gain_relative -0.009375 and is working for a key (not a knob or slider) giving near +/-0.25db
gain_relative +0.009375
gain_relative -0.009375

range is still ]-34.. +12] db
and still no way to get the value back

the values are those reported by VDJ and may be totally wrong
they may also depend on autoGain and gainSliderIncludesAutoGain settings and autoGain value
 

Posted Tue 06 Apr 21 @ 3:12 pm


(Old topics and forums are automatically closed)