Mercurial > hg > sonic-visualiser
comparison transform/FeatureExtractionPluginTransform.cpp @ 149:37cb005f7c40
* FFT: fix invalid write of normalisation factor in compact mode of disc cache
* FFT: fix range problem for normalisation factor in compact mode (it was
stored as an unsigned scaled from an assumed float range of 0->1, which
is not very plausible and not accurate enough even if true -- use a float
instead)
* Spectrogram: fix vertical zoom behaviour for log frequency spectrograms:
make the thing in the middle of the display remain in the middle after zoom
* Overview widget: don't update the detailed waveform if still decoding the
audio file (too expensive to do all those redraws)
author | Chris Cannam |
---|---|
date | Fri, 08 Jun 2007 15:19:50 +0000 |
parents | 0c22273a1d8c |
children | 4c120dfffe1d |
comparison
equal
deleted
inserted
replaced
148:0c22273a1d8c | 149:37cb005f7c40 |
---|---|
307 if (blockFrame - int(m_context.blockSize)/2 > endFrame) break; | 307 if (blockFrame - int(m_context.blockSize)/2 > endFrame) break; |
308 } else { | 308 } else { |
309 if (blockFrame >= endFrame) break; | 309 if (blockFrame >= endFrame) break; |
310 } | 310 } |
311 | 311 |
312 std::cerr << "FeatureExtractionPluginTransform::run: blockFrame " | 312 // std::cerr << "FeatureExtractionPluginTransform::run: blockFrame " |
313 << blockFrame << std::endl; | 313 // << blockFrame << std::endl; |
314 | 314 |
315 long completion = | 315 long completion = |
316 (((blockFrame - startFrame) / m_context.stepSize) * 99) / | 316 (((blockFrame - startFrame) / m_context.stepSize) * 99) / |
317 ( (endFrame - startFrame) / m_context.stepSize); | 317 ( (endFrame - startFrame) / m_context.stepSize); |
318 | 318 |