# HG changeset patch # User Chris Cannam # Date 1189091687 0 # Node ID a2dc34ce146a88b219f884913a93b7d7cc2c2adc # Parent 2c1e57ad86e763a04919708c12ca9ad32bbbfb2e * Window should be centred on its nominal time. I'm not sure what the reasoning was behind the previous formulations of these two lines. diff -r 2c1e57ad86e7 -r a2dc34ce146a data/fft/FFTDataServer.cpp --- a/data/fft/FFTDataServer.cpp Wed Sep 05 15:17:15 2007 +0000 +++ b/data/fft/FFTDataServer.cpp Thu Sep 06 15:14:47 2007 +0000 @@ -1029,8 +1029,8 @@ int startFrame = m_windowIncrement * x; int endFrame = startFrame + m_windowSize; - startFrame -= int(m_windowSize - m_windowIncrement) / 2; - endFrame -= int(m_windowSize - m_windowIncrement) / 2; + startFrame -= int(m_windowSize) / 2; + endFrame -= int(m_windowSize) / 2; size_t pfx = 0; size_t off = (m_fftSize - m_windowSize) / 2;