Mercurial > hg > constant-q-cpp
comparison 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 |
comparison
equal
deleted
inserted
replaced
126:b87290781071 | 127:8996465e39fc |
---|---|
35 #include <stdexcept> | 35 #include <stdexcept> |
36 | 36 |
37 using std::cerr; | 37 using std::cerr; |
38 using std::endl; | 38 using std::endl; |
39 | 39 |
40 CQSpectrogram::CQSpectrogram(double sampleRate, | 40 CQSpectrogram::CQSpectrogram(CQParameters params, |
41 double minFreq, double maxFreq, | 41 Interpolation interpolation) : |
42 int binsPerOctave, | 42 m_cq(params), |
43 Interpolation interpolation) : | |
44 m_cq(sampleRate, minFreq, maxFreq, binsPerOctave), | |
45 m_interpolation(interpolation) | 43 m_interpolation(interpolation) |
46 { | 44 { |
47 } | 45 } |
48 | 46 |
49 CQSpectrogram::~CQSpectrogram() | 47 CQSpectrogram::~CQSpectrogram() |