Page 1 of 1

Set Fader range to mimic infinity oo to +12 Db?

Posted: 18 Feb 2013 11:13
by Kaatza_Music
On of the things that was giving me trouble was trying to scale a Fader to mimic the volume control of an instrument in Kontakt, like a fader on a mixing board, it is based on infinity oo up to +12 Db. I have no idea how to reference that scale with X or Y which is from 0 to 1.0. Since it is negative and positive, I thought maybe using something bipolar like a knob. It was easy to make a Pan control with range from -100 to 100. But can you have two uneven value on the positive and negative and how or earth do you define infinity.

I will hunt through the various templates and see what I can find. Surely there must be a work-a-round for this as it is such a common thing. Thanks.

Re: Set Fader range to mimic infinity oo to +12 Db?

Posted: 18 Feb 2013 12:32
by Softcore
Yip, this one is one of the hard ones....Not because we have negative values of course....

Keep in mind that the native "0 to 1" range is very convenient for range conversions. For any "positive" range all you have to do is multiply with the maximum range.

Thus, for example a range of 111 would be the result of x*111...

Now for the volume faders, I had initially tried creating a range taking into account the smallest value posible besides -oo - so for example if that is -99 and the biggest is 12 one would say that

(x*111)-99 would be what we need (example, when x=0 it returns -99, when x=1 it returns 12)...

BUT the problem is that usually volume faders are NOT linear - this means that the increase/decrease of the DBs is not linearly relative to the x of the fader/knob - for example with x=0.5 we get -43.5 from the equation above, BUT in the software the fader in halfway position does not correspond to -43.5.

So, a not so elegant solution is to map a vector expression and then use x to "select" pre-defined values from that vector. It is not elegant because it is not mathematically precise, but it can work as a rough indication.
I have created such a fader (with DB readout) that "fits" perfectly with Ableton Live's volume faders.
Download it and try it on your own volume fader - of course you might need to change a couple of values in the DB vector in order to suit the relativity of your own software volume fader.
Ableton-volume-fader.jzml
(3.29 KiB) Downloaded 117 times

Re: Set Fader range to mimic infinity oo to +12 Db?

Posted: 19 Feb 2013 19:59
by Kaatza_Music
Cool. Thanks, Softcore. I will check this out.