Mercurial > hg > qm-vamp-plugins
comparison plugins/ConstantQSpectrogram.cpp @ 24:135df3b478ac
...
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 30 Mar 2007 20:04:11 +0000 |
parents | 6d014fb538db |
children | ff5a09e45209 |
comparison
equal
deleted
inserted
replaced
23:bec0d544984b | 24:135df3b478ac |
---|---|
204 channels > getMaxChannelCount()) return false; | 204 channels > getMaxChannelCount()) return false; |
205 | 205 |
206 std::cerr << "ConstantQSpectrogram::initialise: step " << stepSize << ", block " | 206 std::cerr << "ConstantQSpectrogram::initialise: step " << stepSize << ", block " |
207 << blockSize << std::endl; | 207 << blockSize << std::endl; |
208 | 208 |
209 setupConfig(); | |
210 | |
209 m_cq = new ConstantQ(m_config); | 211 m_cq = new ConstantQ(m_config); |
210 m_bins = (int)ceil(m_bpo * log(m_config.max / m_config.min) / log(2.0)); | 212 m_bins = m_cq->getK(); //!!! (int)ceil(m_bpo * log(m_config.max / m_config.min) / log(2.0)); |
211 m_cq->sparsekernel(); | 213 m_cq->sparsekernel(); |
212 m_step = m_cq->gethop(); | 214 m_step = m_cq->gethop(); |
213 m_block = m_cq->getfftlength(); | 215 m_block = m_cq->getfftlength(); |
214 | 216 |
215 if (stepSize != m_step || | 217 if (stepSize != m_step || |