#Example to set volume to 50/100 on the linear scaleint maxvol = 100;int newvol = 50;float ratio = (float) (1 - (Math.log(maxvol - newvol) / Math.log(maxvol)));
But to get to that point, I need somehow to abstract that starting-point of -14 dBFS / 89 dB SPL onto that linear scale. From what I've read so far, I get the feeling there is no "pure" way to do this and I'll be required to make some educated guesses. So that's where being uneducated lets me down I'd just be grateful for any suggestions, help or references in how I might understand the task better and construct a *reasonably* accurate equation for it.
The problem is, I'm starting from 1 = max volume so to accommodate the +ve gains I necessarily have to reduce before I can increase.
This certainly means the task's more challenging than I anticipated; the Android MediaPlayer API (for which the stock music player app I intended to build on is basically a wrapper) doesn't expose anything as low-level as PCM sample levels.
if I had a RG value of +15 dB would you recommend pushing all bands to +15, or to (+15, +12, +12, +12, +15) to preserve the original relative levels?