|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Potentiometer component - smoothed, calibrated ADC with a [0, 1] output. More...
Potentiometer component - smoothed, calibrated ADC with a [0, 1] output.
Pot is a source adapter: raw ADC counts in, normalized signal units out. Pipeline: raw -> EWMA (raw domain) -> two-point calibration -> [0, 1]. Deadband operates on that value.
Acquisition is owned by the component: feed values with update(), or read straight from a DMA scan buffer with update_dma() (ISR-safe).
Usage:
Definition in file pot.hpp.
#include <cstdint>#include <sbl/control/input/ewma.hpp>#include <sbl/control/input/cv_input.hpp>#include <sbl/control/input/pot_calibration.hpp>Go to the source code of this file.
Classes | |
| struct | sbl::control::input::PotConfig |
| Pot construction settings. More... | |
| class | sbl::control::input::Pot |
| Potentiometer with EWMA smoothing, calibration and deadband. More... | |
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::control |
| The control stack: scheduler, event queue, merge, CC mapping, calibration. | |
| namespace | sbl::control::input |
| Inputs: debounce, decoding, smoothing and scaling of raw samples. | |