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

Smoother with asymmetric attack/release times. More...

#include <Smoothers.h>

Public Member Functions

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

Smoother with asymmetric attack/release times.

The attack time applies while the value rises towards the target and the release time while it falls, following the envelope-follower convention.

Definition at line 188 of file Smoothers.h.

Member Function Documentation

◆ getCurrentValue()

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

Definition at line 197 of file Smoothers.h.

◆ getNextValue()

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

Definition at line 563 of file Smoothers.h.

◆ getTargetValue()

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

Definition at line 198 of file Smoothers.h.

◆ isSmoothing()

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

Definition at line 571 of file Smoothers.h.

◆ reset()

void dspark::Smoothers::AsymmetricSmoother::reset ( double  sampleRate,
float  attackMilliseconds,
float  releaseMilliseconds,
float  initialValue = 0.0f 
)
inlinenoexcept

Definition at line 548 of file Smoothers.h.

◆ setTargetValue()

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

Definition at line 558 of file Smoothers.h.

◆ skip()

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

Definition at line 576 of file Smoothers.h.

Member Data Documentation

◆ epsilon

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

Definition at line 191 of file Smoothers.h.


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