qm-dsp  1.8
GetKeyMode Class Reference

#include <GetKeyMode.h>

List of all members.

Public Member Functions

 GetKeyMode (int sampleRate, float tuningFrequency, double hpcpAverage, double medianAverage)
virtual ~GetKeyMode ()
int process (double *PCMData)
double krumCorr (double *pData1, double *pData2, unsigned int length)
unsigned int getBlockSize ()
unsigned int getHopSize ()
double * getChroma ()
unsigned int getChromaSize ()
double * getMeanHPCP ()
double * getKeyStrengths ()
bool isModeMinor (int key)

Protected Attributes

double m_hpcpAverage
double m_medianAverage
unsigned int m_DecimationFactor
Decimatorm_Decimator
ChromaConfig m_ChromaConfig
Chromagramm_Chroma
double * m_ChrPointer
unsigned int m_ChromaFrameSize
unsigned int m_ChromaHopSize
unsigned int m_BPO
unsigned int m_ChromaBuffersize
unsigned int m_MedianWinsize
unsigned int m_bufferindex
unsigned int m_ChromaBufferFilling
unsigned int m_MedianBufferFilling
double * m_DecimatedBuffer
double * m_ChromaBuffer
double * m_MeanHPCP
double * m_MajCorr
double * m_MinCorr
double * m_Keys
int * m_MedianFilterBuffer
int * m_SortedBuffer
double * m_keyStrengths

Detailed Description

Definition at line 20 of file GetKeyMode.h.


Constructor & Destructor Documentation


Member Function Documentation

double GetKeyMode::krumCorr ( double *  pData1,
double *  pData2,
unsigned int  length 
)

Definition at line 138 of file GetKeyMode.cpp.

References MathUtilities::mean().

Referenced by process().

unsigned int GetKeyMode::getBlockSize ( ) [inline]

Definition at line 32 of file GetKeyMode.h.

References m_ChromaFrameSize, and m_DecimationFactor.

unsigned int GetKeyMode::getHopSize ( ) [inline]

Definition at line 33 of file GetKeyMode.h.

References m_ChromaHopSize, and m_DecimationFactor.

double* GetKeyMode::getChroma ( ) [inline]

Definition at line 35 of file GetKeyMode.h.

References m_ChrPointer.

unsigned int GetKeyMode::getChromaSize ( ) [inline]

Definition at line 36 of file GetKeyMode.h.

References m_BPO.

double* GetKeyMode::getMeanHPCP ( ) [inline]

Definition at line 38 of file GetKeyMode.h.

References m_MeanHPCP.

double* GetKeyMode::getKeyStrengths ( ) [inline]

Definition at line 40 of file GetKeyMode.h.

References m_keyStrengths.

bool GetKeyMode::isModeMinor ( int  key)

Definition at line 324 of file GetKeyMode.cpp.


Member Data Documentation

double GetKeyMode::m_hpcpAverage [protected]

Definition at line 46 of file GetKeyMode.h.

Referenced by GetKeyMode().

double GetKeyMode::m_medianAverage [protected]

Definition at line 47 of file GetKeyMode.h.

Referenced by GetKeyMode().

unsigned int GetKeyMode::m_DecimationFactor [protected]

Definition at line 48 of file GetKeyMode.h.

Referenced by getBlockSize(), getHopSize(), and GetKeyMode().

Definition at line 51 of file GetKeyMode.h.

Referenced by GetKeyMode(), process(), and ~GetKeyMode().

Definition at line 54 of file GetKeyMode.h.

Referenced by GetKeyMode().

Definition at line 57 of file GetKeyMode.h.

Referenced by GetKeyMode(), process(), and ~GetKeyMode().

double* GetKeyMode::m_ChrPointer [protected]

Definition at line 60 of file GetKeyMode.h.

Referenced by getChroma(), and process().

unsigned int GetKeyMode::m_ChromaFrameSize [protected]

Definition at line 63 of file GetKeyMode.h.

Referenced by getBlockSize(), and GetKeyMode().

unsigned int GetKeyMode::m_ChromaHopSize [protected]

Definition at line 65 of file GetKeyMode.h.

Referenced by getHopSize(), and GetKeyMode().

unsigned int GetKeyMode::m_BPO [protected]

Definition at line 67 of file GetKeyMode.h.

Referenced by getChromaSize(), GetKeyMode(), and process().

unsigned int GetKeyMode::m_ChromaBuffersize [protected]

Definition at line 70 of file GetKeyMode.h.

Referenced by GetKeyMode(), and process().

unsigned int GetKeyMode::m_MedianWinsize [protected]

Definition at line 71 of file GetKeyMode.h.

Referenced by GetKeyMode(), and process().

unsigned int GetKeyMode::m_bufferindex [protected]

Definition at line 73 of file GetKeyMode.h.

Referenced by GetKeyMode(), and process().

unsigned int GetKeyMode::m_ChromaBufferFilling [protected]

Definition at line 74 of file GetKeyMode.h.

Referenced by GetKeyMode(), and process().

unsigned int GetKeyMode::m_MedianBufferFilling [protected]

Definition at line 75 of file GetKeyMode.h.

Referenced by GetKeyMode(), and process().

double* GetKeyMode::m_DecimatedBuffer [protected]

Definition at line 78 of file GetKeyMode.h.

Referenced by GetKeyMode(), process(), and ~GetKeyMode().

double* GetKeyMode::m_ChromaBuffer [protected]

Definition at line 79 of file GetKeyMode.h.

Referenced by GetKeyMode(), process(), and ~GetKeyMode().

double* GetKeyMode::m_MeanHPCP [protected]

Definition at line 80 of file GetKeyMode.h.

Referenced by GetKeyMode(), getMeanHPCP(), process(), and ~GetKeyMode().

double* GetKeyMode::m_MajCorr [protected]

Definition at line 82 of file GetKeyMode.h.

Referenced by GetKeyMode(), process(), and ~GetKeyMode().

double* GetKeyMode::m_MinCorr [protected]

Definition at line 83 of file GetKeyMode.h.

Referenced by GetKeyMode(), process(), and ~GetKeyMode().

double* GetKeyMode::m_Keys [protected]

Definition at line 84 of file GetKeyMode.h.

Referenced by GetKeyMode(), process(), and ~GetKeyMode().

Definition at line 85 of file GetKeyMode.h.

Referenced by GetKeyMode(), process(), and ~GetKeyMode().

int* GetKeyMode::m_SortedBuffer [protected]

Definition at line 86 of file GetKeyMode.h.

Referenced by GetKeyMode(), process(), and ~GetKeyMode().

double* GetKeyMode::m_keyStrengths [protected]

Definition at line 88 of file GetKeyMode.h.

Referenced by GetKeyMode(), getKeyStrengths(), process(), and ~GetKeyMode().


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