Mercurial > hg > qm-dsp
diff dsp/chromagram/ConstantQ.h @ 483:fdaa63607c15
Untabify, indent, tidy
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 31 May 2019 11:54:32 +0100 |
parents | 50a97c8d52ed |
children | 5998ee1042d3 |
line wrap: on
line diff
--- a/dsp/chromagram/ConstantQ.h Fri May 31 11:02:28 2019 +0100 +++ b/dsp/chromagram/ConstantQ.h Fri May 31 11:54:32 2019 +0100 @@ -28,9 +28,8 @@ double CQThresh; // threshold }; -class ConstantQ { - -//public functions incl. sparsekernel so can keep out of loop in main +class ConstantQ +{ public: void process( const double* FFTRe, const double* FFTIm, double* CQRe, double* CQIm ); @@ -43,10 +42,10 @@ void sparsekernel(); double hamming(int len, int n) { - double out = 0.54 - 0.46*cos(2*PI*n/len); - return(out); + double out = 0.54 - 0.46*cos(2*PI*n/len); + return(out); } - + int getnumwin() { return m_numWin;} double getQ() { return m_dQ;} int getK() {return m_uK ;} @@ -56,7 +55,7 @@ private: void initialise( CQConfig Config ); void deInitialise(); - + double* m_CQdata; double m_FS; double m_FMin;