SPUC  3.0
Public Types | Public Member Functions | Public Attributes | List of all members
SPUC::fast_equalizer Class Reference

#include <fast_equalizer.h>

Collaboration diagram for SPUC::fast_equalizer:
Collaboration graph

Public Types

typedef complex< double > audio_data_type

Public Member Functions

void adjust_level (int filt_num, double gain)
 fast_equalizer (int BANDS=10)
void set_num_bands (int B)
void print_gains ()
void print_levels ()
void init (int points)
void set_fs (double f)
void reset ()
complex< double > run (const complex< double > &sample)
complex< double > run_fast (const complex< double > &sample)
void update_levels ()
void get_levels (float *levs)
void get_gains (float *gains)
float get_level (int band)
float get_gain (int band)
bool stage (complex< double > s, int i, complex< double > &h, complex< double > &l)
complex< double > stage_up_down (int i, complex< double > s)

Public Attributes

int num_bands
< iir_allpass_variable_cascade
< audio_data_type, double > > 
< iir_allpass_variable_cascade
< audio_data_type, double > > 
std::vector< bool > vld_All
std::vector< bool > vld_en
std::vector< audio_data_typeeqh
std::vector< audio_data_typeeql
std::vector< audio_data_typefil_out
std::vector< audio_data_typeeq
std::vector< double > levels
audio_data_type lpf
std::vector< double > gains
double lev_gain
long count

Member Typedef Documentation

Constructor & Destructor Documentation

SPUC::fast_equalizer::fast_equalizer ( int  BANDS = 10)

References lev_gain, num_bands, and reset().

Here is the call graph for this function:

Member Function Documentation

void SPUC::fast_equalizer::adjust_level ( int  filt_num,
double  gain 

References gains.

float SPUC::fast_equalizer::get_gain ( int  band)
void SPUC::fast_equalizer::get_gains ( float *  gains)

References gains, and num_bands.

float SPUC::fast_equalizer::get_level ( int  band)
void SPUC::fast_equalizer::get_levels ( float *  levs)

References levels, and num_bands.

void SPUC::fast_equalizer::init ( int  points)
void SPUC::fast_equalizer::print_gains ( )

References gains, and num_bands.

void SPUC::fast_equalizer::print_levels ( )

References levels, and num_bands.

void SPUC::fast_equalizer::reset ( void  )

References count, gains, levels, num_bands, S_All, S_Up, vld_All, and vld_en.

Referenced by fast_equalizer().

complex< double > SPUC::fast_equalizer::run ( const complex< double > &  sample)

References eqh, eql, gains, stage(), stage_up_down(), and vld_en.

Here is the call graph for this function:

complex<double> SPUC::fast_equalizer::run_fast ( const complex< double > &  sample)
void SPUC::fast_equalizer::set_fs ( double  f)
void SPUC::fast_equalizer::set_num_bands ( int  B)
bool SPUC::fast_equalizer::stage ( complex< double >  s,
int  i,
complex< double > &  h,
complex< double > &  l 

References S_All, and vld_All.

Referenced by run(), and stage_up_down().

complex< double > SPUC::fast_equalizer::stage_up_down ( int  i,
complex< double >  s 

References gains, num_bands, S_Up, stage(), and vld_en.

Referenced by run().

Here is the call graph for this function:

void SPUC::fast_equalizer::update_levels ( )

References eq, lev_gain, levels, SPUC::magsq(), and num_bands.

Here is the call graph for this function:

Member Data Documentation

long SPUC::fast_equalizer::count

Referenced by reset().

std::vector<audio_data_type> SPUC::fast_equalizer::eq

Referenced by update_levels().

std::vector<audio_data_type> SPUC::fast_equalizer::eqh

Referenced by run().

std::vector<audio_data_type> SPUC::fast_equalizer::eql

Referenced by run().

std::vector<audio_data_type> SPUC::fast_equalizer::fil_out
std::vector<double> SPUC::fast_equalizer::gains
double SPUC::fast_equalizer::lev_gain

Referenced by fast_equalizer(), and update_levels().

std::vector<double> SPUC::fast_equalizer::levels
audio_data_type SPUC::fast_equalizer::lpf
int SPUC::fast_equalizer::num_bands
std::vector<iir_allpass_variable_cascade<audio_data_type,double> > SPUC::fast_equalizer::S_All

Referenced by reset(), and stage().

std::vector<iir_allpass_variable_cascade<audio_data_type,double> > SPUC::fast_equalizer::S_Up

Referenced by reset(), and stage_up_down().

std::vector<bool> SPUC::fast_equalizer::vld_All

Referenced by reset(), and stage().

std::vector<bool> SPUC::fast_equalizer::vld_en

Referenced by reset(), run(), and stage_up_down().

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