[P4/git history rebuild] apparent removal of qm-dsp file

This commit is contained in:
Valeriy Kamyshniy 2014-05-27 23:02:06 -04:00 committed by Paul Davis
parent d61c1da371
commit 124836b73b

View file

@ -1,96 +1,96 @@
/* /*
* Author: c.landone * Author: c.landone
* Description: * Description:
* *
* Syntax: C++ * Syntax: C++
* *
* Copyright (c) 2005 Centre for Digital Music ( C4DM ) * Copyright (c) 2005 Centre for Digital Music ( C4DM )
* Queen Mary Univesrity of London * Queen Mary Univesrity of London
* *
* *
* This program is not free software; you cannot redistribute it * This program is not free software; you cannot redistribute it
* without the explicit authorization from the centre for digital music, * without the explicit authorization from the centre for digital music,
* queen mary university of london * queen mary university of london
* *
*/ */
#ifndef GETKEYMODE_H #ifndef GETKEYMODE_H
#define GETKEYMODE_H #define GETKEYMODE_H
#include "dsp/rateconversion/Decimator.h" #include "dsp/rateconversion/Decimator.h"
#include "dsp/chromagram/Chromagram.h" #include "dsp/chromagram/Chromagram.h"
class GetKeyMode class GetKeyMode
{ {
public: public:
GetKeyMode( int sampleRate, float tuningFrequency, GetKeyMode( int sampleRate, float tuningFrequency,
double hpcpAverage, double medianAverage ); double hpcpAverage, double medianAverage );
virtual ~GetKeyMode(); virtual ~GetKeyMode();
int process( double* PCMData ); int process( double* PCMData );
double krumCorr( double* pData1, double* pData2, unsigned int length ); double krumCorr( double* pData1, double* pData2, unsigned int length );
unsigned int getBlockSize() { return m_ChromaFrameSize*m_DecimationFactor; } unsigned int getBlockSize() { return m_ChromaFrameSize*m_DecimationFactor; }
unsigned int getHopSize() { return m_ChromaHopSize*m_DecimationFactor; } unsigned int getHopSize() { return m_ChromaHopSize*m_DecimationFactor; }
double* getChroma() { return m_ChrPointer; } double* getChroma() { return m_ChrPointer; }
unsigned int getChromaSize() { return m_BPO; } unsigned int getChromaSize() { return m_BPO; }
double* getMeanHPCP() { return m_MeanHPCP; } double* getMeanHPCP() { return m_MeanHPCP; }
double *getKeyStrengths() { return m_keyStrengths; } double *getKeyStrengths() { return m_keyStrengths; }
bool isModeMinor( int key ); bool isModeMinor( int key );
protected: protected:
double m_hpcpAverage; double m_hpcpAverage;
double m_medianAverage; double m_medianAverage;
unsigned int m_DecimationFactor; unsigned int m_DecimationFactor;
//Decimator (fixed) //Decimator (fixed)
Decimator* m_Decimator; Decimator* m_Decimator;
//chroma configuration //chroma configuration
ChromaConfig m_ChromaConfig; ChromaConfig m_ChromaConfig;
//Chromagram object //Chromagram object
Chromagram* m_Chroma; Chromagram* m_Chroma;
//Chromagram output pointer //Chromagram output pointer
double* m_ChrPointer; double* m_ChrPointer;
//Framesize //Framesize
unsigned int m_ChromaFrameSize; unsigned int m_ChromaFrameSize;
//Hop //Hop
unsigned int m_ChromaHopSize; unsigned int m_ChromaHopSize;
//Bins per octave //Bins per octave
unsigned int m_BPO; unsigned int m_BPO;
unsigned int m_ChromaBuffersize; unsigned int m_ChromaBuffersize;
unsigned int m_MedianWinsize; unsigned int m_MedianWinsize;
unsigned int m_bufferindex; unsigned int m_bufferindex;
unsigned int m_ChromaBufferFilling; unsigned int m_ChromaBufferFilling;
unsigned int m_MedianBufferFilling; unsigned int m_MedianBufferFilling;
double* m_DecimatedBuffer; double* m_DecimatedBuffer;
double* m_ChromaBuffer; double* m_ChromaBuffer;
double* m_MeanHPCP; double* m_MeanHPCP;
double* m_MajCorr; double* m_MajCorr;
double* m_MinCorr; double* m_MinCorr;
double* m_Keys; double* m_Keys;
int* m_MedianFilterBuffer; int* m_MedianFilterBuffer;
int* m_SortedBuffer; int* m_SortedBuffer;
double *m_keyStrengths; double *m_keyStrengths;
}; };
#endif // !defined GETKEYMODE_H #endif // !defined GETKEYMODE_H