qm-dsp
1.8
|
#include <MFCC.h>
Public Member Functions | |
MFCC (MFCCConfig config) | |
virtual | ~MFCC () |
int | process (const double *inframe, double *outceps) |
Process time-domain input data. | |
int | process (const double *real, const double *imag, double *outceps) |
Process time-domain input data. | |
int | getfftlength () const |
Private Attributes | |
double | lowestFrequency |
int | linearFilters |
double | linearSpacing |
int | logFilters |
double | logSpacing |
int | fftSize |
int | totalFilters |
double | logPower |
int | samplingRate |
int | nceps |
double * | ceps |
double ** | mfccDCTMatrix |
double ** | mfccFilterWeights |
Window< double > * | window |
double * | realOut |
double * | imagOut |
double * | fftMag |
double * | earMag |
FFTReal * | fft |
int | WANT_C0 |
MFCC::MFCC | ( | MFCCConfig | config | ) |
Definition at line 24 of file MFCC.cpp.
References ceps, earMag, fft, fftMag, MFCCConfig::fftsize, fftSize, MFCCConfig::FS, imagOut, linearFilters, linearSpacing, logFilters, MFCCConfig::logpower, logPower, logSpacing, lowestFrequency, mfccDCTMatrix, mfccFilterWeights, MFCCConfig::nceps, nceps, realOut, samplingRate, totalFilters, MFCCConfig::want_c0, WANT_C0, MFCCConfig::window, and window.
MFCC::~MFCC | ( | ) | [virtual] |
Definition at line 168 of file MFCC.cpp.
References ceps, earMag, fft, fftMag, imagOut, mfccDCTMatrix, mfccFilterWeights, nceps, realOut, totalFilters, and window.
int MFCC::process | ( | const double * | inframe, |
double * | outceps | ||
) |
Process time-domain input data.
inframe must contain getfftlength() samples. outceps must contain space for nceps values, plus one if want_c0 is specified.
Definition at line 205 of file MFCC.cpp.
References Window< T >::cut(), fft, fftSize, FFTReal::forward(), imagOut, realOut, and window.
Referenced by ClusterMeltSegmenter::extractFeaturesMFCC().
int MFCC::process | ( | const double * | real, |
const double * | imag, | ||
double * | outceps | ||
) |
Process time-domain input data.
real and imag must contain getfftlength()/2+1 elements (i.e. the conjugate half of the FFT is not expected). outceps must contain space for nceps values, plus one if want_c0 is specified.
Definition at line 220 of file MFCC.cpp.
References earMag, fftMag, fftSize, logPower, mfccDCTMatrix, mfccFilterWeights, nceps, totalFilters, and WANT_C0.
int MFCC::getfftlength | ( | ) | const [inline] |
Definition at line 56 of file MFCC.h.
References fftSize.
Referenced by ClusterMeltSegmenter::extractFeaturesMFCC().
double MFCC::lowestFrequency [private] |
int MFCC::linearFilters [private] |
double MFCC::linearSpacing [private] |
int MFCC::logFilters [private] |
double MFCC::logSpacing [private] |
int MFCC::fftSize [private] |
Definition at line 67 of file MFCC.h.
Referenced by getfftlength(), MFCC(), and process().
int MFCC::totalFilters [private] |
double MFCC::logPower [private] |
int MFCC::samplingRate [private] |
int MFCC::nceps [private] |
double* MFCC::ceps [private] |
double** MFCC::mfccDCTMatrix [private] |
double** MFCC::mfccFilterWeights [private] |
Window<double>* MFCC::window [private] |
double* MFCC::realOut [private] |
double* MFCC::imagOut [private] |
double* MFCC::fftMag [private] |
double* MFCC::earMag [private] |
int MFCC::WANT_C0 [private] |