Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
265:e08f486e8d8c | 266:2268963dabd1 |
---|---|
31 * Map a value onto a logarithmic range. This just means taking | 31 * Map a value onto a logarithmic range. This just means taking |
32 * the base-10 log of the absolute value, or using the threshold | 32 * the base-10 log of the absolute value, or using the threshold |
33 * value if the absolute value is zero. | 33 * value if the absolute value is zero. |
34 */ | 34 */ |
35 static float map(float value, float thresh = -10); | 35 static float map(float value, float thresh = -10); |
36 | |
37 /** | |
38 * Map a value from the logarithmic range back again. This just | |
39 * means taking the value'th power of ten. | |
40 */ | |
41 static float unmap(float value); | |
36 }; | 42 }; |
37 | 43 |
38 #endif | 44 #endif |