Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::components::cv Namespace Reference

CV and gate inputs. More...

Detailed Description

CV and gate inputs.

Classes

struct  CvConditioning
 Conditioning constants — one code-owned home (ADR-011 D2) More...
 
class  CvInput
 Smoothed CV input emitting normalized signal units. More...
 
struct  CvInputConfig
 
struct  GateConfig
 
class  GateInput
 Gate input with Schmitt trigger hysteresis and edge detection. 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::components::cv::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, settles in ~4 samples (pitch, fast CV)

Medium 

alpha=1/8, settles in ~24 samples (pots, knobs)

Heavy 

alpha=1/32, settles in ~96 samples (noisy sources)

Definition at line 40 of file input.hpp.

◆ CvMapping

enum class sbl::components::cv::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. su-domain 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 

su pitch offset — 1 V/oct, 8 octaves per 1.0 su, unclamped

Definition at line 55 of file input.hpp.