# HG changeset patch # User Chris Cannam # Date 1238416917 0 # Node ID b3a809bb964ee379b435fbc9ba7107d67612e3f7 # Parent e51152b7ee062333f9253b30a1e1df42e755fa09 * neighbourhoodLimit is quantized with step 0.2, not 1.0, so it can't be an int! diff -r e51152b7ee06 -r b3a809bb964e plugins/ConstantQSpectrogram.cpp --- 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] << " "; } diff -r e51152b7ee06 -r b3a809bb964e plugins/SegmenterPlugin.h --- 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