DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::detail::Adaa2 Class Reference

Per-stream second-order ADAA state. More...

#include <Adaa.h>

Public Member Functions

void reset (double u=0.0) noexcept
 
void track (double u) noexcept
 
void invalidate () noexcept
 
template<class Curve >
double process (double u) noexcept
 
double previousInput () const noexcept
 

Detailed Description

Per-stream second-order ADAA state.

process<Curve>(u) returns the antialiased curve output for the input history (u, u[n-1], u[n-2]), centred on u[n-1]. The cached point values belong to one curve: call invalidate() when the caller switches curves (they are rebuilt from the raw input history on the next process()). track(u) only records the input, so antialiasing can start later from real history; reset(u) holds u as the whole history.

Definition at line 410 of file Adaa.h.

Member Function Documentation

◆ invalidate()

void dspark::detail::Adaa2::invalidate ( )
inlinenoexcept

Definition at line 426 of file Adaa.h.

◆ previousInput()

double dspark::detail::Adaa2::previousInput ( ) const
inlinenoexcept

Input one sample ago (the sample the output is centred on).

Definition at line 456 of file Adaa.h.

◆ process()

template<class Curve >
double dspark::detail::Adaa2::process ( double  u)
inlinenoexcept

Definition at line 429 of file Adaa.h.

◆ reset()

void dspark::detail::Adaa2::reset ( double  u = 0.0)
inlinenoexcept

Definition at line 413 of file Adaa.h.

◆ track()

void dspark::detail::Adaa2::track ( double  u)
inlinenoexcept

Definition at line 419 of file Adaa.h.


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