FahlGrahn Audio v1.0.0
Loading...
Searching...
No Matches
Filter Class Reference

Public Types

enum  Type {
  kHighPass , kLowPass , kLowShelf , kHighShelf ,
  kPeak , kNumTypes
}
 
enum  Order { k6dBSlope , k12dBSlope , k18dBSlope , k24dbSlope }
 

Public Member Functions

void prepare (double sampleRate, int numSamples, int numChannels)
 
void setFrequency (double frequency)
 
void setGain (double gain)
 
void setQ (double q)
 
void setFilterOrder (Order filterOrder)
 
void setSampleRate (double sampleRate)
 
double filterResponse (double sampleRate, double x)
 
Type getType () const
 
void process (std::span< const float > input, std::span< float > output, int channel)
 

Static Public Member Functions

template<int FilterOrder = 2>
static std::unique_ptr< FiltercreateFilterInstance (Type filterType, double startFrequency)
 

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