gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
DepUKFB Class Reference

#include <depukfb.H>

Inheritance diagram for DepUKFB:
[legend]

Public Member Functions

 DepUKFB (int sampleFreq, int fCnt=50)
 
void init (int sampleFreq, int fCnt=50)
 
virtual ~DepUKFB ()
 
int filterCount (void)
 Returns the number of filters. More...
 
double * operator[] (int i)
 
double operator() (int i, int j, int binCount)
 

Public Attributes

double * cf
 The filter centre frequencies. More...
 
double * ef
 The filter edge frequencies. More...
 

Protected Member Functions

 DepUKFB ()
 
double p_l (double fc)
 
double p_u (double fc)
 

Protected Attributes

int fs
 The sample frequency. More...
 
double * g
 g coeff. More...
 
double ** w
 The filters. More...
 

Private Member Functions

double erb (double fc)
 
double freq2ERB (double freq)
 
double ERB2freq (double erb)
 
virtual void af (double fc, int whichFilter)
 
void findCF (void)
 

Private Attributes

int fCount
 

Static Private Attributes

static double p_51_1k =4.0*1000.0/(AM_C1*(AM_C2 + 1.0))
 

Detailed Description

Roex filters. This class defines power spectrum shapes for auditory filters based on : %[1] ``A Model for the Prediction of Thresholds, Loudness, and Partial % Loudness'' Moore B.C.J., Glasberg B.R. and Baer T., Journal of the % Audio Engineering Society, vol. 45, no. 4, April 1997, pp.224-40.

Definition at line 49 of file depukfb.H.

Constructor & Destructor Documentation

◆ DepUKFB() [1/2]

DepUKFB::DepUKFB ( )
inlineprotected

< Constructor called by child classes.

Definition at line 129 of file depukfb.H.

◆ DepUKFB() [2/2]

DepUKFB::DepUKFB ( int  sampleFreq,
int  fCnt = 50 
)
inline

Roex filter shape constructor. @ sampleFreq The sample rate @ fCnt The number of filters

Definition at line 162 of file depukfb.H.

Here is the call graph for this function:

◆ ~DepUKFB()

virtual DepUKFB::~DepUKFB ( )
inlinevirtual

< Destructor.

Definition at line 211 of file depukfb.H.

Member Function Documentation

◆ af()

virtual void DepUKFB::af ( double  fc,
int  whichFilter 
)
inlineprivatevirtual

Auditory Filter procedure. @ fc the central frequency of the filter @ whichFilter the filter index

Reimplemented in FastDepUKFB.

Definition at line 81 of file depukfb.H.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ erb()

double DepUKFB::erb ( double  fc)
inlineprivate

Conversion from central frequency to ERB. @ fc the central frequency

Definition at line 57 of file depukfb.H.

Here is the caller graph for this function:

◆ ERB2freq()

double DepUKFB::ERB2freq ( double  erb)
inlineprivate

ERB to frequency conversion. @ erb The ERB

Definition at line 72 of file depukfb.H.

Here is the caller graph for this function:

◆ filterCount()

int DepUKFB::filterCount ( void  )
inline

Returns the number of filters.

Definition at line 222 of file depukfb.H.

Here is the caller graph for this function:

◆ findCF()

void DepUKFB::findCF ( void  )
inlineprivate

Find the central frequency of the filter.

Definition at line 108 of file depukfb.H.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ freq2ERB()

double DepUKFB::freq2ERB ( double  freq)
inlineprivate

Frequency to ERB conversion. @ freq The frequency in Hz

Definition at line 65 of file depukfb.H.

Here is the caller graph for this function:

◆ init()

void DepUKFB::init ( int  sampleFreq,
int  fCnt = 50 
)
inline

Roex filter shape constructor - actual method. @ sampleFreq The sample rate @ fCnt The number of filters

Definition at line 171 of file depukfb.H.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()()

double DepUKFB::operator() ( int  i,
int  j,
int  binCount 
)
inline

Operator returning the filter magnitude for one filter in a bank at a particular Fourier index. @ i the filter index @ j the frequency index @ binCount the number of Fourier bins

Definition at line 235 of file depukfb.H.

Here is the call graph for this function:

◆ operator[]()

double* DepUKFB::operator[] ( int  i)
inline

Operator returning an array of filter values for one sub-band in the filter bank. @ i the index

Definition at line 228 of file depukfb.H.

◆ p_l()

double DepUKFB::p_l ( double  fc)
inlineprotected

Lower side p evaluation. @ fc The central frequency of the filter

Definition at line 136 of file depukfb.H.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ p_u()

double DepUKFB::p_u ( double  fc)
inlineprotected

Upper side p evaluation. @ fc The central frequency of the filter

Definition at line 147 of file depukfb.H.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cf

double* DepUKFB::cf

The filter centre frequencies.

Definition at line 154 of file depukfb.H.

◆ ef

double* DepUKFB::ef

The filter edge frequencies.

Definition at line 155 of file depukfb.H.

◆ fCount

int DepUKFB::fCount
private

Definition at line 51 of file depukfb.H.

◆ fs

int DepUKFB::fs
protected

The sample frequency.

Definition at line 125 of file depukfb.H.

◆ g

double* DepUKFB::g
protected

g coeff.

Definition at line 126 of file depukfb.H.

◆ p_51_1k

double DepUKFB::p_51_1k =4.0*1000.0/(AM_C1*(AM_C2 + 1.0))
staticprivate

Definition at line 50 of file depukfb.H.

◆ w

double** DepUKFB::w
protected

The filters.

Definition at line 127 of file depukfb.H.


The documentation for this class was generated from the following files:
gtkIOStream: DepUKFB Class Reference
GTK+ IOStream  Beta