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

Like ExponentialFilter but jumps immediately to higher values. More...

#include <filter.hpp>

Public Member Functions

void reset ()
 
void setLambda (T lambda)
 
void setTau (T tau)
 
process (T deltaTime, T in)
 
DEPRECATEDpeak ()
 Use the return value of process() instead.
 
DEPRECATED void setRate (T r)
 Use setLambda() instead.
 
DEPRECATEDprocess (T x)
 

Public Attributes

out = 0.f
 
lambda = 0.f
 

Detailed Description

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

Like ExponentialFilter but jumps immediately to higher values.

Member Function Documentation

◆ reset()

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

◆ setLambda()

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

◆ setTau()

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

◆ process() [1/2]

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

◆ peak()

template<typename T = float>
DEPRECATED T rack::dsp::TPeakFilter< T >::peak ( )
inline

Use the return value of process() instead.

◆ setRate()

template<typename T = float>
DEPRECATED void rack::dsp::TPeakFilter< T >::setRate ( T r)
inline

Use setLambda() instead.

◆ process() [2/2]

template<typename T = float>
DEPRECATED T rack::dsp::TPeakFilter< T >::process ( T x)
inline

Member Data Documentation

◆ out

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

◆ lambda

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

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