Mercurial > hg > svcore
changeset 295:a2dc34ce146a
* Window should be centred on its nominal time. I'm not sure what the
reasoning was behind the previous formulations of these two lines.
author | Chris Cannam |
---|---|
date | Thu, 06 Sep 2007 15:14:47 +0000 |
parents | 2c1e57ad86e7 |
children | 2b6c99b607f1 |
files | data/fft/FFTDataServer.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;