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

The LRFilterBank object implements 2 Linkwitz-Riley Filters in a parallel filter bank to split the signal into two frequency bands. Note that one channel is inverted (see the FX book below for explanation). You can add more bands here as well. More...

#include <fxobjects.h>

Inheritance diagram for LRFilterBank:
IAudioSignalProcessor

Public Member Functions

virtual bool reset (double _sampleRate)
 
virtual bool canProcessAudioFrame ()
 
virtual double processAudioSample (double xn)
 
FilterBankOutput processFilterBank (double xn)
 
LRFilterBankParameters getParameters ()
 
void setParameters (const LRFilterBankParameters &_parameters)
 
- Public Member Functions inherited from IAudioSignalProcessor
virtual bool reset (double _sampleRate)=0
 
virtual double processAudioSample (double xn)=0
 
virtual bool canProcessAudioFrame ()=0
 
virtual void setSampleRate (double _sampleRate)
 
virtual void enableAuxInput (bool enableAuxInput)
 
virtual double processAuxInputAudioSample (double xn)
 
virtual bool processAudioFrame (const float *inputFrame, float *outputFrame, uint32_t inputChannels, uint32_t outputChannels)
 

Protected Attributes

AudioFilter lpFilter
 low-band filter
 
AudioFilter hpFilter
 high-band filter
 
LRFilterBankParameters parameters
 parameters for the object
 

Detailed Description

The LRFilterBank object implements 2 Linkwitz-Riley Filters in a parallel filter bank to split the signal into two frequency bands. Note that one channel is inverted (see the FX book below for explanation). You can add more bands here as well.

Audio I/O:

Control I/F:

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

◆ canProcessAudioFrame()

virtual bool LRFilterBank::canProcessAudioFrame ( )
inlinevirtual

return false: this object only processes samples

Implements IAudioSignalProcessor.

◆ getParameters()

LRFilterBankParameters LRFilterBank::getParameters ( )
inline

get parameters: note use of custom structure for passing param data

Returns
LRFilterBankParameters custom data structure

◆ processAudioSample()

virtual double LRFilterBank::processAudioSample ( double  xn)
inlinevirtual

this does nothing for this object, see processFilterBank( ) below

Parameters
xninput
Returns
the processed sample

Implements IAudioSignalProcessor.

◆ processFilterBank()

FilterBankOutput LRFilterBank::processFilterBank ( double  xn)
inline

process the filter bank

◆ reset()

virtual bool LRFilterBank::reset ( double  _sampleRate)
inlinevirtual

reset member objects

Implements IAudioSignalProcessor.

◆ setParameters()

void LRFilterBank::setParameters ( const LRFilterBankParameters _parameters)
inline

set parameters: note use of custom structure for passing param data

Parameters
LRFilterBankParameterscustom data structure

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