|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Definition at line 29 of file bit_crusher.hpp.
#include <bit_crusher.hpp>
Public Member Functions | |
| void | set_depth_su (float su) |
| void | process (float *buf, uint16_t n) |
| void | reset () |
Static Public Attributes | |
| static constexpr float | kMaxBits = 16.0f |
| static constexpr float | kMinBits = 2.0f |
|
inline |
Port: set bit reduction depth [0, 1]. 0.0 = full resolution (bypass), 1.0 = minimum bits. No smoothing — quantization grid changes must be instant. Smoothing a quantizer creates inter-grid artifacts (crackling). The pot deadband + cam table interpolation provide sufficient continuity.
Definition at line 39 of file bit_crusher.hpp.
|
inline |
Process a block of samples in-place. Depth is constant across the block.
Definition at line 43 of file bit_crusher.hpp.
References kMaxBits, kMinBits, sbl::dsp::primitives::BitReducer::process(), and sbl::dsp::primitives::BitReducer::set_bits().
|
inline |
Definition at line 51 of file bit_crusher.hpp.
|
staticconstexpr |
Definition at line 31 of file bit_crusher.hpp.
Referenced by process().
|
staticconstexpr |
Definition at line 32 of file bit_crusher.hpp.
Referenced by process().