VCV Rack API v2
Loading...
Searching...
No Matches
rack::dsp::TExponentialFilter< T > Struct Template Reference

Applies exponential smoothing to a signal with the ODE \( \frac{dy}{dt} = x \lambda \). More...

#include <filter.hpp>

Public Member Functions

void reset ()
 
void setLambda (T lambda)
 
void setTau (T tau)
 Sets \( \lambda = 1 / \tau \).
 
process (T deltaTime, T in)
 
DEPRECATEDprocess (T in)
 

Public Attributes

out = 0.f
 
lambda = 0.f
 

Detailed Description

template<typename T = float>
struct rack::dsp::TExponentialFilter< T >

Applies exponential smoothing to a signal with the ODE \( \frac{dy}{dt} = x \lambda \).

Member Function Documentation

◆ reset()

template<typename T = float>
void rack::dsp::TExponentialFilter< T >::reset ( )
inline

◆ setLambda()

template<typename T = float>
void rack::dsp::TExponentialFilter< T >::setLambda ( T lambda)
inline

◆ setTau()

template<typename T = float>
void rack::dsp::TExponentialFilter< T >::setTau ( T tau)
inline

Sets \( \lambda = 1 / \tau \).

◆ process() [1/2]

template<typename T = float>
T rack::dsp::TExponentialFilter< T >::process ( T deltaTime,
T in )
inline

◆ process() [2/2]

template<typename T = float>
DEPRECATED T rack::dsp::TExponentialFilter< T >::process ( T in)
inline

Member Data Documentation

◆ out

template<typename T = float>
T rack::dsp::TExponentialFilter< T >::out = 0.f

◆ lambda

template<typename T = float>
T rack::dsp::TExponentialFilter< T >::lambda = 0.f

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