Mercurial > hg > qm-dsp
comparison dsp/chromagram/Chromagram.h @ 3:07ac3de1e53b
* Give the chromagram an alternative entry point passing in frequency domain
data
* Centre the Hamming windows and do an fftshift when calculating sparse kernel
author | cannam |
---|---|
date | Mon, 15 May 2006 15:07:27 +0000 |
parents | d7116e3183f8 |
children | 8bb764969d50 |
comparison
equal
deleted
inserted
replaced
2:c539af5259da | 3:07ac3de1e53b |
---|---|
28 | 28 |
29 public: | 29 public: |
30 Chromagram( ChromaConfig Config ); | 30 Chromagram( ChromaConfig Config ); |
31 ~Chromagram(); | 31 ~Chromagram(); |
32 | 32 |
33 double* process( double *data ); | 33 double* process( double *data ); // time domain |
34 double* process( double *real, double *imag ); // frequency domain | |
34 void unityNormalise( double* src ); | 35 void unityNormalise( double* src ); |
35 | 36 |
36 // Complex arithmetic | 37 // Complex arithmetic |
37 double kabs( double real, double imag ); | 38 double kabs( double real, double imag ); |
38 | 39 |
54 bool isNormalised; | 55 bool isNormalised; |
55 | 56 |
56 unsigned int m_frameSize; | 57 unsigned int m_frameSize; |
57 unsigned int m_hopSize; | 58 unsigned int m_hopSize; |
58 | 59 |
59 FFT* m_FFT; | 60 FFT* m_FFT; |
60 ConstantQ* m_ConstantQ; | 61 ConstantQ* m_ConstantQ; |
61 | 62 |
62 double* m_FFTRe; | 63 double* m_FFTRe; |
63 double* m_FFTIm; | 64 double* m_FFTIm; |
64 double* m_CQRe; | 65 double* m_CQRe; |