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

Rate limiter to cap maximum change per sample. More...

#include <Smoothers.h>

Public Member Functions

void reset (double sampleRate, float maxRatePerSecond, 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

Rate limiter to cap maximum change per sample.

Definition at line 215 of file Smoothers.h.

Member Function Documentation

◆ getCurrentValue()

float dspark::Smoothers::SlewLimiter::getCurrentValue ( ) const
inlinenoexcept

Definition at line 224 of file Smoothers.h.

◆ getNextValue()

float dspark::Smoothers::SlewLimiter::getNextValue ( )
inlinenoexcept

Definition at line 598 of file Smoothers.h.

◆ getTargetValue()

float dspark::Smoothers::SlewLimiter::getTargetValue ( ) const
inlinenoexcept

Definition at line 225 of file Smoothers.h.

◆ isSmoothing()

bool dspark::Smoothers::SlewLimiter::isSmoothing ( ) const
inlinenoexcept

Definition at line 606 of file Smoothers.h.

◆ reset()

void dspark::Smoothers::SlewLimiter::reset ( double  sampleRate,
float  maxRatePerSecond,
float  initialValue = 0.0f 
)
inlinenoexcept

Definition at line 583 of file Smoothers.h.

◆ setTargetValue()

void dspark::Smoothers::SlewLimiter::setTargetValue ( float  newTarget)
inlinenoexcept

Definition at line 593 of file Smoothers.h.

◆ skip()

void dspark::Smoothers::SlewLimiter::skip ( )
inlinenoexcept

Definition at line 611 of file Smoothers.h.

Member Data Documentation

◆ epsilon

constexpr float dspark::Smoothers::SlewLimiter::epsilon = 1e-6f
staticconstexpr

Definition at line 218 of file Smoothers.h.


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