Mercurial > hg > silvet
diff src/Silvet.cpp @ 158:26d9a8b02adf
Bin frequencies, and some comments
author | Chris Cannam |
---|---|
date | Mon, 19 May 2014 17:47:34 +0100 |
parents | e1ebbae52cff |
children | 58547262e735 |
line wrap: on
line diff
--- a/src/Silvet.cpp Fri May 16 14:37:20 2014 +0100 +++ b/src/Silvet.cpp Mon May 19 17:47:34 2014 +0100 @@ -212,9 +212,10 @@ d.binCount = processingHeight + 55; d.binNames.clear(); if (m_cq) { + //!!! I think this output is not working correctly, and these values may be wrong char name[20]; for (int i = 0; i < processingHeight + 55; ++i) { - float freq = m_cq->getBinFrequency(i); + float freq = m_cq->getBinFrequency(processingHeight + 54 - i); sprintf(name, "%.1f Hz", freq); d.binNames.push_back(name); } @@ -235,9 +236,10 @@ d.binCount = processingHeight; d.binNames.clear(); if (m_cq) { + //!!! I think this output is not working correctly, and these values may be wrong char name[20]; for (int i = 0; i < processingHeight; ++i) { - float freq = m_cq->getBinFrequency(i + 55); + float freq = m_cq->getBinFrequency(processingHeight + 54 - i); sprintf(name, "%.1f Hz", freq); d.binNames.push_back(name); }