diff 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
line wrap: on
line diff
--- a/base/LogRange.cpp	Wed Jun 06 16:24:55 2007 +0000
+++ b/base/LogRange.cpp	Fri Jun 08 15:19:50 2007 +0000
@@ -58,3 +58,8 @@
     return log10f(fabsf(value));
 }
 
+float
+LogRange::unmap(float value)
+{
+    return powf(10.0, value);
+}