Parametric Logarithmic volume control. Using the formula pow(b,input) * a - a, where b is b = pow(((1/ym)-1), 2) and a is a = 1.0 / (b - 1.0). The parameter ym is determining the steepness. See https://electronics.stackexchange.com/questions/304692/formula-for-logarithmic-audio-taper-pot.
More...
#include <VolumeControl.h>
Parametric Logarithmic volume control. Using the formula pow(b,input) * a - a, where b is b = pow(((1/ym)-1), 2) and a is a = 1.0 / (b - 1.0). The parameter ym is determining the steepness. See https://electronics.stackexchange.com/questions/304692/formula-for-logarithmic-audio-taper-pot.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ LogarithmicVolumeControl()
◆ getVolumeFactor()
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Implements VolumeControl.
◆ limit()
|
|
inlineprotectedvirtualinherited |
limits the output to the range of 0 to 1.0
◆ ym
The documentation for this class was generated from the following file: