JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::Thiran1stInterpolator Class Reference

First-order Thiran fractional–delay all-pass interpolator. More...

#include <JPLSpatial/Auralization/FractionalDelay.h>

Public Member Functions

 Thiran1stInterpolator ()=default
 
void SetFraction (float fraction)
 
float GetFraction () const
 
float Process (std::span< const float, InputLength > data) noexcept
 
void Reset (float v=0.0f) noexcept
 Zero the state.
 

Static Public Attributes

static constexpr uint32 InputLength = 2
 

Detailed Description

First-order Thiran fractional–delay all-pass interpolator.

Constructor & Destructor Documentation

◆ Thiran1stInterpolator()

JPL::Thiran1stInterpolator::Thiran1stInterpolator ( )
default

Member Function Documentation

◆ GetFraction()

float JPL::Thiran1stInterpolator::GetFraction ( ) const
inline

◆ Process()

float JPL::Thiran1stInterpolator::Process ( std::span< const float, InputLength > data)
inlinenoexcept

Process two samples taken from the integer tap of the delay line.

Parameters
datamust point to contiguous buffer of two last samples from oldest to newest.

◆ Reset()

void JPL::Thiran1stInterpolator::Reset ( float v = 0.0f)
inlinenoexcept

Zero the state.

◆ SetFraction()

void JPL::Thiran1stInterpolator::SetFraction ( float fraction)
inline
Parameters
fractionmust be in [0,1).

Member Data Documentation

◆ InputLength

uint32 JPL::Thiran1stInterpolator::InputLength = 2
staticconstexpr

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