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

#include <AudioMask.H>

Inheritance diagram for AudioMask:
[legend]
Collaboration diagram for AudioMask:
[legend]

Public Member Functions

 AudioMask (int sampFreq, int fBankCount)
 
 ~AudioMask (void)
 Deconstructor. More...
 
void setCFreq (int which, double value)
 
void exciteTerhardt (double **filterBankOutput, int sampleCount)
 
void exciteBeerends (double **filterBankOutput, int sampleCount)
 

Public Attributes

double * mask
 The audio mask. More...
 
double max
 The maximum value of the mask. More...
 

Protected Attributes

int fs
 Sample frequency. More...
 

Private Attributes

double * excitation
 The excitation of the roex filters. More...
 
double * Lvmu
 
double factor
 
- Private Attributes inherited from MooreSpread
double * centreFreqs
 The centreFrequencies of each filter bank. More...
 
int bankCount
 The number of sub-bankds in the filter bank. More...
 
double * memory
 Memory used in the operation. More...
 
double ** spread
 The Moore/Glasberg spreading due to the filters. More...
 

Additional Inherited Members

- Private Member Functions inherited from MooreSpread
 MooreSpread (int fBankCount)
 Instantiation requiring the number of filter banks. More...
 
 ~MooreSpread (void)
 Destructor. More...
 
void setCFreq (int which, double value)
 Method for setting the centre freqs. More...
 
void excite (double **filterBankOutput, int sampleCount, int sampleFreq)
 

Detailed Description

Evaluates the Dr M.R. Flax (2000) hybrid simultaneous audio mask Handles the evaluation of the simultaneous audio mask given a filter bank sub-banded output and sample count

Definition at line 29 of file AudioMask.H.

Constructor & Destructor Documentation

◆ AudioMask()

AudioMask::AudioMask ( int  sampFreq,
int  fBankCount 
)

Constructs the memory and factors for calculating the audio mask @ sampFreq The sample frequency @ fBankCount The number of filter sub-bands

Definition at line 35 of file AudioMask.C.

Here is the call graph for this function:

◆ ~AudioMask()

AudioMask::~AudioMask ( void  )

Deconstructor.

Definition at line 47 of file AudioMask.C.

Here is the caller graph for this function:

Member Function Documentation

◆ exciteBeerends()

void AudioMask::exciteBeerends ( double **  filterBankOutput,
int  sampleCount 
)

Definition at line 126 of file AudioMask.C.

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

◆ exciteTerhardt()

void AudioMask::exciteTerhardt ( double **  filterBankOutput,
int  sampleCount 
)

Method for finding the Preceptual Audio Mask using the Terhardt model @ filterBankOutput The output of the filter bank @ sampleCount The number of samples

Definition at line 59 of file AudioMask.C.

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

◆ setCFreq()

void AudioMask::setCFreq ( int  which,
double  value 
)
inline

Method for setting the centre freqs @ which The sub-band @ value The correcponding central frequency

Definition at line 52 of file AudioMask.H.

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

Member Data Documentation

◆ excitation

double* AudioMask::excitation
private

The excitation of the roex filters.

Definition at line 30 of file AudioMask.H.

◆ factor

double AudioMask::factor
private

Definition at line 32 of file AudioMask.H.

◆ fs

int AudioMask::fs
protected

Sample frequency.

Definition at line 34 of file AudioMask.H.

◆ Lvmu

double* AudioMask::Lvmu
private

Definition at line 31 of file AudioMask.H.

◆ mask

double* AudioMask::mask

The audio mask.

Examples:
AudioMaskerExample.C.

Definition at line 36 of file AudioMask.H.

◆ max

double AudioMask::max

The maximum value of the mask.

Definition at line 37 of file AudioMask.H.


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