Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
294:2c1e57ad86e7 | 295:a2dc34ce146a |
---|---|
1027 if (cache->haveSetColumnAt(col)) return; | 1027 if (cache->haveSetColumnAt(col)) return; |
1028 | 1028 |
1029 int startFrame = m_windowIncrement * x; | 1029 int startFrame = m_windowIncrement * x; |
1030 int endFrame = startFrame + m_windowSize; | 1030 int endFrame = startFrame + m_windowSize; |
1031 | 1031 |
1032 startFrame -= int(m_windowSize - m_windowIncrement) / 2; | 1032 startFrame -= int(m_windowSize) / 2; |
1033 endFrame -= int(m_windowSize - m_windowIncrement) / 2; | 1033 endFrame -= int(m_windowSize) / 2; |
1034 size_t pfx = 0; | 1034 size_t pfx = 0; |
1035 | 1035 |
1036 size_t off = (m_fftSize - m_windowSize) / 2; | 1036 size_t off = (m_fftSize - m_windowSize) / 2; |
1037 | 1037 |
1038 for (size_t i = 0; i < off; ++i) { | 1038 for (size_t i = 0; i < off; ++i) { |