AME
All Classes Files Functions Variables Enumerations Enumerator
ame::dsp::Biquad< FloatType, MaximumChannels > Class Template Reference

BiQuad filter. More...

#include <ame_Biquad.hpp>

Classes

struct  Coefficients
 BiQuad filter coefficients. More...
 

Public Member Functions

 Biquad (const FloatType sampleRate)
 
void setSampleRate (const FloatType newSampleRate) noexcept
 Set new sampleRate.
 
FloatType getSampleRate () const noexcept
 Return sampleRate.
 
void setCoefficients (const Coefficients &c) noexcept
 Set BiQuad coefficients. More...
 
Coefficients getCoefficients () const noexcept
 
void makeLowPass (const FloatType cutOffFrequency, const FloatType Q) noexcept
 Low-pass coefficients calculation from RBJ cookbook.
 
void makeHighPass (const FloatType cutOffFrequency, const FloatType Q) noexcept
 High-pass coefficients calculation from RBJ cookbook.
 
void makeBandPass (const FloatType cutOffFrequency, const FloatType Q) noexcept
 BandPass coefficients calculation from RBJ cookbook.
 
void makeNotch (const FloatType sampleRate, const FloatType cutOffFrequency, const FloatType Q) noexcept
 Notch coefficients calculation from RBJ cookbook.
 
void makeAllPass (const FloatType cutOffFrequency, const FloatType Q) noexcept
 AllPass coefficients calculation from RBJ cookbook.
 
void makePeakFilter (const FloatType cutOffFrequency, const FloatType Q, const FloatType gainDb) noexcept
 Peak coefficients calculation from RBJ cookbook.
 
void makeLowShelf (const FloatType cutOffFrequency, const FloatType Q, const FloatType gainDb) noexcept
 Low-shelf coefficients calculation from RBJ cookbook.
 
void makeHighShelf (const FloatType cutOffFrequency, const FloatType Q, const FloatType gainDb) noexcept
 High-shelf coefficients calculation from RBJ cookbook.
 
template<typename SampleType , size_t N>
void process (AudioBlockView< SampleType, N > &block)
 Process audio effect.
 

Detailed Description

template<std::floating_point FloatType, size_t MaximumChannels>
class ame::dsp::Biquad< FloatType, MaximumChannels >

BiQuad filter.

Member Function Documentation

◆ setCoefficients()

template<std::floating_point FloatType, size_t MaximumChannels>
void ame::dsp::Biquad< FloatType, MaximumChannels >::setCoefficients ( const Coefficients c)
inlinenoexcept

Set BiQuad coefficients.

Parameters
cBiQuad coefficients
filter.setCoefficients(makeLowPass(48000.0f, 440.0f, 0.707f));
void makeLowPass(const FloatType cutOffFrequency, const FloatType Q) noexcept
Low-pass coefficients calculation from RBJ cookbook.
Definition: ame_Biquad.hpp:78

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