Mercurial > hg > qm-vamp-plugins
comparison plugins/ChromagramPlugin.cpp @ 214:23b2a2f93c5a
Merge from branch MSVC
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 27 Apr 2018 15:48:50 +0100 |
parents | 28850f3cf65b |
children | c9c562f37dd7 |
comparison
equal
deleted
inserted
replaced
186:8dca49290db9 | 214:23b2a2f93c5a |
---|---|
214 } | 214 } |
215 | 215 |
216 if (channels < getMinChannelCount() || | 216 if (channels < getMinChannelCount() || |
217 channels > getMaxChannelCount()) return false; | 217 channels > getMaxChannelCount()) return false; |
218 | 218 |
219 if (m_inputSampleRate > 384000) { | |
220 std::cerr << "ChromagramPlugin::initialise: Maximum input sample rate is 384000" << std::endl; | |
221 return false; | |
222 } | |
223 | |
219 m_chromagram = new Chromagram(m_config); | 224 m_chromagram = new Chromagram(m_config); |
220 m_binsums = vector<double>(m_config.BPO); | 225 m_binsums = vector<double>(m_config.BPO); |
221 | 226 |
222 for (int i = 0; i < m_config.BPO; ++i) { | 227 for (int i = 0; i < m_config.BPO; ++i) { |
223 m_binsums[i] = 0.0; | 228 m_binsums[i] = 0.0; |