comparison dsp/keydetection/GetKeyMode.h @ 462:bfd7d7633e1d

Merge branch 'keydetection_rounding' into chroma-key-tuning-review
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 28 May 2019 13:45:08 +0100
parents 9414df58fd0e
children 64fc3009d0a3
comparison
equal deleted inserted replaced
455:38932adb6c02 462:bfd7d7633e1d
25 25
26 virtual ~GetKeyMode(); 26 virtual ~GetKeyMode();
27 27
28 int process( double* PCMData ); 28 int process( double* PCMData );
29 29
30 double krumCorr( double* pData1, double* pData2, unsigned int length ); 30 double krumCorr( const double *pDataNorm, const double *pProfileNorm,
31 int shiftProfile, unsigned int length );
31 32
32 unsigned int getBlockSize() { return m_ChromaFrameSize*m_DecimationFactor; } 33 unsigned int getBlockSize() { return m_ChromaFrameSize*m_DecimationFactor; }
33 unsigned int getHopSize() { return m_ChromaHopSize*m_DecimationFactor; } 34 unsigned int getHopSize() { return m_ChromaHopSize*m_DecimationFactor; }
34 35
35 double* getChroma() { return m_ChrPointer; } 36 double* getChroma() { return m_ChrPointer; }
36 unsigned int getChromaSize() { return m_BPO; } 37 unsigned int getChromaSize();
37 38
38 double* getMeanHPCP() { return m_MeanHPCP; } 39 double* getMeanHPCP() { return m_MeanHPCP; }
39 40
40 double *getKeyStrengths() { return m_keyStrengths; } 41 double* getKeyStrengths();
41 42
42 bool isModeMinor( int key ); 43 bool isModeMinor( int key );
43 44
44 protected: 45 protected:
45 46
61 62
62 //Framesize 63 //Framesize
63 unsigned int m_ChromaFrameSize; 64 unsigned int m_ChromaFrameSize;
64 //Hop 65 //Hop
65 unsigned int m_ChromaHopSize; 66 unsigned int m_ChromaHopSize;
66 //Bins per octave
67 unsigned int m_BPO;
68 67
69 68
70 unsigned int m_ChromaBuffersize; 69 unsigned int m_ChromaBuffersize;
71 unsigned int m_MedianWinsize; 70 unsigned int m_MedianWinsize;
72 71
77 76
78 double* m_DecimatedBuffer; 77 double* m_DecimatedBuffer;
79 double* m_ChromaBuffer; 78 double* m_ChromaBuffer;
80 double* m_MeanHPCP; 79 double* m_MeanHPCP;
81 80
81 double* m_MajProfileNorm;
82 double* m_MinProfileNorm;
82 double* m_MajCorr; 83 double* m_MajCorr;
83 double* m_MinCorr; 84 double* m_MinCorr;
84 double* m_Keys;
85 int* m_MedianFilterBuffer; 85 int* m_MedianFilterBuffer;
86 int* m_SortedBuffer; 86 int* m_SortedBuffer;
87 87
88 double *m_keyStrengths; 88 double *m_keyStrengths;
89 }; 89 };