qm-dsp
1.8
|
#include <ConstantQ.h>
Classes | |
struct | SparseKernel |
Public Member Functions | |
void | process (const double *FFTRe, const double *FFTIm, double *CQRe, double *CQIm) |
ConstantQ (CQConfig Config) | |
~ConstantQ () | |
double * | process (const double *FFTData) |
void | sparsekernel () |
double | hamming (int len, int n) |
int | getnumwin () |
double | getQ () |
int | getK () |
int | getfftlength () |
int | gethop () |
Private Member Functions | |
void | initialise (CQConfig Config) |
void | deInitialise () |
Private Attributes | |
double * | m_CQdata |
unsigned int | m_FS |
double | m_FMin |
double | m_FMax |
double | m_dQ |
double | m_CQThresh |
unsigned int | m_numWin |
unsigned int | m_hop |
unsigned int | m_BPO |
unsigned int | m_FFTLength |
unsigned int | m_uK |
SparseKernel * | m_sparseKernel |
Definition at line 31 of file ConstantQ.h.
ConstantQ::ConstantQ | ( | CQConfig | Config | ) |
Definition at line 64 of file ConstantQ.cpp.
References initialise().
Definition at line 70 of file ConstantQ.cpp.
References deInitialise().
void ConstantQ::process | ( | const double * | FFTRe, |
const double * | FFTIm, | ||
double * | CQRe, | ||
double * | CQIm | ||
) |
Definition at line 317 of file ConstantQ.cpp.
References ConstantQ::SparseKernel::imag, ConstantQ::SparseKernel::is, ConstantQ::SparseKernel::js, m_FFTLength, m_sparseKernel, m_uK, and ConstantQ::SparseKernel::real.
Referenced by ClusterMeltSegmenter::extractFeaturesConstQ(), and Chromagram::process().
double * ConstantQ::process | ( | const double * | FFTData | ) |
Definition at line 250 of file ConstantQ.cpp.
References ConstantQ::SparseKernel::imag, ConstantQ::SparseKernel::is, ConstantQ::SparseKernel::js, m_CQdata, m_FFTLength, m_sparseKernel, m_uK, and ConstantQ::SparseKernel::real.
void ConstantQ::sparsekernel | ( | ) |
Definition at line 76 of file ConstantQ.cpp.
References hamming(), ConstantQ::SparseKernel::imag, ConstantQ::SparseKernel::is, ConstantQ::SparseKernel::js, m_BPO, m_CQThresh, m_dQ, m_FFTLength, m_FMin, m_FS, m_sparseKernel, m_uK, PI, FFT::process(), ConstantQ::SparseKernel::real, and squaredModule().
Referenced by ClusterMeltSegmenter::initialise(), and Chromagram::process().
double ConstantQ::hamming | ( | int | len, |
int | n | ||
) | [inline] |
int ConstantQ::getnumwin | ( | ) | [inline] |
Definition at line 50 of file ConstantQ.h.
References m_numWin.
double ConstantQ::getQ | ( | ) | [inline] |
Definition at line 51 of file ConstantQ.h.
References m_dQ.
int ConstantQ::getK | ( | ) | [inline] |
Definition at line 52 of file ConstantQ.h.
References m_uK.
Referenced by ClusterMeltSegmenter::initialise().
int ConstantQ::getfftlength | ( | ) | [inline] |
Definition at line 53 of file ConstantQ.h.
References m_FFTLength.
Referenced by ClusterMeltSegmenter::extractFeaturesConstQ(), Chromagram::initialise(), and ClusterMeltSegmenter::initialise().
int ConstantQ::gethop | ( | ) | [inline] |
Definition at line 54 of file ConstantQ.h.
References m_hop.
Referenced by Chromagram::initialise().
void ConstantQ::initialise | ( | CQConfig | Config | ) | [private] |
Definition at line 287 of file ConstantQ.cpp.
References CQConfig::BPO, CQConfig::CQThresh, CQConfig::FS, m_BPO, m_CQdata, m_CQThresh, m_dQ, m_FFTLength, m_FMax, m_FMin, m_FS, m_hop, m_uK, CQConfig::max, CQConfig::min, and nextpow2().
Referenced by ConstantQ().
void ConstantQ::deInitialise | ( | ) | [private] |
Definition at line 311 of file ConstantQ.cpp.
References m_CQdata, and m_sparseKernel.
Referenced by ~ConstantQ().
double* ConstantQ::m_CQdata [private] |
Definition at line 60 of file ConstantQ.h.
Referenced by deInitialise(), initialise(), and process().
unsigned int ConstantQ::m_FS [private] |
Definition at line 61 of file ConstantQ.h.
Referenced by initialise(), and sparsekernel().
double ConstantQ::m_FMin [private] |
Definition at line 62 of file ConstantQ.h.
Referenced by initialise(), and sparsekernel().
double ConstantQ::m_FMax [private] |
Definition at line 63 of file ConstantQ.h.
Referenced by initialise().
double ConstantQ::m_dQ [private] |
Definition at line 64 of file ConstantQ.h.
Referenced by getQ(), initialise(), and sparsekernel().
double ConstantQ::m_CQThresh [private] |
Definition at line 65 of file ConstantQ.h.
Referenced by initialise(), and sparsekernel().
unsigned int ConstantQ::m_numWin [private] |
Definition at line 66 of file ConstantQ.h.
Referenced by getnumwin().
unsigned int ConstantQ::m_hop [private] |
Definition at line 67 of file ConstantQ.h.
Referenced by gethop(), and initialise().
unsigned int ConstantQ::m_BPO [private] |
Definition at line 68 of file ConstantQ.h.
Referenced by initialise(), and sparsekernel().
unsigned int ConstantQ::m_FFTLength [private] |
Definition at line 69 of file ConstantQ.h.
Referenced by getfftlength(), initialise(), process(), and sparsekernel().
unsigned int ConstantQ::m_uK [private] |
Definition at line 70 of file ConstantQ.h.
Referenced by getK(), initialise(), process(), and sparsekernel().
SparseKernel* ConstantQ::m_sparseKernel [private] |
Definition at line 79 of file ConstantQ.h.
Referenced by deInitialise(), process(), and sparsekernel().