DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
dspark::Smoothers::MultiPoleSmoother< N > Class Template Reference

Templated cascaded multi-pole smoother for steeper roll-off. More...

#include <Smoothers.h>

Public Member Functions

void reset (double sampleRate, float timeConstantMilliseconds, float initialValue=0.0f) noexcept
 
void setTargetValue (float newTarget) noexcept
 
float getNextValue () noexcept
 
float getCurrentValue () const noexcept
 
float getTargetValue () const noexcept
 
bool isSmoothing () const noexcept
 
void skip () noexcept
 

Static Public Attributes

static constexpr float epsilon = 1e-6f
 

Detailed Description

template<std::size_t N>
class dspark::Smoothers::MultiPoleSmoother< N >

Templated cascaded multi-pole smoother for steeper roll-off.

Definition at line 161 of file Smoothers.h.

Member Function Documentation

◆ getCurrentValue()

template<std::size_t N>
float dspark::Smoothers::MultiPoleSmoother< N >::getCurrentValue ( ) const
inlinenoexcept

Definition at line 172 of file Smoothers.h.

◆ getNextValue()

template<std::size_t N>
float dspark::Smoothers::MultiPoleSmoother< N >::getNextValue ( )
inlinenoexcept

Definition at line 509 of file Smoothers.h.

◆ getTargetValue()

template<std::size_t N>
float dspark::Smoothers::MultiPoleSmoother< N >::getTargetValue ( ) const
inlinenoexcept

Definition at line 173 of file Smoothers.h.

◆ isSmoothing()

template<std::size_t N>
bool dspark::Smoothers::MultiPoleSmoother< N >::isSmoothing ( ) const
inlinenoexcept

Definition at line 521 of file Smoothers.h.

◆ reset()

template<std::size_t N>
void dspark::Smoothers::MultiPoleSmoother< N >::reset ( double  sampleRate,
float  timeConstantMilliseconds,
float  initialValue = 0.0f 
)
inlinenoexcept

Definition at line 496 of file Smoothers.h.

◆ setTargetValue()

template<std::size_t N>
void dspark::Smoothers::MultiPoleSmoother< N >::setTargetValue ( float  newTarget)
inlinenoexcept

Definition at line 503 of file Smoothers.h.

◆ skip()

template<std::size_t N>
void dspark::Smoothers::MultiPoleSmoother< N >::skip ( )
inlinenoexcept

Definition at line 533 of file Smoothers.h.

Member Data Documentation

◆ epsilon

template<std::size_t N>
constexpr float dspark::Smoothers::MultiPoleSmoother< N >::epsilon = 1e-6f
staticconstexpr

Definition at line 166 of file Smoothers.h.


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