Mercurial > hg > constant-q-cpp
diff src/CQSpectrogram.cpp @ 127:8996465e39fc
Expose some more processing parameters, use a single parameter class
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 16 May 2014 10:12:03 +0100 |
parents | 6deec2a51d13 |
children | 1060a19e2334 |
line wrap: on
line diff
--- a/src/CQSpectrogram.cpp Fri May 16 09:06:34 2014 +0100 +++ b/src/CQSpectrogram.cpp Fri May 16 10:12:03 2014 +0100 @@ -37,11 +37,9 @@ using std::cerr; using std::endl; -CQSpectrogram::CQSpectrogram(double sampleRate, - double minFreq, double maxFreq, - int binsPerOctave, - Interpolation interpolation) : - m_cq(sampleRate, minFreq, maxFreq, binsPerOctave), +CQSpectrogram::CQSpectrogram(CQParameters params, + Interpolation interpolation) : + m_cq(params), m_interpolation(interpolation) { }