bananu7 / livetrak-web

A web implementation of Zoom L-12 LiveTrak mixer for project playback
2 stars 0 forks source link

Allow setting gain to over 1.0 #33

Closed bananu7 closed 3 months ago

bananu7 commented 10 months ago

+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.

bananu7 commented 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.

bananu7 commented 3 months ago

There should also be a fader tooltip/overlay that shows the value in dBs, the gain value should be hidden.

bananu7 commented 3 months ago

Fixed in #46