ASPiK SDK
Loading...
Searching...
No Matches
Decimator Class Reference

The Decimator object implements a sample rate decimator. Ana array of M input samples is decimated to one output sample. More...

#include <fxobjects.h>

Public Member Functions

void initialize (unsigned int _FIRLength, rateConversionRatio _ratio, unsigned int _sampleRate, bool _polyphase=true)
 
double decimateAudio (DecimatorInput data)
 

Protected Attributes

FastConvolver convolver
 fast convolver
 
unsigned int sampleRate = 44100
 sample rate
 
unsigned int FIRLength = 256
 FIR length.
 
rateConversionRatio ratio = rateConversionRatio::k2x
 conversion ration
 
bool polyphase = true
 enable polyphase decomposition
 
FastConvolver polyPhaseConvolvers [maxSamplingRatio]
 a set of sub-band convolvers for polyphase operation
 

Detailed Description

The Decimator object implements a sample rate decimator. Ana array of M input samples is decimated to one output sample.

Audio I/O:

  • Processes mono input to interpoalted (multi-sample) output.

Control I/F:

  • none.
Author
Will Pirkle http://www.willpirkle.com
Remarks
This object is included in Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle
Version
Revision : 1.0
Date
Date : 2018 / 09 / 7

Member Function Documentation

◆ decimateAudio()

double Decimator::decimateAudio ( DecimatorInput  data)
inline

decimate audio input samples into one outut sample (return value)

◆ initialize()

void Decimator::initialize ( unsigned int  _FIRLength,
rateConversionRatio  _ratio,
unsigned int  _sampleRate,
bool  _polyphase = true 
)
inline

setup the sample rate decimator

Parameters
_FIRLengththe decimator's anti-aliasing filter length
_ratiothe conversion ratio (see rateConversionRatio)
_sampleRatethe actual sample rate
_polyphaseflag to enable polyphase decomposition

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