Mercurial > hg > qm-vamp-plugins
comparison plugins/ConstantQSpectrogram.cpp @ 50:df7a0bc46592
* Harmonise the Maker and Copyright notices
* A bit more documentation
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 25 Jan 2008 17:56:49 +0000 |
parents | ff5a09e45209 |
children | 64e4c8aec287 |
comparison
equal
deleted
inserted
replaced
49:fc88b465548a | 50:df7a0bc46592 |
---|---|
66 } | 66 } |
67 | 67 |
68 string | 68 string |
69 ConstantQSpectrogram::getDescription() const | 69 ConstantQSpectrogram::getDescription() const |
70 { | 70 { |
71 return ""; | 71 return "Extract a constant pitch bin spectrogram from the input audio"; |
72 } | 72 } |
73 | 73 |
74 string | 74 string |
75 ConstantQSpectrogram::getMaker() const | 75 ConstantQSpectrogram::getMaker() const |
76 { | 76 { |
78 } | 78 } |
79 | 79 |
80 int | 80 int |
81 ConstantQSpectrogram::getPluginVersion() const | 81 ConstantQSpectrogram::getPluginVersion() const |
82 { | 82 { |
83 return 1; | 83 return 2; |
84 } | 84 } |
85 | 85 |
86 string | 86 string |
87 ConstantQSpectrogram::getCopyright() const | 87 ConstantQSpectrogram::getCopyright() const |
88 { | 88 { |
89 return "Copyright (c) 2006 - All Rights Reserved"; | 89 return "Plugin by Chris Cannam and Christian Landone. Copyright (c) 2006-2008 QMUL - All Rights Reserved"; |
90 } | 90 } |
91 | 91 |
92 ConstantQSpectrogram::ParameterList | 92 ConstantQSpectrogram::ParameterList |
93 ConstantQSpectrogram::getParameterDescriptors() const | 93 ConstantQSpectrogram::getParameterDescriptors() const |
94 { | 94 { |
207 << blockSize << std::endl; | 207 << blockSize << std::endl; |
208 | 208 |
209 setupConfig(); | 209 setupConfig(); |
210 | 210 |
211 m_cq = new ConstantQ(m_config); | 211 m_cq = new ConstantQ(m_config); |
212 m_bins = m_cq->getK(); //!!! (int)ceil(m_bpo * log(m_config.max / m_config.min) / log(2.0)); | 212 m_bins = m_cq->getK(); |
213 m_cq->sparsekernel(); | 213 m_cq->sparsekernel(); |
214 m_step = m_cq->gethop(); | 214 m_step = m_cq->gethop(); |
215 m_block = m_cq->getfftlength(); | 215 m_block = m_cq->getfftlength(); |
216 | 216 |
217 if (stepSize != m_step || | 217 if (stepSize != m_step || |