Mercurial > hg > qm-dsp
diff dsp/chromagram/Chromagram.h @ 32:8bb764969d50
* Add windowing to Chromagram input
* Add window option to MFCC config
author | cannam |
---|---|
date | Fri, 18 Jan 2008 17:57:40 +0000 |
parents | 07ac3de1e53b |
children | ad645e404d0c |
line wrap: on
line diff
--- a/dsp/chromagram/Chromagram.h Fri Jan 18 14:40:20 2008 +0000 +++ b/dsp/chromagram/Chromagram.h Fri Jan 18 17:57:40 2008 +0000 @@ -12,6 +12,7 @@ #define CHROMAGRAM_H #include "dsp/transforms/FFT.h" +#include "base/Window.h" #include "ConstantQ.h" struct ChromaConfig{ @@ -30,8 +31,8 @@ Chromagram( ChromaConfig Config ); ~Chromagram(); - double* process( double *data ); // time domain - double* process( double *real, double *imag ); // frequency domain + double* process( const double *data ); // time domain + double* process( const double *real, const double *imag ); // frequency domain void unityNormalise( double* src ); // Complex arithmetic @@ -45,6 +46,9 @@ private: int initialise( ChromaConfig Config ); int deInitialise(); + + Window<double> *m_window; + double *m_windowbuf; double* m_chromadata; double m_FMin;