Ardour  9.0-pre0-386-g96ef4d20f2
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 ( int  sampleRate,
float  tuningFrequency,
double  hpcpAverage,
double  medianAverage 
)

◆ ~GetKeyMode()

virtual GetKeyMode::~GetKeyMode ( )
virtual

Member Function Documentation

◆ getBlockSize()

unsigned int GetKeyMode::getBlockSize ( )
inline

Definition at line 32 of file GetKeyMode.h.

◆ getChroma()

double* GetKeyMode::getChroma ( )
inline

Definition at line 35 of file GetKeyMode.h.

◆ getChromaSize()

unsigned int GetKeyMode::getChromaSize ( )
inline

Definition at line 36 of file GetKeyMode.h.

◆ getHopSize()

unsigned int GetKeyMode::getHopSize ( )
inline

Definition at line 33 of file GetKeyMode.h.

◆ getKeyStrengths()

double* GetKeyMode::getKeyStrengths ( )
inline

Definition at line 40 of file GetKeyMode.h.

◆ getMeanHPCP()

double* GetKeyMode::getMeanHPCP ( )
inline

Definition at line 38 of file GetKeyMode.h.

◆ isModeMinor()

bool GetKeyMode::isModeMinor ( int  key)

◆ krumCorr()

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

◆ process()

int GetKeyMode::process ( double *  PCMData)

Member Data Documentation

◆ m_BPO

unsigned int GetKeyMode::m_BPO
protected

Definition at line 67 of file GetKeyMode.h.

◆ m_bufferindex

unsigned int GetKeyMode::m_bufferindex
protected

Definition at line 73 of file GetKeyMode.h.

◆ m_Chroma

Chromagram* GetKeyMode::m_Chroma
protected

Definition at line 57 of file GetKeyMode.h.

◆ m_ChromaBuffer

double* GetKeyMode::m_ChromaBuffer
protected

Definition at line 79 of file GetKeyMode.h.

◆ m_ChromaBufferFilling

unsigned int GetKeyMode::m_ChromaBufferFilling
protected

Definition at line 74 of file GetKeyMode.h.

◆ m_ChromaBuffersize

unsigned int GetKeyMode::m_ChromaBuffersize
protected

Definition at line 70 of file GetKeyMode.h.

◆ m_ChromaConfig

ChromaConfig GetKeyMode::m_ChromaConfig
protected

Definition at line 54 of file GetKeyMode.h.

◆ m_ChromaFrameSize

unsigned int GetKeyMode::m_ChromaFrameSize
protected

Definition at line 63 of file GetKeyMode.h.

◆ m_ChromaHopSize

unsigned int GetKeyMode::m_ChromaHopSize
protected

Definition at line 65 of file GetKeyMode.h.

◆ m_ChrPointer

double* GetKeyMode::m_ChrPointer
protected

Definition at line 60 of file GetKeyMode.h.

◆ m_DecimatedBuffer

double* GetKeyMode::m_DecimatedBuffer
protected

Definition at line 78 of file GetKeyMode.h.

◆ m_DecimationFactor

unsigned int GetKeyMode::m_DecimationFactor
protected

Definition at line 48 of file GetKeyMode.h.

◆ m_Decimator

Decimator* GetKeyMode::m_Decimator
protected

Definition at line 51 of file GetKeyMode.h.

◆ m_hpcpAverage

double GetKeyMode::m_hpcpAverage
protected

Definition at line 46 of file GetKeyMode.h.

◆ m_Keys

double* GetKeyMode::m_Keys
protected

Definition at line 84 of file GetKeyMode.h.

◆ m_keyStrengths

double* GetKeyMode::m_keyStrengths
protected

Definition at line 88 of file GetKeyMode.h.

◆ m_MajCorr

double* GetKeyMode::m_MajCorr
protected

Definition at line 82 of file GetKeyMode.h.

◆ m_MeanHPCP

double* GetKeyMode::m_MeanHPCP
protected

Definition at line 80 of file GetKeyMode.h.

◆ m_medianAverage

double GetKeyMode::m_medianAverage
protected

Definition at line 47 of file GetKeyMode.h.

◆ m_MedianBufferFilling

unsigned int GetKeyMode::m_MedianBufferFilling
protected

Definition at line 75 of file GetKeyMode.h.

◆ m_MedianFilterBuffer

int* GetKeyMode::m_MedianFilterBuffer
protected

Definition at line 85 of file GetKeyMode.h.

◆ m_MedianWinsize

unsigned int GetKeyMode::m_MedianWinsize
protected

Definition at line 71 of file GetKeyMode.h.

◆ m_MinCorr

double* GetKeyMode::m_MinCorr
protected

Definition at line 83 of file GetKeyMode.h.

◆ m_SortedBuffer

int* GetKeyMode::m_SortedBuffer
protected

Definition at line 86 of file GetKeyMode.h.


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