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

The ZVAFilter object implements multpile Zavalishin VA Filters. Audio I/O: More...

#include <fxobjects.h>

Inheritance diagram for ZVAFilter:
IAudioSignalProcessor

Public Member Functions

virtual bool reset (double _sampleRate)
 
ZVAFilterParameters getParameters ()
 
void setParameters (const ZVAFilterParameters &params)
 
virtual bool canProcessAudioFrame ()
 
virtual double processAudioSample (double xn)
 
void calculateFilterCoeffs ()
 
void setBeta (double _beta)
 
double getBeta ()
 
- 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

ZVAFilterParameters zvaFilterParameters
 object parameters
 
double sampleRate = 44100.0
 current sample rate
 
double integrator_z [2]
 state variables
 
double alpha0 = 0.0
 input scalar, correct delay-free loop
 
double alpha = 0.0
 alpha is (wcT/2)
 
double rho = 0.0
 p = 2R + g (feedback)
 
double beta = 0.0
 beta value, not used
 
double analogMatchSigma = 0.0
 analog matching Sigma value (see book)
 

Detailed Description

The ZVAFilter object implements multpile Zavalishin VA Filters. 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

◆ calculateFilterCoeffs()

void ZVAFilter::calculateFilterCoeffs ( )
inline

recalculate the filter coefficients

◆ canProcessAudioFrame()

virtual bool ZVAFilter::canProcessAudioFrame ( )
inlinevirtual

return false: this object only processes samples

Implements IAudioSignalProcessor.

◆ getBeta()

double ZVAFilter::getBeta ( )
inline

get beta value,not used in book projects; for future use

◆ getParameters()

ZVAFilterParameters ZVAFilter::getParameters ( )
inline

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

Returns
ZVAFilterParameters custom data structure

◆ processAudioSample()

virtual double ZVAFilter::processAudioSample ( double  xn)
inlinevirtual

process input x(n) through the VA filter to produce return value y(n)

Parameters
xninput
Returns
the processed sample

Implements IAudioSignalProcessor.

◆ reset()

virtual bool ZVAFilter::reset ( double  _sampleRate)
inlinevirtual

reset members to initialized state

Implements IAudioSignalProcessor.

◆ setBeta()

void ZVAFilter::setBeta ( double  _beta)
inline

set beta value, for filters that aggregate 1st order VA sections

◆ setParameters()

void ZVAFilter::setParameters ( const ZVAFilterParameters params)
inline

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

Parameters
ZVAFilterParameterscustom data structure

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