Gin
Public Types | Public Member Functions | List of all members
Filter Class Reference

Basic multi channel filter. More...

Public Types

enum  Type {
  none = 0 , lowpass , highpass , bandpass ,
  notch , lowshelf , highshelf , peak ,
  allpass
}
 
enum  Slope { db12 = 0 , db24 }
 

Public Member Functions

 Filter (int maxOrder=2)
 
void setSampleRate (double sr)
 
void setNumChannels (int ch)
 
void setType (Type t)
 
void setSlope (Slope s)
 
void reset ()
 
float getFrequency ()
 
void setParams (float freq_, float q_, float g_=0.0f)
 
void process (juce::AudioSampleBuffer &buffer)
 
float getResponseMagnitude (float atFreq)
 

Detailed Description

Basic multi channel filter.

Member Enumeration Documentation

◆ Type

Enumerator
none 
lowpass 
highpass 
bandpass 
notch 
lowshelf 
highshelf 
peak 
allpass 

◆ Slope

Enumerator
db12 
db24 

Constructor & Destructor Documentation

◆ Filter()

Filter::Filter ( int  maxOrder = 2)

Member Function Documentation

◆ setSampleRate()

void Filter::setSampleRate ( double  sr)

◆ setNumChannels()

void Filter::setNumChannels ( int  ch)

◆ setType()

void Filter::setType ( Type  t)

◆ setSlope()

void Filter::setSlope ( Slope  s)

◆ reset()

void Filter::reset ( )

◆ getFrequency()

float Filter::getFrequency ( )

◆ setParams()

void Filter::setParams ( float  freq_,
float  q_,
float  g_ = 0.0f 
)

References none, and Q.

◆ process()

void Filter::process ( juce::AudioSampleBuffer &  buffer)

References db12, db24, and none.

◆ getResponseMagnitude()

float Filter::getResponseMagnitude ( float  atFreq)

References db12, db24, and Q.


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