Krotos Modules 3
Loading...
Searching...
No Matches
krotos::WeightingFilter Class Reference

#include <WeightingFilter.h>

Public Types

enum  FilterType { KWeighting = 0 , NUM_FILTMODES }
 

Public Member Functions

 WeightingFilter ()
 
void configure (double rate, FilterType filter_type)
 
float processSample (float x)
 

Private Attributes

BiquadFilter m_highShelf
 
BiquadFilter m_highPass
 
bool configured = false
 

Member Enumeration Documentation

◆ FilterType

Determines the type of filter.

Enumerator
KWeighting 
NUM_FILTMODES 

Constructor & Destructor Documentation

◆ WeightingFilter()

krotos::WeightingFilter::WeightingFilter ( )

Constructor

Member Function Documentation

◆ configure()

void krotos::WeightingFilter::configure ( double rate,
FilterType filter_type )

Configures the filter

Parameters
ratethe audio sampling rate

◆ processSample()

float krotos::WeightingFilter::processSample ( float x)

Filter a single sample

Parameters
xthe sample to filter
Returns
the filtered sample

Member Data Documentation

◆ configured

bool krotos::WeightingFilter::configured = false
private

◆ m_highPass

BiquadFilter krotos::WeightingFilter::m_highPass
private

◆ m_highShelf

BiquadFilter krotos::WeightingFilter::m_highShelf
private

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