Mercurial > hg > silvet
changeset 158:26d9a8b02adf
Bin frequencies, and some comments
author | Chris Cannam |
---|---|
date | Mon, 19 May 2014 17:47:34 +0100 |
parents | 8964b4920689 |
children | 9d44ed673b85 |
files | .hgsubstate src/Silvet.cpp |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgsubstate Fri May 16 14:37:20 2014 +0100 +++ b/.hgsubstate Mon May 19 17:47:34 2014 +0100 @@ -1,2 +1,2 @@ a2621605a8c2119bb063c59e83f4fe792a58e4ac bqvec -a64fc8cb393858e7eee79a164d3a37e4328b523f constant-q-cpp +3f20b57ee15f18db05c8c911a1c90baaf131292f constant-q-cpp
--- 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); }