qm-dsp  1.8
ConstantQ Class Reference

#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
 
SparseKernelm_sparseKernel
 

Detailed Description

Definition at line 31 of file ConstantQ.h.

Constructor & Destructor Documentation

◆ ConstantQ()

ConstantQ::ConstantQ ( CQConfig  Config)

Definition at line 64 of file ConstantQ.cpp.

References initialise().

◆ ~ConstantQ()

ConstantQ::~ConstantQ ( )

Definition at line 70 of file ConstantQ.cpp.

References deInitialise().

Member Function Documentation

◆ process() [1/2]

void ConstantQ::process ( const double *  FFTRe,
const double *  FFTIm,
double *  CQRe,
double *  CQIm 
)

◆ process() [2/2]

double * ConstantQ::process ( const double *  FFTData)

◆ sparsekernel()

◆ hamming()

double ConstantQ::hamming ( int  len,
int  n 
)
inline

Definition at line 45 of file ConstantQ.h.

References PI.

Referenced by sparsekernel().

◆ getnumwin()

int ConstantQ::getnumwin ( )
inline

Definition at line 50 of file ConstantQ.h.

◆ getQ()

double ConstantQ::getQ ( )
inline

Definition at line 51 of file ConstantQ.h.

◆ getK()

int ConstantQ::getK ( )
inline

Definition at line 52 of file ConstantQ.h.

Referenced by ClusterMeltSegmenter::initialise().

◆ getfftlength()

int ConstantQ::getfftlength ( )
inline

◆ gethop()

int ConstantQ::gethop ( )
inline

Definition at line 54 of file ConstantQ.h.

Referenced by Chromagram::initialise().

◆ initialise()

void ConstantQ::initialise ( CQConfig  Config)
private

◆ deInitialise()

void ConstantQ::deInitialise ( )
private

Definition at line 311 of file ConstantQ.cpp.

References m_CQdata, and m_sparseKernel.

Referenced by ~ConstantQ().

Member Data Documentation

◆ m_CQdata

double* ConstantQ::m_CQdata
private

Definition at line 60 of file ConstantQ.h.

Referenced by deInitialise(), initialise(), and process().

◆ m_FS

unsigned int ConstantQ::m_FS
private

Definition at line 61 of file ConstantQ.h.

Referenced by initialise(), and sparsekernel().

◆ m_FMin

double ConstantQ::m_FMin
private

Definition at line 62 of file ConstantQ.h.

Referenced by initialise(), and sparsekernel().

◆ m_FMax

double ConstantQ::m_FMax
private

Definition at line 63 of file ConstantQ.h.

Referenced by initialise().

◆ m_dQ

double ConstantQ::m_dQ
private

Definition at line 64 of file ConstantQ.h.

Referenced by initialise(), and sparsekernel().

◆ m_CQThresh

double ConstantQ::m_CQThresh
private

Definition at line 65 of file ConstantQ.h.

Referenced by initialise(), and sparsekernel().

◆ m_numWin

unsigned int ConstantQ::m_numWin
private

Definition at line 66 of file ConstantQ.h.

◆ m_hop

unsigned int ConstantQ::m_hop
private

Definition at line 67 of file ConstantQ.h.

Referenced by initialise().

◆ m_BPO

unsigned int ConstantQ::m_BPO
private

Definition at line 68 of file ConstantQ.h.

Referenced by initialise(), and sparsekernel().

◆ m_FFTLength

unsigned int ConstantQ::m_FFTLength
private

Definition at line 69 of file ConstantQ.h.

Referenced by initialise(), process(), and sparsekernel().

◆ m_uK

unsigned int ConstantQ::m_uK
private

Definition at line 70 of file ConstantQ.h.

Referenced by initialise(), process(), and sparsekernel().

◆ m_sparseKernel

SparseKernel* ConstantQ::m_sparseKernel
private

Definition at line 79 of file ConstantQ.h.

Referenced by deInitialise(), process(), and sparsekernel().


The documentation for this class was generated from the following files: