![]() |
gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
#include <AudioMasker.H>
Public Member Functions | |
| AudioMasker (int sampFreq, int fBankCount) | |
| AudioMasker (void) | |
| Audio masker constructor - allowing specification of fs and sub-band count later. More... | |
| ~AudioMasker (void) | |
| Audio masker deconstructor. More... | |
| void | excite (short int *Input, int sCount) |
| void | excite (double *Input, int sCount) |
| template<typename Derived > | |
| int | excite (const Eigen::DenseBase< Derived > &Input) |
| double | findThreshold (double freq) |
| int | getBankCount (void) |
Public Member Functions inherited from AudioMask | |
| 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 | |
| DepUKFB * | pfb |
| roex filters More... | |
Public Attributes inherited from AudioMask | |
| double * | mask |
| The audio mask. More... | |
| double | max |
| The maximum value of the mask. More... | |
Private Member Functions | |
| void | FBDeMalloc (void) |
| Filter bank output matrix memory de-allocation. More... | |
| void | FBMalloc (void) |
| Filter bank output matrix memory allocation. More... | |
| void | process (void) |
| Process the transformation. More... | |
Private Attributes | |
| double ** | output |
| Filter bank output. More... | |
| double ** | powOutput |
| Filter bank output power. More... | |
| double * | input |
| Filter bank input. More... | |
| int | sampleCount |
| The sample count. More... | |
| int | bankCount |
| The filter bank count. More... | |
| RealFFTData * | fftData |
| The FFT data. More... | |
| RealFFT * | fft |
| The FFT. More... | |
Additional Inherited Members | |
Protected Attributes inherited from AudioMask | |
| int | fs |
| Sample frequency. More... | |
libAudioMask - Simultaneous audio mask threshold estimation library
This code also implements the roex auditory filters.
Please read the article located on the debian file system file:///usr/shar/doc/libaudiomask-1.0/Flax.2000.Improved.Auditory.Masking.Models.pdf
It may also be found on the web http://www.assta.org/sst/SST-00/cache/SST-00-Chapter9-p2.pdf
This example shows how to use the hybrid simultaneous audio masking class to find the masking threshold of a time domain signal.
========================= HOWTO =============================== See the AudioMaskerExample.C example for a more detailed scenario.
Definition at line 100 of file AudioMasker.H.
| AudioMasker::AudioMasker | ( | int | sampFreq, |
| int | fBankCount | ||
| ) |
The Audio masking constructor @ sampFreq The sample frequency of the time domain data @ fBankCount The number of filter banks
Definition at line 30 of file AudioMasker.C.
| AudioMasker::AudioMasker | ( | void | ) |
Audio masker constructor - allowing specification of fs and sub-band count later.
Definition at line 46 of file AudioMasker.C.
| AudioMasker::~AudioMasker | ( | void | ) |
Audio masker deconstructor.
Definition at line 62 of file AudioMasker.C.
| void AudioMasker::excite | ( | short int * | Input, |
| int | sCount | ||
| ) |
Finds the excitation for input data @ Input Using short int input data @ sCount samples
These should be implemented differently for different Input types
Definition at line 171 of file AudioMasker.C.
| void AudioMasker::excite | ( | double * | Input, |
| int | sCount | ||
| ) |
Finds the excitation for input data @ Input Using double input data @ sCount samples
Definition at line 187 of file AudioMasker.C.
|
inline |
Finds the excitation for input data. @ Input The data in the form of an Eigen column.
Definition at line 148 of file AudioMasker.H.
|
private |
Filter bank output matrix memory de-allocation.
Definition at line 69 of file AudioMasker.C.
|
private |
Filter bank output matrix memory allocation.
Definition at line 102 of file AudioMasker.C.
| double AudioMasker::findThreshold | ( | double | freq | ) |
Returns the simultaneous masking threshold at a particular frequency @ freq The frequency of interest
Definition at line 203 of file AudioMasker.C.
|
inline |
Definition at line 177 of file AudioMasker.H.
|
private |
Process the transformation.
Definition at line 217 of file AudioMasker.C.
|
private |
The filter bank count.
Definition at line 105 of file AudioMasker.H.
|
private |
The FFT.
Definition at line 108 of file AudioMasker.H.
|
private |
The FFT data.
Definition at line 107 of file AudioMasker.H.
|
private |
Filter bank input.
Definition at line 103 of file AudioMasker.H.
|
private |
Filter bank output.
Definition at line 101 of file AudioMasker.H.
| DepUKFB* AudioMasker::pfb |
roex filters
Definition at line 116 of file AudioMasker.H.
|
private |
Filter bank output power.
Definition at line 102 of file AudioMasker.H.
|
private |
The sample count.
Definition at line 104 of file AudioMasker.H.
|
GTK+ IOStream
Beta
|