Mercurial > hg > tony
diff src/Analyser.cpp @ 514:7b1dbed4eda8 v2.0
Fix incorrect reload of old Tony v1.0 files
author | Chris Cannam |
---|---|
date | Tue, 20 Oct 2015 12:55:09 +0100 |
parents | 93ce2193af31 |
children | 30fbc53d8150 |
line wrap: on
line diff
--- a/src/Analyser.cpp Mon Oct 19 14:30:39 2015 +0100 +++ b/src/Analyser.cpp Tue Oct 20 12:55:09 2015 +0100 @@ -278,8 +278,9 @@ spectrogram->setColourMap((int)ColourMapper::BlackOnWhite); spectrogram->setNormalization(SpectrogramLayer::NormalizeHybrid); -// spectrogram->setGain(100); - spectrogram->setGain(0.02f); + // This magical-looking scale factor happens to get us an + // identical display to Tony v1.0 + spectrogram->setGain(100.f / 4096.f); m_document->addLayerToView(m_pane, spectrogram); spectrogram->setLayerDormant(m_pane, true);