Contents

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_rate

The rate the stage runs at, in hertz.

corner_hz

Shelf corner frequency in hertz.

maximum_boost_db

Boost 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

depth

In [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() const

Returns the boost in decibels the current depth applies.