DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
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 605 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 613 of file Smoothers.h.

◆ reset()

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

Definition at line 590 of file Smoothers.h.

◆ setTargetValue()

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

Definition at line 600 of file Smoothers.h.

◆ skip()

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

Definition at line 618 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: