Mercurial > hg > svgui
comparison layer/SpectrumLayer.cpp @ 1257:14dcdc596baf
Remove debug out
author | Chris Cannam |
---|---|
date | Sun, 12 Mar 2017 13:37:01 +0000 |
parents | 5a10e9d924d4 |
children | a34a2a25907c |
comparison
equal
deleted
inserted
replaced
1256:5a10e9d924d4 | 1257:14dcdc596baf |
---|---|
300 double | 300 double |
301 SpectrumLayer::getFrequencyForX(const LayerGeometryProvider *v, double x) const | 301 SpectrumLayer::getFrequencyForX(const LayerGeometryProvider *v, double x) const |
302 { | 302 { |
303 if (!m_sliceableModel) return 0; | 303 if (!m_sliceableModel) return 0; |
304 double bin = getBinForX(v, x); | 304 double bin = getBinForX(v, x); |
305 cerr << "bin = " << bin << endl; | |
306 return (m_sliceableModel->getSampleRate() * bin) / | 305 return (m_sliceableModel->getSampleRate() * bin) / |
307 (m_sliceableModel->getHeight() * 2); | 306 (m_sliceableModel->getHeight() * 2); |
308 } | 307 } |
309 | 308 |
310 double | 309 double |