[Ardour-Dev] gain-mapping - was Re: OSC next
Len Ovens
len at ovenwerks.net
Sat May 14 08:28:17 PDT 2016
On Sat, 14 May 2016, Robin Gareus wrote:
> On 05/14/2016 04:41 PM, Len Ovens wrote:
>>
>> The other method of doing the same thing, is to continue to use the
>> internal fader math and add an offset of -0.006990539841353893 to the
>> 1024 value. This would make 800 = 0dB and full scale just slightly less
>> than +6.
>
> good point. How did you compute that number?
I didn't... Ardour did. 800 in let Ardour do the math gives
0.006990539841353893 dB out. Ah, I should be using gain not dB :)
(time for surface three in abs gain)
> over here
>
> 1.0 - (2 ^ ((198 * (800/1023) ^ (1/8) - 192) / 6))
> = -0.000805030
That is probably correct for gain. In the end I need a gain offset not dB.
(The value that Ardour needs is gain 0->2.)
--
Len Ovens
www.ovenwerks.net
More information about the Ardour-Dev
mailing list