FahlGrahn Audio v1.0.0
Loading...
Searching...
No Matches
Biquad Class Reference
Inheritance diagram for Biquad:
Collaboration diagram for Biquad:

Classes

struct  Coeffs
 

Public Member Functions

 Biquad (IFilter::Type type, double startFreq, int order=2)
 
void prepare (const double sampleRate, const int numSamples, const int numChannels) override
 
void process (std::span< const float > input, std::span< float > output, int channel) override
 
void reset ()
 
void setAllParams (double frequency, double gaindB, double q)
 
void setFrequency (double frequency) override
 
void setQ (double q) override
 
void setGain (double gaindB) override
 
void setSampleRate (double sampleRate) override
 
double filterResponse (double sampleRate, double currentFrequency) override
 
std::vector< double > getCoefficients ()
 
double getFrequency ()
 
double getGain ()
 
double getQ ()
 
double getSampleRate ()
 
Type getType () const
 
- Public Member Functions inherited from IFilter
- Public Member Functions inherited from IDsp

Public Attributes

struct Coeffs mCoeffs
 
- Public Attributes inherited from IFilter
bool isEnabled {true}
 

Additional Inherited Members

- Public Types inherited from IFilter
enum  Type {
  kHighPass , kLowPass , kLowShelf , kHighShelf ,
  kPeak , kNumTypes
}
 

Member Function Documentation

◆ filterResponse()

double Biquad::filterResponse ( double sampleRate,
double currentFrequency )
overridevirtual

Implements IFilter.

◆ prepare()

void Biquad::prepare ( const double sampleRate,
const int numSamples,
const int numChannels )
overridevirtual

Implements IDsp.

◆ process()

void Biquad::process ( std::span< const float > input,
std::span< float > output,
int channel )
overridevirtual

Implements IDsp.

◆ setFrequency()

void Biquad::setFrequency ( double frequency)
overridevirtual

Implements IFilter.

◆ setGain()

void Biquad::setGain ( double gaindB)
overridevirtual

Implements IFilter.

◆ setQ()

void Biquad::setQ ( double q)
overridevirtual

Implements IFilter.

◆ setSampleRate()

void Biquad::setSampleRate ( double sampleRate)
overridevirtual

Implements IFilter.


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