Simple simulated audio pot volume control inspired by https://eepower.com/resistor-guide/resistor-types/potentiometer-taper/# We split up the input/output curve into 2 linear pieces with a slow and a fast raising part. The slow raising part goes from (0,0) to (x,y). The fast raising part goes from (x,y) to (1,1).
More...
#include <VolumeControl.h>
Simple simulated audio pot volume control inspired by https://eepower.com/resistor-guide/resistor-types/potentiometer-taper/# We split up the input/output curve into 2 linear pieces with a slow and a fast raising part. The slow raising part goes from (0,0) to (x,y). The fast raising part goes from (x,y) to (1,1).
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ SimulatedAudioPot()
◆ 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
The documentation for this class was generated from the following file: