DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::AlgorithmicReverb< T >::DelayBank Struct Reference

Equal-size delay lines in one contiguous buffer sharing a write index (every line is written once per sample): at(i, k) is the sample line i received k samples ago. More...

#include <AlgorithmicReverb.h>

Public Member Functions

void prepare (int numLines, int maxDelay)
 
void clear () noexcept
 
T at (int i, int k) const noexcept
 
void write (int i, T x) noexcept
 
void advance () noexcept
 

Public Attributes

std::vector< T > buf
 
int size = 0
 
int stride = 0
 
int mask = 0
 
int w = 0
 

Detailed Description

template<FloatType T>
struct dspark::AlgorithmicReverb< T >::DelayBank

Equal-size delay lines in one contiguous buffer sharing a write index (every line is written once per sample): at(i, k) is the sample line i received k samples ago.

Definition at line 1030 of file AlgorithmicReverb.h.

Member Function Documentation

◆ advance()

template<FloatType T>
void dspark::AlgorithmicReverb< T >::DelayBank::advance ( )
inlinenoexcept

Definition at line 1054 of file AlgorithmicReverb.h.

◆ at()

template<FloatType T>
T dspark::AlgorithmicReverb< T >::DelayBank::at ( int  i,
int  k 
) const
inlinenoexcept

Definition at line 1051 of file AlgorithmicReverb.h.

◆ clear()

template<FloatType T>
void dspark::AlgorithmicReverb< T >::DelayBank::clear ( )
inlinenoexcept

Definition at line 1050 of file AlgorithmicReverb.h.

◆ prepare()

template<FloatType T>
void dspark::AlgorithmicReverb< T >::DelayBank::prepare ( int  numLines,
int  maxDelay 
)
inline

Definition at line 1038 of file AlgorithmicReverb.h.

◆ write()

template<FloatType T>
void dspark::AlgorithmicReverb< T >::DelayBank::write ( int  i,
T  x 
)
inlinenoexcept

Definition at line 1053 of file AlgorithmicReverb.h.

Member Data Documentation

◆ buf

template<FloatType T>
std::vector<T> dspark::AlgorithmicReverb< T >::DelayBank::buf

Definition at line 1032 of file AlgorithmicReverb.h.

◆ mask

template<FloatType T>
int dspark::AlgorithmicReverb< T >::DelayBank::mask = 0

Definition at line 1035 of file AlgorithmicReverb.h.

◆ size

template<FloatType T>
int dspark::AlgorithmicReverb< T >::DelayBank::size = 0

Definition at line 1033 of file AlgorithmicReverb.h.

◆ stride

template<FloatType T>
int dspark::AlgorithmicReverb< T >::DelayBank::stride = 0

Definition at line 1034 of file AlgorithmicReverb.h.

◆ w

template<FloatType T>
int dspark::AlgorithmicReverb< T >::DelayBank::w = 0

Definition at line 1036 of file AlgorithmicReverb.h.


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