diff data/fft/FFTDataServer.cpp @ 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 3020904de772
children 5877d68815c7
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;