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

Upsamples by an integer factor. More...

#include <resampler.hpp>

Public Member Functions

 Upsampler (float cutoff=0.9f)
 
void reset ()
 
void process (float in, float *out)
 out must be length OVERSAMPLE
 

Public Attributes

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

Detailed Description

template<int OVERSAMPLE, int QUALITY>
struct rack::dsp::Upsampler< OVERSAMPLE, QUALITY >

Upsamples by an integer factor.

Constructor & Destructor Documentation

◆ Upsampler()

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

Member Function Documentation

◆ reset()

template<int OVERSAMPLE, int QUALITY>
void rack::dsp::Upsampler< OVERSAMPLE, QUALITY >::reset ( )
inline

◆ process()

template<int OVERSAMPLE, int QUALITY>
void rack::dsp::Upsampler< OVERSAMPLE, QUALITY >::process ( float in,
float * out )
inline

out must be length OVERSAMPLE

Member Data Documentation

◆ inBuffer

template<int OVERSAMPLE, int QUALITY>
float rack::dsp::Upsampler< OVERSAMPLE, QUALITY >::inBuffer[QUALITY]

◆ kernel

template<int OVERSAMPLE, int QUALITY>
float rack::dsp::Upsampler< OVERSAMPLE, QUALITY >::kernel[OVERSAMPLE *QUALITY]

◆ inIndex

template<int OVERSAMPLE, int QUALITY>
int rack::dsp::Upsampler< OVERSAMPLE, QUALITY >::inIndex

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