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

#include <LowpassFilter.h>

Public Member Functions

 LowpassFilter ()
 
void configure (float normalisedCutoff)
 
float processSample (float x)
 

Private Attributes

float a1
 
float a2
 
float b0
 
float b1
 
float b2
 
float x_1
 
float x_2
 
float y_1
 
float y_2
 

Constructor & Destructor Documentation

◆ LowpassFilter()

krotos::LowpassFilter::LowpassFilter ( )

Constructor

Copyright Krotos LTD 2015

All rights reserved.

Member Function Documentation

◆ configure()

void krotos::LowpassFilter::configure ( float normalisedCutoff)

Configures the filter given the normalised cutoff frequency

Parameters
normalisedCutoffshould be in terms of the sampling freqeuency and so should be between 0 and 0.5

◆ processSample()

float krotos::LowpassFilter::processSample ( float x)

Filter a single sample

Parameters
xthe sample to filter
Returns
the filtered sample

Member Data Documentation

◆ a1

float krotos::LowpassFilter::a1
private

◆ a2

float krotos::LowpassFilter::a2
private

◆ b0

float krotos::LowpassFilter::b0
private

◆ b1

float krotos::LowpassFilter::b1
private

◆ b2

float krotos::LowpassFilter::b2
private

◆ x_1

float krotos::LowpassFilter::x_1
private

◆ x_2

float krotos::LowpassFilter::x_2
private

◆ y_1

float krotos::LowpassFilter::y_1
private

◆ y_2

float krotos::LowpassFilter::y_2
private

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