Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Linear volume response in VDR
Udo Richter <udo_richter@gmx.de> writes:
> Of course, if anyone knows what kind of non-linearity is behind the
> volume control, this would be even better.
The sensitivity of the ear is proportional to the logarithm (base 10)
of the power.
Hence the power must be proportional to 10**Volume (or 10^Volume).
In your case a formula like this should do the trick:
Vol = 1 - 10**(Volume/coef) ;
For Volume=0 -> Vol = 0;
Your should compute the coef so that the maximum value of Volume will
give the max value of Vol (2**32 ?)
Hope this helps
Home |
Main Index |
Thread Index