|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Smoothed CV input emitting normalized signal units. More...
Smoothed CV input emitting normalized signal units.
#include <input.hpp>
Public Member Functions | |
| CvInput (const CvInputConfig &config={}) | |
| CvInput (Smoothing smoothing) | |
| void | update (uint16_t raw) |
| Feed a new raw ADC sample. | |
| void | update_dma (const uint16_t *buffer, uint8_t channel_index) |
| Read one channel from a DMA scan buffer and update. | |
| uint16_t | raw () const |
| Last raw (unfiltered) ADC count — for calibration routines. | |
| float | value () const |
| Smoothed output in signal units, per the configured mapping. | |
| void | set_mapping (CvMapping mapping) |
| Set the jack's musical role (structural; runtime-remappable) | |
| CvMapping | mapping () const |
| void | set_conditioning (const CvConditioning &cond) |
| Set the analog front-end description (once at init, typically) | |
| const CvConditioning & | conditioning () const |
| void | set_smoothing (Smoothing smoothing) |
| Change smoothing level without resetting filter state. | |
| void | reset () |
| Reset filter state. | |
Static Public Attributes | |
| static constexpr float | kSuPerVolt = 0.125f |
| Pitch-su convention: 1.0 su spans 8 octaves (MIDI 24–120), 1 V/oct. | |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Feed a new raw ADC sample.
Definition at line 105 of file input.hpp.
References raw(), and sbl::primitives::math::Ewma::update().
Referenced by update_dma().
|
inline |
|
inline |
|
inline |
Smoothed output in signal units, per the configured mapping.
Definition at line 124 of file input.hpp.
References sbl::primitives::math::Ewma::value().
|
inline |
|
inline |
Definition at line 129 of file input.hpp.
Referenced by set_mapping().
|
inline |
|
inline |
|
inline |
Change smoothing level without resetting filter state.
Definition at line 137 of file input.hpp.
References sbl::primitives::math::Ewma::set_shift().
|
inline |
Reset filter state.
Definition at line 142 of file input.hpp.
References sbl::primitives::math::Ewma::reset().
|
staticconstexpr |