Signalsmith Audio's DSP Library  1.6.0
Useful C++ classes/templates for audio effects
Files | Classes | Functions
Multi-rate processing

Description

Classes for oversampling/upsampling/downsampling etc.

Files

file  rates.h
 

Classes

struct  signalsmith::rates::Oversampler2xFIR< Sample >
 2x FIR oversampling for block-based processing. More...
 

Functions

template<class Data >
void signalsmith::rates::fillKaiserSinc (Data &&data, int length, double passFreq, double stopFreq)
 Fills a container with a Kaiser-windowed sinc for an FIR lowpass. More...
 
template<class Data >
void signalsmith::rates::fillKaiserSinc (Data &&data, int length, double centreFreq)
 If only the centre frequency is specified, a heuristic is used to balance ripples and transition width. More...
 

Function Documentation

◆ fillKaiserSinc() [1/2]

template<class Data >
void signalsmith::rates::fillKaiserSinc ( Data &&  data,
int  length,
double  centreFreq 
)

If only the centre frequency is specified, a heuristic is used to balance ripples and transition width.

The transition width is set to: 0.9/sqrt(length)

◆ fillKaiserSinc() [2/2]

template<class Data >
void signalsmith::rates::fillKaiserSinc ( Data &&  data,
int  length,
double  passFreq,
double  stopFreq 
)

Fills a container with a Kaiser-windowed sinc for an FIR lowpass.

33-point results for various pass/stop frequencies