1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
6 Centre for Digital Music, Queen Mary, University of London.
7 This file 2005-2006 Christian Landone.
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information.
19 #include "dsp/transforms/FFT.h"
20 #include "base/Window.h"
21 #include "ConstantQ.h"
29 MathUtilities::NormaliseType normalise;
36 Chromagram( ChromaConfig Config );
39 double* process( const double *data ); // time domain
40 double* process( const double *real, const double *imag ); // frequency domain
41 void unityNormalise( double* src );
44 double kabs( double real, double imag );
47 unsigned int getK() { return m_uK;}
48 unsigned int getFrameSize() { return m_frameSize; }
49 unsigned int getHopSize() { return m_hopSize; }
52 int initialise( ChromaConfig Config );
55 Window<double> *m_window;
64 MathUtilities::NormaliseType m_normalise;
66 unsigned int m_frameSize;
67 unsigned int m_hopSize;
70 ConstantQ* m_ConstantQ;