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

The CombFilter object implements a comb filter with optional LPF in feedback loop. Used for reverb algorithms in book. More...

#include <fxobjects.h>

Inheritance diagram for CombFilter:
IAudioSignalProcessor

Public Member Functions

virtual bool reset (double _sampleRate)
 
virtual double processAudioSample (double xn)
 
virtual bool canProcessAudioFrame ()
 
CombFilterParameters getParameters ()
 
void setParameters (const CombFilterParameters &params)
 
void createDelayBuffer (double _sampleRate, double delay_mSec)
 
- 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)
 

Detailed Description

The CombFilter object implements a comb filter with optional LPF in feedback loop. Used for reverb algorithms in book.

Audio I/O:

  • Processes mono input to mono output.

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 CombFilter::canProcessAudioFrame ( )
inlinevirtual

return false: this object only processes samples

Implements IAudioSignalProcessor.

◆ createDelayBuffer()

void CombFilter::createDelayBuffer ( double  _sampleRate,
double  delay_mSec 
)
inline

create new buffers

◆ getParameters()

CombFilterParameters CombFilter::getParameters ( )
inline

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

Returns
CombFilterParameters custom data structure

◆ processAudioSample()

virtual double CombFilter::processAudioSample ( double  xn)
inlinevirtual

process CombFilter

Parameters
xninput
Returns
the processed sample

Implements IAudioSignalProcessor.

◆ reset()

virtual bool CombFilter::reset ( double  _sampleRate)
inlinevirtual

reset members to initialized state

Implements IAudioSignalProcessor.

◆ setParameters()

void CombFilter::setParameters ( const CombFilterParameters params)
inline

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

Parameters
CombFilterParameterscustom data structure

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