comparison dsp/chromagram/ConstantQ.h @ 276:4c901426b9f3

* Do not calculate CQ sparse kernel when chromagram is constructed: only when it's actually used * Pre-calculate CQ sparse kernels in the sizes required for the default configurations of some of our transforms
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 04 Dec 2008 11:59:29 +0000
parents 9619d6995b73
children e5907ae6de17
comparison
equal deleted inserted replaced
275:cded679e12c2 276:4c901426b9f3
61 unsigned int m_numWin; 61 unsigned int m_numWin;
62 unsigned int m_hop; 62 unsigned int m_hop;
63 unsigned int m_BPO; 63 unsigned int m_BPO;
64 unsigned int m_FFTLength; 64 unsigned int m_FFTLength;
65 unsigned int m_uK; 65 unsigned int m_uK;
66 std::vector<unsigned> m_sparseKernelIs; 66
67 std::vector<unsigned> m_sparseKernelJs; 67 struct SparseKernel {
68 std::vector<double> m_sparseKernelImagValues; 68 std::vector<unsigned> is;
69 std::vector<double> m_sparseKernelRealValues; 69 std::vector<unsigned> js;
70 std::vector<double> imag;
71 std::vector<double> real;
72 };
73
74 SparseKernel *m_sparseKernel;
70 }; 75 };
71 76
72 77
73 #endif//CONSTANTQ_H 78 #endif//CONSTANTQ_H
74 79