qm-dsp 1.8
GetKeyMode Class Reference

#include <GetKeyMode.h>

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

◆ GetKeyMode()

◆ ~GetKeyMode()

GetKeyMode::~GetKeyMode ( )
virtual

Member Function Documentation

◆ process()

◆ krumCorr()

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

Definition at line 138 of file GetKeyMode.cpp.

References MathUtilities::mean().

Referenced by process().

◆ getBlockSize()

unsigned int GetKeyMode::getBlockSize ( )
inline

Definition at line 32 of file GetKeyMode.h.

References m_ChromaFrameSize, and m_DecimationFactor.

◆ getHopSize()

unsigned int GetKeyMode::getHopSize ( )
inline

Definition at line 33 of file GetKeyMode.h.

References m_ChromaHopSize, and m_DecimationFactor.

◆ getChroma()

double * GetKeyMode::getChroma ( )
inline

Definition at line 35 of file GetKeyMode.h.

References m_ChrPointer.

◆ getChromaSize()

unsigned int GetKeyMode::getChromaSize ( )
inline

Definition at line 36 of file GetKeyMode.h.

References m_BPO.

◆ getMeanHPCP()

double * GetKeyMode::getMeanHPCP ( )
inline

Definition at line 38 of file GetKeyMode.h.

References m_MeanHPCP.

◆ getKeyStrengths()

double * GetKeyMode::getKeyStrengths ( )
inline

Definition at line 40 of file GetKeyMode.h.

References m_keyStrengths.

◆ isModeMinor()

bool GetKeyMode::isModeMinor ( int key)

Definition at line 324 of file GetKeyMode.cpp.

Member Data Documentation

◆ m_hpcpAverage

double GetKeyMode::m_hpcpAverage
protected

Definition at line 46 of file GetKeyMode.h.

Referenced by GetKeyMode().

◆ m_medianAverage

double GetKeyMode::m_medianAverage
protected

Definition at line 47 of file GetKeyMode.h.

Referenced by GetKeyMode().

◆ m_DecimationFactor

unsigned int GetKeyMode::m_DecimationFactor
protected

Definition at line 48 of file GetKeyMode.h.

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

◆ m_Decimator

Decimator* GetKeyMode::m_Decimator
protected

Definition at line 51 of file GetKeyMode.h.

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

◆ m_ChromaConfig

ChromaConfig GetKeyMode::m_ChromaConfig
protected

Definition at line 54 of file GetKeyMode.h.

Referenced by GetKeyMode().

◆ m_Chroma

Chromagram* GetKeyMode::m_Chroma
protected

Definition at line 57 of file GetKeyMode.h.

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

◆ m_ChrPointer

double* GetKeyMode::m_ChrPointer
protected

Definition at line 60 of file GetKeyMode.h.

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

◆ m_ChromaFrameSize

unsigned int GetKeyMode::m_ChromaFrameSize
protected

Definition at line 63 of file GetKeyMode.h.

Referenced by getBlockSize(), and GetKeyMode().

◆ m_ChromaHopSize

unsigned int GetKeyMode::m_ChromaHopSize
protected

Definition at line 65 of file GetKeyMode.h.

Referenced by getHopSize(), and GetKeyMode().

◆ m_BPO

unsigned int GetKeyMode::m_BPO
protected

Definition at line 67 of file GetKeyMode.h.

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

◆ m_ChromaBuffersize

unsigned int GetKeyMode::m_ChromaBuffersize
protected

Definition at line 70 of file GetKeyMode.h.

Referenced by GetKeyMode(), and process().

◆ m_MedianWinsize

unsigned int GetKeyMode::m_MedianWinsize
protected

Definition at line 71 of file GetKeyMode.h.

Referenced by GetKeyMode(), and process().

◆ m_bufferindex

unsigned int GetKeyMode::m_bufferindex
protected

Definition at line 73 of file GetKeyMode.h.

Referenced by GetKeyMode(), and process().

◆ m_ChromaBufferFilling

unsigned int GetKeyMode::m_ChromaBufferFilling
protected

Definition at line 74 of file GetKeyMode.h.

Referenced by GetKeyMode(), and process().

◆ m_MedianBufferFilling

unsigned int GetKeyMode::m_MedianBufferFilling
protected

Definition at line 75 of file GetKeyMode.h.

Referenced by GetKeyMode(), and process().

◆ m_DecimatedBuffer

double* GetKeyMode::m_DecimatedBuffer
protected

Definition at line 78 of file GetKeyMode.h.

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

◆ m_ChromaBuffer

double* GetKeyMode::m_ChromaBuffer
protected

Definition at line 79 of file GetKeyMode.h.

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

◆ m_MeanHPCP

double* GetKeyMode::m_MeanHPCP
protected

Definition at line 80 of file GetKeyMode.h.

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

◆ m_MajCorr

double* GetKeyMode::m_MajCorr
protected

Definition at line 82 of file GetKeyMode.h.

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

◆ m_MinCorr

double* GetKeyMode::m_MinCorr
protected

Definition at line 83 of file GetKeyMode.h.

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

◆ m_Keys

double* GetKeyMode::m_Keys
protected

Definition at line 84 of file GetKeyMode.h.

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

◆ m_MedianFilterBuffer

int* GetKeyMode::m_MedianFilterBuffer
protected

Definition at line 85 of file GetKeyMode.h.

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

◆ m_SortedBuffer

int* GetKeyMode::m_SortedBuffer
protected

Definition at line 86 of file GetKeyMode.h.

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

◆ m_keyStrengths

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: