# HG changeset patch # User Chris Cannam # Date 1400518054 -3600 # Node ID 26d9a8b02adff5ef274cf4056f69d5f1fed88123 # Parent 8964b49206892bc0036167f96c159dab4d487bd2 Bin frequencies, and some comments diff -r 8964b4920689 -r 26d9a8b02adf .hgsubstate --- 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 diff -r 8964b4920689 -r 26d9a8b02adf src/Silvet.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); }