mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
The volume slider was linear, which is not ideal for an audio volume control. Perceived volume would not change much within 30-100% range and would change in leaps within 0-30% range where the resolution is not sufficient for fine grained control. The simplest solution is to bring the value into 0.0-1.0 range and square it to obtain an exponential curve. This is a decent approximation of the logarithmic taper used in audio potentiometers.
9.1 KiB
9.1 KiB