Mercurial > hg > qm-dsp
comparison dsp/chromagram/ConstantQ.h @ 465:50a97c8d52ed
Apply fix from daschuer/mixxx:957aed58 : Use double precision for FS
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 29 May 2019 13:55:26 +0100 |
parents | d5014ab8b0e5 |
children | fdaa63607c15 |
comparison
equal
deleted
inserted
replaced
464:0076c66d2932 | 465:50a97c8d52ed |
---|---|
18 | 18 |
19 #include <vector> | 19 #include <vector> |
20 #include "maths/MathAliases.h" | 20 #include "maths/MathAliases.h" |
21 #include "maths/MathUtilities.h" | 21 #include "maths/MathUtilities.h" |
22 | 22 |
23 struct CQConfig{ | 23 struct CQConfig { |
24 unsigned int FS; // samplerate | 24 double FS; // samplerate |
25 double min; // minimum frequency | 25 double min; // minimum frequency |
26 double max; // maximum frequency | 26 double max; // maximum frequency |
27 unsigned int BPO; // bins per octave | 27 unsigned int BPO; // bins per octave |
28 double CQThresh; // threshold | 28 double CQThresh; // threshold |
29 }; | 29 }; |
56 private: | 56 private: |
57 void initialise( CQConfig Config ); | 57 void initialise( CQConfig Config ); |
58 void deInitialise(); | 58 void deInitialise(); |
59 | 59 |
60 double* m_CQdata; | 60 double* m_CQdata; |
61 unsigned int m_FS; | 61 double m_FS; |
62 double m_FMin; | 62 double m_FMin; |
63 double m_FMax; | 63 double m_FMax; |
64 double m_dQ; | 64 double m_dQ; |
65 double m_CQThresh; | 65 double m_CQThresh; |
66 unsigned int m_numWin; | 66 unsigned int m_numWin; |