Closed bananu7 closed 3 months ago
https://stackoverflow.com/a/22613964
In fact, that's exactly what this answer produces:
gain.value = Math.pow(10, (decibel_level / 20));
gives 3.162
for 10, 1.0
for 0 and 0.3
for -10. The only thing left is the scaling on the fader to read dB values properly.
There should also be a fader tooltip/overlay that shows the value in dBs, the gain value should be hidden.
Fixed in #46
+10dB is approximately 3.162 amplitude ratio, which is what the gain node controls. The faders need a custom dB-to-amplitude curve to achieve this. The faders on L-12 are quite unintuitively laid out.