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

The AnalogFIRFilter object implements a somewhat silly algorithm that implaments an analog magnitude response as a FIR filter. NOT DESIGNED to replace virtual analog; rather it is intended to show the frequency sampling method in an easy (and fun) way. More...

#include <fxobjects.h>

Inheritance diagram for AnalogFIRFilter:
IAudioSignalProcessor

Public Member Functions

virtual bool reset (double _sampleRate)
 
virtual double processAudioSample (double xn)
 
virtual bool canProcessAudioFrame ()
 
AnalogFIRFilterParameters getParameters ()
 
void setParameters (AnalogFIRFilterParameters _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)
 

Detailed Description

The AnalogFIRFilter object implements a somewhat silly algorithm that implaments an analog magnitude response as a FIR filter. NOT DESIGNED to replace virtual analog; rather it is intended to show the frequency sampling method in an easy (and fun) way.

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

return false: this object only processes samples

Implements IAudioSignalProcessor.

◆ getParameters()

AnalogFIRFilterParameters AnalogFIRFilter::getParameters ( )
inline

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

Returns
AnalogFIRFilterParameters custom data structure

◆ processAudioSample()

virtual double AnalogFIRFilter::processAudioSample ( double  xn)
inlinevirtual

pefrorm the convolution

Parameters
xninput
Returns
the processed sample

Implements IAudioSignalProcessor.

◆ reset()

virtual bool AnalogFIRFilter::reset ( double  _sampleRate)
inlinevirtual

reset members to initialized state

< clear

< clear

Implements IAudioSignalProcessor.

◆ setParameters()

void AnalogFIRFilter::setParameters ( AnalogFIRFilterParameters  _parameters)
inline

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

Parameters
AnalogFIRFilterParameterscustom data structure

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