Audio FX
 
Loading...
Searching...
No Matches
LowShelf Class Reference

Represents a low shelf filter which is a type of biquad filter. More...

#include <ls.h>

Inheritance diagram for LowShelf:
Biquad Filter

Public Member Functions

 LowShelf (double gain, double cutoffFreq, int sampleRate, double slope)
 Establish filter parameters.
 
void setCoefficients (double gain, double slope) override
 Set gain and/or slope the cutoff frequency stays fixed.
 
- Public Member Functions inherited from Biquad
void process (vector< vector< double > > &samples) override
 apply biquad filter to v
 

Additional Inherited Members

- Protected Attributes inherited from Biquad
double a0
 
double a1
 
double a2
 
double b0
 
double b1
 
double b2
 
double fs
 

Detailed Description

Represents a low shelf filter which is a type of biquad filter.

Constructor & Destructor Documentation

◆ LowShelf()

LowShelf::LowShelf ( double gain,
double cutoffFreq,
int sampleRate,
double slope )

Establish filter parameters.

Parameters
gain-> gain
cutoffFreq-> cutoff frequency
sampleRate-> sample rate for audio being processed through filter
slope-> slope

Member Function Documentation

◆ setCoefficients()

void LowShelf::setCoefficients ( double gain,
double slope )
overridevirtual

Set gain and/or slope the cutoff frequency stays fixed.

Parameters
gain-> gain
slope-> slope

Implements Biquad.


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