Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 383:b35184d0dfe5
...
author | Chris Cannam |
---|---|
date | Fri, 09 May 2008 12:39:02 +0000 |
parents | 06b5f110c5d2 |
children | 2ed4e572d0d4 |
comparison
equal
deleted
inserted
replaced
382:06b5f110c5d2 | 383:b35184d0dfe5 |
---|---|
2203 } | 2203 } |
2204 mag.sample(value); | 2204 mag.sample(value); |
2205 value *= m_gain; | 2205 value *= m_gain; |
2206 } | 2206 } |
2207 | 2207 |
2208 /* | |
2208 float v2 = value; | 2209 float v2 = value; |
2209 | 2210 |
2210 //!!! | 2211 //!!! |
2211 | |
2212 value = 0.f; | 2212 value = 0.f; |
2213 if (m_colourScale == PhaseColourScale) { | 2213 if (m_colourScale == PhaseColourScale) { |
2214 value = fft->getPhaseAt(s, q); | 2214 value = fft->getPhaseAt(s, q); |
2215 } else if (m_normalizeColumns) { | 2215 } else if (m_normalizeColumns) { |
2216 value = fft->getNormalizedMagnitudeAt(s, q); | 2216 value = fft->getNormalizedMagnitudeAt(s, q); |
2223 } | 2223 } |
2224 | 2224 |
2225 if (value != v2) { | 2225 if (value != v2) { |
2226 std::cout << "old = " << value << " new = " << v2 << " at y = " << q << std::endl; | 2226 std::cout << "old = " << value << " new = " << v2 << " at y = " << q << std::endl; |
2227 } | 2227 } |
2228 | 2228 */ |
2229 if (interpolate) { | 2229 if (interpolate) { |
2230 | 2230 |
2231 int ypi = y0i; | 2231 int ypi = y0i; |
2232 if (q < maxbin - 1) ypi = int(yval[q + 2 - minbin]); | 2232 if (q < maxbin - 1) ypi = int(yval[q + 2 - minbin]); |
2233 | 2233 |