Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::control::input Namespace Reference

Inputs: debounce, decoding, smoothing and scaling of raw samples. More...

Detailed Description

Inputs: debounce, decoding, smoothing and scaling of raw samples.

Classes

class  Button
 Debounced button with edge detection and held-time tracking. More...
 
struct  ButtonConfig
 Button construction settings. More...
 
struct  CvConditioning
 Conditioning constants for the analog front end. More...
 
class  CvInput
 Smoothed CV input emitting normalized signal units. More...
 
struct  CvInputConfig
 CvInput construction settings. More...
 
class  Encoder
 Quadrature encoder with Gray code state machine and position tracking. More...
 
class  EncoderStep
 
class  Ewma
 Integer EWMA filter, alpha = 1 / 2^shift. More...
 
struct  GateConfig
 GateInput construction settings. More...
 
class  GateInput
 Gate input with Schmitt trigger hysteresis and edge detection. More...
 
class  Pot
 Potentiometer with EWMA smoothing, calibration and deadband. More...
 
struct  PotCalibration
 
struct  PotConfig
 Pot construction settings. More...
 
class  TapHold
 Tells a tap from a hold on a debounced button. More...
 

Enumerations

enum class  Smoothing : uint8_t { None = 0 , Light = 1 , Medium = 3 , Heavy = 5 }
 Smoothing presets for the raw-domain EWMA filter. More...
 
enum class  CvMapping : uint8_t { Unipolar , Bipolar , VOct }
 Musical interpretation of the jack - a structural parameter. More...
 

Enumeration Type Documentation

◆ Smoothing

enum class sbl::control::input::Smoothing : uint8_t
strong

Smoothing presets for the raw-domain EWMA filter.

Values are the EWMA shift exponent (alpha = 1/2^shift).

Enumerator
None 

Raw passthrough (no filtering)

Light 

alpha=1/2, 95% of a step in 5 samples (pitch, fast CV)

Medium 

alpha=1/8, 95% of a step in 23 samples (pots, knobs)

Heavy 

alpha=1/32, 95% of a step in 95 samples (noisy sources)

Definition at line 38 of file cv_input.hpp.

◆ CvMapping

enum class sbl::control::input::CvMapping : uint8_t
strong

Musical interpretation of the jack - a structural parameter.

Runtime-settable; remapping per mode is supported. Mapping applies at the output stage, so remaps are glitch-free with respect to filter state. Mapped state derived from the old mapping (pickup targets, stored positions) must be re-armed by the app on remap.

Enumerator
Unipolar 

[0, 1] - full ADC span (default)

Bipolar 

[-1, 1] - around the conditioned midpoint

VOct 

pitch offset in octaves - 1 V per octave, unclamped

Definition at line 53 of file cv_input.hpp.