diff base/LogRange.h @ 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 1405f4a2caf3
line wrap: on
line diff
--- a/base/LogRange.h	Wed Jun 06 16:24:55 2007 +0000
+++ b/base/LogRange.h	Fri Jun 08 15:19:50 2007 +0000
@@ -33,6 +33,12 @@
      * value if the absolute value is zero.
      */
     static float map(float value, float thresh = -10);
+
+    /**
+     * Map a value from the logarithmic range back again.  This just
+     * means taking the value'th power of ten.
+     */
+    static float unmap(float value);
 };
 
 #endif