JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::DelayTapXFade Struct Reference

#include <JPLSpatial/Auralization/DelayLine.h>

Public Types

using InterpolatorType = DelayTapXFade
 

Public Member Functions

void SetCrossfade (float alpha)
 
void SetDelay (float delay)
 
template<class DelayLine >
requires (DelayLine::WindowSize >= InputLength)
float Process (const DelayLine &delayLine)
 Process delay crossfade and get the delayed sample.
 

Static Public Attributes

static constexpr uint32_t InputLength = 1
 

Detailed Description

Delay Tap crossfading from previous to target sample position using simple cosine crossfade

Member Typedef Documentation

◆ InterpolatorType

Member Function Documentation

◆ Process()

float JPL::DelayTapXFade::Process ( const DelayLine delayLine)
inline

Process delay crossfade and get the delayed sample.

◆ SetCrossfade()

void JPL::DelayTapXFade::SetCrossfade ( float  alpha)
inline

Set crossfade fraction

Parameters
alpha: must be in (0, 1)

◆ SetDelay()

void JPL::DelayTapXFade::SetDelay ( float  delay)
inline

Set target delay is in samples, the old delay tap time is crossfaded with the new time

For now we use discrete values,

Member Data Documentation

◆ InputLength

constexpr uint32_t JPL::DelayTapXFade::InputLength = 1
staticconstexpr

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