Class thl::dsp::utils::LimiterImpl#

class LimiterImpl : public thl::dsp::BaseProcessor#

Inheritance diagram for thl::dsp::utils::LimiterImpl:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="thl::dsp::BaseProcessor" tooltip="thl::dsp::BaseProcessor"] "1" [label="thl::dsp::utils::LimiterImpl" tooltip="thl::dsp::utils::LimiterImpl" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for thl::dsp::utils::LimiterImpl:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="thl::dsp::BaseProcessor" tooltip="thl::dsp::BaseProcessor"] "1" [label="thl::dsp::utils::LimiterImpl" tooltip="thl::dsp::utils::LimiterImpl" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Public Functions

LimiterImpl()#
~LimiterImpl() override#
virtual void prepare(const double &sample_rate, const size_t &samples_per_block, const size_t &num_channels) override#
virtual void process(thl::core::BufferView buffer, uint32_t modulation_offset = 0) override#
inline virtual void reset() override#

Releases the gain reduction at once.

Protected Types

enum Parameter#

Values:

enumerator Threshold#
enumerator Attack#
enumerator Release#
enumerator NumParameters#

Protected Functions

template<typename T>
T get_parameter(Parameter parameter, uint32_t modulation_offset = 0)#
virtual float get_parameter_float(Parameter parameter, uint32_t modulation_offset = 0) = 0#

A NaN keeps the parameter’s last value; the threshold is clamped to [-120, 24] dB, the times to [0.01, 60000] ms.

template<>
inline float get_parameter(Parameter p, uint32_t modulation_offset)#