RADLib
RADical C++ application framework
RADDsp::Equalizer16Band Class Reference

16-band peaking-EQ built from a biquad cascade. More...

#include <RADDsp.h>

Public Member Functions

 Equalizer16Band (uint32_t sampleRate=48000)
 Creates an equalizer for sampleRate with default band centers. More...
 
void setSampleRate (uint32_t sampleRate)
 Sets sample rate and rebuilds coefficients. More...
 
uint32_t sampleRate () const
 Returns configured sample rate. More...
 
const std::array< EqualizerBand, 16 > & bands () const
 Returns all band settings. More...
 
bool setBand (size_t index, float frequencyHz, float gainDb, float q=1.0f)
 Sets one band center, gain, and Q. More...
 
bool setBandGain (size_t index, float gainDb)
 Sets one band gain while preserving center/Q. More...
 
float bandGain (size_t index) const
 Returns one band gain or 0 for invalid index. More...
 
void reset ()
 Resets all filter states. More...
 
std::vector< float > process (const std::vector< float > &samples)
 Processes a block through the equalizer. More...
 

Detailed Description

16-band peaking-EQ built from a biquad cascade.

Constructor & Destructor Documentation

◆ Equalizer16Band()

RADDsp::Equalizer16Band::Equalizer16Band ( uint32_t  sampleRate = 48000)
explicit

Creates an equalizer for sampleRate with default band centers.

Member Function Documentation

◆ bandGain()

float RADDsp::Equalizer16Band::bandGain ( size_t  index) const

Returns one band gain or 0 for invalid index.

◆ bands()

const std::array<EqualizerBand, 16>& RADDsp::Equalizer16Band::bands ( ) const

Returns all band settings.

◆ process()

std::vector<float> RADDsp::Equalizer16Band::process ( const std::vector< float > &  samples)

Processes a block through the equalizer.

◆ reset()

void RADDsp::Equalizer16Band::reset ( )

Resets all filter states.

◆ sampleRate()

uint32_t RADDsp::Equalizer16Band::sampleRate ( ) const

Returns configured sample rate.

◆ setBand()

bool RADDsp::Equalizer16Band::setBand ( size_t  index,
float  frequencyHz,
float  gainDb,
float  q = 1.0f 
)

Sets one band center, gain, and Q.

◆ setBandGain()

bool RADDsp::Equalizer16Band::setBandGain ( size_t  index,
float  gainDb 
)

Sets one band gain while preserving center/Q.

◆ setSampleRate()

void RADDsp::Equalizer16Band::setSampleRate ( uint32_t  sampleRate)

Sets sample rate and rebuilds coefficients.


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