qm-dsp 1.8
|
#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 |
Decimator * | m_Decimator |
ChromaConfig | m_ChromaConfig |
Chromagram * | m_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 |
Definition at line 20 of file GetKeyMode.h.
GetKeyMode::GetKeyMode | ( | int | sampleRate, |
float | tuningFrequency, | ||
double | hpcpAverage, | ||
double | medianAverage | ||
) |
Definition at line 44 of file GetKeyMode.cpp.
References ChromaConfig::BPO, ChromaConfig::CQThresh, ChromaConfig::FS, Chromagram::getFrameSize(), Pitch::getFrequencyForPitch(), m_BPO, m_bufferindex, m_Chroma, m_ChromaBuffer, m_ChromaBufferFilling, m_ChromaBuffersize, m_ChromaConfig, m_ChromaFrameSize, m_ChromaHopSize, m_DecimatedBuffer, m_DecimationFactor, m_Decimator, m_hpcpAverage, m_Keys, m_keyStrengths, m_MajCorr, m_MeanHPCP, m_medianAverage, m_MedianBufferFilling, m_MedianFilterBuffer, m_MedianWinsize, m_MinCorr, m_SortedBuffer, ChromaConfig::max, ChromaConfig::min, ChromaConfig::normalise, and MathUtilities::NormaliseUnitMax.
|
virtual |
Definition at line 120 of file GetKeyMode.cpp.
References m_Chroma, m_ChromaBuffer, m_DecimatedBuffer, m_Decimator, m_Keys, m_keyStrengths, m_MajCorr, m_MeanHPCP, m_MedianFilterBuffer, m_MinCorr, and m_SortedBuffer.
int GetKeyMode::process | ( | double * | PCMData | ) |
Definition at line 169 of file GetKeyMode.cpp.
References MathUtilities::circShift(), MathUtilities::compareInt(), MathUtilities::getMax(), krumCorr(), m_BPO, m_bufferindex, m_Chroma, m_ChromaBuffer, m_ChromaBufferFilling, m_ChromaBuffersize, m_ChrPointer, m_DecimatedBuffer, m_Decimator, m_Keys, m_keyStrengths, m_MajCorr, m_MeanHPCP, m_MedianBufferFilling, m_MedianFilterBuffer, m_MedianWinsize, m_MinCorr, m_SortedBuffer, MajProfile, MinProfile, Chromagram::process(), and Decimator::process().
double GetKeyMode::krumCorr | ( | double * | pData1, |
double * | pData2, | ||
unsigned int | length | ||
) |
Definition at line 138 of file GetKeyMode.cpp.
References MathUtilities::mean().
Referenced by process().
|
inline |
Definition at line 32 of file GetKeyMode.h.
References m_ChromaFrameSize, and m_DecimationFactor.
|
inline |
Definition at line 33 of file GetKeyMode.h.
References m_ChromaHopSize, and m_DecimationFactor.
|
inline |
Definition at line 35 of file GetKeyMode.h.
References m_ChrPointer.
|
inline |
Definition at line 36 of file GetKeyMode.h.
References m_BPO.
|
inline |
Definition at line 38 of file GetKeyMode.h.
References m_MeanHPCP.
|
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.
|
protected |
Definition at line 46 of file GetKeyMode.h.
Referenced by GetKeyMode().
|
protected |
Definition at line 47 of file GetKeyMode.h.
Referenced by GetKeyMode().
|
protected |
Definition at line 48 of file GetKeyMode.h.
Referenced by getBlockSize(), getHopSize(), and GetKeyMode().
|
protected |
Definition at line 51 of file GetKeyMode.h.
Referenced by GetKeyMode(), process(), and ~GetKeyMode().
|
protected |
Definition at line 54 of file GetKeyMode.h.
Referenced by GetKeyMode().
|
protected |
Definition at line 57 of file GetKeyMode.h.
Referenced by GetKeyMode(), process(), and ~GetKeyMode().
|
protected |
Definition at line 60 of file GetKeyMode.h.
Referenced by getChroma(), and process().
|
protected |
Definition at line 63 of file GetKeyMode.h.
Referenced by getBlockSize(), and GetKeyMode().
|
protected |
Definition at line 65 of file GetKeyMode.h.
Referenced by getHopSize(), and GetKeyMode().
|
protected |
Definition at line 67 of file GetKeyMode.h.
Referenced by getChromaSize(), GetKeyMode(), and process().
|
protected |
Definition at line 70 of file GetKeyMode.h.
Referenced by GetKeyMode(), and process().
|
protected |
Definition at line 71 of file GetKeyMode.h.
Referenced by GetKeyMode(), and process().
|
protected |
Definition at line 73 of file GetKeyMode.h.
Referenced by GetKeyMode(), and process().
|
protected |
Definition at line 74 of file GetKeyMode.h.
Referenced by GetKeyMode(), and process().
|
protected |
Definition at line 75 of file GetKeyMode.h.
Referenced by GetKeyMode(), and process().
|
protected |
Definition at line 78 of file GetKeyMode.h.
Referenced by GetKeyMode(), process(), and ~GetKeyMode().
|
protected |
Definition at line 79 of file GetKeyMode.h.
Referenced by GetKeyMode(), process(), and ~GetKeyMode().
|
protected |
Definition at line 80 of file GetKeyMode.h.
Referenced by GetKeyMode(), getMeanHPCP(), process(), and ~GetKeyMode().
|
protected |
Definition at line 82 of file GetKeyMode.h.
Referenced by GetKeyMode(), process(), and ~GetKeyMode().
|
protected |
Definition at line 83 of file GetKeyMode.h.
Referenced by GetKeyMode(), process(), and ~GetKeyMode().
|
protected |
Definition at line 84 of file GetKeyMode.h.
Referenced by GetKeyMode(), process(), and ~GetKeyMode().
|
protected |
Definition at line 85 of file GetKeyMode.h.
Referenced by GetKeyMode(), process(), and ~GetKeyMode().
|
protected |
Definition at line 86 of file GetKeyMode.h.
Referenced by GetKeyMode(), process(), and ~GetKeyMode().
|
protected |
Definition at line 88 of file GetKeyMode.h.
Referenced by GetKeyMode(), getKeyStrengths(), process(), and ~GetKeyMode().