SynthLab SDK
SynthLab::BQAudioFilter Class Reference

Simple version of the AudioFilter object from Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle that impelments a biquad audio filter. More...

#include <synthbase.h>

Public Member Functions

void reset ()
 
void flushDelays ()
 
void setCoeffs (BQCoeffs &_coeffs)
 
void copyCoeffs (BQAudioFilter &destination)
 
double processAudioSample (double xn)
 

Protected Types

enum  {
  a0, a1, a2, b1,
  b2, c0, d0
}
 
enum  {
  xz1, xz2, yz1, yz2,
  numStates
}
 

Protected Attributes

double state [4] = { 0.0, 0.0, 0.0, 0.0 }
 state registers
 
BQCoeffs bq
 coefficients
 

Detailed Description

Simple version of the AudioFilter object from Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle that impelments a biquad audio filter.

  • see the book and website for more details
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

◆ copyCoeffs()

void SynthLab::BQAudioFilter::copyCoeffs ( BQAudioFilter destination)
inline

copy biquad coeffieicnets to a destination

◆ flushDelays()

void SynthLab::BQAudioFilter::flushDelays ( )
inline

flush state variables

◆ processAudioSample()

double SynthLab::BQAudioFilter::processAudioSample ( double  xn)
inline

run the filter

Parameters
xnthe input sample
Returns
the filtered output

◆ reset()

void SynthLab::BQAudioFilter::reset ( )
inline

reset the object

◆ setCoeffs()

void SynthLab::BQAudioFilter::setCoeffs ( BQCoeffs _coeffs)
inline

set biquad coeffieicnets directly


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