19#ifndef SBL_DSP_COMP_BIT_CRUSHER_HPP_
20#define SBL_DSP_COMP_BIT_CRUSHER_HPP_
44 if (depth_su_ < 1e-5f)
return;
51 void reset() { depth_su_ = 0.0f; }
55 float depth_su_ = 0.0f;
Amplitude bit-depth reduction.
void process(float *buf, uint16_t n)
static constexpr float kMaxBits
void set_depth_su(float su)
static constexpr float kMinBits
void set_bits(float bits)
float process(float x) const
Process a single sample.
Fixed-point constants and audio sample types.
Compositions: subcircuits of primitives.