Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Files Functions Variables Typedefs Macros Groups
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Biquad Class Reference

Public Types

enum  filter_type {
  lowpass = 0, highpass, bandpass, notch,
  peak, lowshelf, highshelf
}
 

Public Member Functions

 Biquad (int type, double Fc, double Q, double peakGainDB)
 
void setType (int type)
 
void setQ (double Q)
 
void setFc (double Fc)
 
void setPeakGain (double peakGainDB)
 
void setBiquad (int type, double Fc, double Q, double peakGain)
 
float process (float in)
 
double getQ ()
 
double getFc ()
 
double getPeakGain ()
 
double getStartingQ ()
 
double getStartingFc ()
 
double getStartingPeakGain ()
 
 Biquad (double Fc, float Fs, int type, double Q=0.707, double peakGainDB=0.0)
 
void setType (int type)
 
void setQ (double Q)
 
void setFc (double Fc)
 
void setPeakGain (double peakGainDB)
 
int setup (double Fc, float Fs, int type, double Q=0.707, double peakGainDB=0.0)
 
float process (float in)
 
double getQ ()
 
double getFc ()
 
double getPeakGain ()
 
double getStartingQ ()
 
double getStartingFc ()
 
double getStartingPeakGain ()
 

Protected Member Functions

void calcBiquad (void)
 
void calcBiquad (void)
 

Protected Attributes

int type
 
double a0
 
double a1
 
double a2
 
double b1
 
double b2
 
double Fc
 
double Q
 
double peakGain
 
double startFc
 
double startQ
 
double startPeakGain
 
double z1
 
double z2
 
float Fs
 

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