LMMS
Loading...
Searching...
No Matches
dsp::gain_smoothing Class Reference

#include <inertia.h>

Inheritance diagram for dsp::gain_smoothing:
dsp::inertia< linear_ramp >

Public Member Functions

 gain_smoothing ()
void set_sample_rate (int sr)
Public Member Functions inherited from dsp::inertia< linear_ramp >
 inertia (const linear_ramp &_ramp, float init_value=0.f)
void set_now (float _value)
 Set value immediately (no inertia).
void set_inertia (float source)
 Set with inertia.
float get (float source)
 Get smoothed value of given source value.
void step ()
 Do one inertia step, without returning the new value and without changing destination value.
void step_many (unsigned int steps)
 Do many inertia steps, without returning the new value and without changing destination value.
float get_last () const
 Get last smoothed value, without affecting anything.
bool active () const
 Is it still ramping?

Additional Inherited Members

Public Attributes inherited from dsp::inertia< linear_ramp >
float old_value
float value
unsigned int count
linear_ramp ramp

Constructor & Destructor Documentation

◆ gain_smoothing()

dsp::gain_smoothing::gain_smoothing ( )
inline

Member Function Documentation

◆ set_sample_rate()

void dsp::gain_smoothing::set_sample_rate ( int sr)
inline

The documentation for this class was generated from the following file: