Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 1131:ee98d587cd1a spectrogram-minor-refactor
Sensible vertical scale and hybrid normalisation range in colour 3d plot
author | Chris Cannam |
---|---|
date | Tue, 02 Aug 2016 09:58:41 +0100 |
parents | 371320c9f8d9 |
children | 199049012fc6 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Tue Aug 02 09:20:16 2016 +0100 +++ b/layer/SpectrogramLayer.cpp Tue Aug 02 09:58:41 2016 +0100 @@ -2061,7 +2061,7 @@ double max = m_viewMags[v->getId()].getMax(); if (min < m_threshold) min = m_threshold; - if (max < min) max = min; + if (max <= min) max = min + 0.1; double dBmin = AudioLevel::multiplier_to_dB(min); double dBmax = AudioLevel::multiplier_to_dB(max);