VCV Rack API v2
Loading...
Searching...
No Matches
rack::dsp::Decimator< OVERSAMPLE, QUALITY, T > Struct Template Reference

Downsamples by an integer factor. More...

#include <resampler.hpp>

Public Member Functions

 Decimator (float cutoff=0.9f)
 
void reset ()
 
process (T *in)
 in must be length OVERSAMPLE
 

Public Attributes

inBuffer [OVERSAMPLE *QUALITY]
 
float kernel [OVERSAMPLE *QUALITY]
 
int inIndex
 

Detailed Description

template<int OVERSAMPLE, int QUALITY, typename T = float>
struct rack::dsp::Decimator< OVERSAMPLE, QUALITY, T >

Downsamples by an integer factor.

Constructor & Destructor Documentation

◆ Decimator()

template<int OVERSAMPLE, int QUALITY, typename T = float>
rack::dsp::Decimator< OVERSAMPLE, QUALITY, T >::Decimator ( float cutoff = 0.9f)
inline

Member Function Documentation

◆ reset()

template<int OVERSAMPLE, int QUALITY, typename T = float>
void rack::dsp::Decimator< OVERSAMPLE, QUALITY, T >::reset ( )
inline

◆ process()

template<int OVERSAMPLE, int QUALITY, typename T = float>
T rack::dsp::Decimator< OVERSAMPLE, QUALITY, T >::process ( T * in)
inline

in must be length OVERSAMPLE

Member Data Documentation

◆ inBuffer

template<int OVERSAMPLE, int QUALITY, typename T = float>
T rack::dsp::Decimator< OVERSAMPLE, QUALITY, T >::inBuffer[OVERSAMPLE *QUALITY]

◆ kernel

template<int OVERSAMPLE, int QUALITY, typename T = float>
float rack::dsp::Decimator< OVERSAMPLE, QUALITY, T >::kernel[OVERSAMPLE *QUALITY]

◆ inIndex

template<int OVERSAMPLE, int QUALITY, typename T = float>
int rack::dsp::Decimator< OVERSAMPLE, QUALITY, T >::inIndex

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