comparison base/LogRange.cpp @ 266:2268963dabd1

* 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 8ff1ad4e7a9c
children 9525c9d7e54d
comparison
equal deleted inserted replaced
265:e08f486e8d8c 266:2268963dabd1
56 { 56 {
57 if (value == 0.f) return thresh; 57 if (value == 0.f) return thresh;
58 return log10f(fabsf(value)); 58 return log10f(fabsf(value));
59 } 59 }
60 60
61 float
62 LogRange::unmap(float value)
63 {
64 return powf(10.0, value);
65 }