class
SushiDSP::ResonanceControl
The low-frequency shelf a Resonance or Deep knob places in a power section's negative-feedback path, mirrored to the forward path as a low shelf of the same corner.
- Declared in
include/SushiDSP/circuits/stages/ResonanceControl.hpp
Public member functions
ResonanceControl(double sample_rate, float corner_hz, float maximum_boost_db)Parameters
sample_rateThe rate the stage runs at, in hertz.
corner_hzShelf corner frequency in hertz.
maximum_boost_dbBoost at depth 1; depth 0 is flat and depth 0.5 is half the boost.
void set_depth(float depth)Sets the knob position.
Parameters
depthIn [0, 1]; values outside are clamped.
float process_sample(float input)Processes one sample. Audio-thread safe.
void reset()Clears the filter state.
float boost_db() constReturns the boost in decibels the current depth applies.

