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

The Interpolator object implements a sample rate interpolator. One input sample yields N output samples. More...

#include <fxobjects.h>

Public Member Functions

void initialize (unsigned int _FIRLength, rateConversionRatio _ratio, unsigned int _sampleRate, bool _polyphase=true)
 
InterpolatorOutput interpolateAudio (double xn)
 

Protected Attributes

FastConvolver convolver
 the 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 Interpolator object implements a sample rate interpolator. One input sample yields N output samples.

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

◆ initialize()

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

setup the sample rate interpolator

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

◆ interpolateAudio()

InterpolatorOutput Interpolator::interpolateAudio ( double  xn)
inline

perform the interpolation; the multiple outputs are in an array in the return structure


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