Mercurial > hg > qm-dsp
comparison dsp/keydetection/GetKeyMode.h @ 265:c1a952d9017c
* Add key strength output; increase chromagram lower bound so as to shorten
hop size
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 01 Feb 2008 16:45:49 +0000 |
parents | 60bbe2d98066 |
children | b4921bfd2aea |
comparison
equal
deleted
inserted
replaced
264:766f770b358f | 265:c1a952d9017c |
---|---|
12 * without the explicit authorization from the centre for digital music, | 12 * without the explicit authorization from the centre for digital music, |
13 * queen mary university of london | 13 * queen mary university of london |
14 * | 14 * |
15 */ | 15 */ |
16 | 16 |
17 #if !defined GETKEYMODE_H | 17 #ifndef GETKEYMODE_H |
18 #define GETKEYMODE_H | 18 #define GETKEYMODE_H |
19 | 19 |
20 | 20 |
21 #include "dsp/rateconversion/Decimator.h" | 21 #include "dsp/rateconversion/Decimator.h" |
22 #include "dsp/chromagram/Chromagram.h" | 22 #include "dsp/chromagram/Chromagram.h" |
39 | 39 |
40 double* getChroma() { return m_ChrPointer; } | 40 double* getChroma() { return m_ChrPointer; } |
41 unsigned int getChromaSize() { return m_BPO; } | 41 unsigned int getChromaSize() { return m_BPO; } |
42 | 42 |
43 double* getMeanHPCP() { return m_MeanHPCP; } | 43 double* getMeanHPCP() { return m_MeanHPCP; } |
44 | |
45 double *getKeyStrengths() { return m_keyStrengths; } | |
44 | 46 |
45 int isModeMinor( int key ); | 47 int isModeMinor( int key ); |
46 | 48 |
47 protected: | 49 protected: |
48 | 50 |
85 double* m_MajCorr; | 87 double* m_MajCorr; |
86 double* m_MinCorr; | 88 double* m_MinCorr; |
87 double* m_Keys; | 89 double* m_Keys; |
88 int* m_MedianFilterBuffer; | 90 int* m_MedianFilterBuffer; |
89 int* m_SortedBuffer; | 91 int* m_SortedBuffer; |
92 | |
93 double *m_keyStrengths; | |
90 }; | 94 }; |
91 | 95 |
92 #endif // !defined GETKEYMODE_H | 96 #endif // !defined GETKEYMODE_H |