Mercurial > hg > qm-vamp-plugins
changeset 96:b3a809bb964e
* neighbourhoodLimit is quantized with step 0.2, not 1.0, so it can't be
an int!
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 30 Mar 2009 12:41:57 +0000 |
parents | e51152b7ee06 |
children | a040e35f352c |
files | plugins/ConstantQSpectrogram.cpp plugins/SegmenterPlugin.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/ConstantQSpectrogram.cpp Mon Mar 23 16:29:12 2009 +0000 +++ b/plugins/ConstantQSpectrogram.cpp Mon Mar 30 12:41:57 2009 +0000 @@ -348,7 +348,7 @@ real[i] = inputBuffers[0][i*2]; if (i > 0) real[m_block - i] = real[i]; imag[i] = inputBuffers[0][i*2+1]; - if (i > 0) imag[m_block - i] = imag[i]; + if (i > 0) imag[m_block - i] = imag[i]; //!!! huh? surely -imag[i] ? // std::cout << real[i] << "," << imag[i] << " "; }
--- a/plugins/SegmenterPlugin.h Mon Mar 23 16:29:12 2009 +0000 +++ b/plugins/SegmenterPlugin.h Mon Mar 30 12:41:57 2009 +0000 @@ -52,7 +52,7 @@ mutable Segmenter* segmenter; mutable int hopsize; mutable int windowsize; - mutable int neighbourhoodLimit; // in sec + mutable float neighbourhoodLimit; // in sec int nSegmentTypes; feature_types featureType; // 1 = constant-Q, 2 = chroma