1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

Bug 1208 - Spectrogram vertical zoom-in is limited to ten bins

Changed so that it is now limited to 1 bin.  Now it is obvious if you are zoomed in too far.
This commit is contained in:
James Crook 2015-09-21 14:54:23 +01:00
parent 7f0937a7df
commit 905ea0ce22

View File

@ -4626,8 +4626,12 @@ void TrackPanel::HandleWaveTrackVZoom
scale = (settings.GetScale(min, max, rate, false));
const int fftLength = settings.GetFFTLength();
const float binSize = rate / fftLength;
const int minBins =
std::min(10, fftLength / 2); //minimum 10 freq bins, unless there are less
// JKC: Following discussions of Bug 1208 I'm allowing zooming in
// down to one bin.
// const int minBins =
// std::min(10, fftLength / 2); //minimum 10 freq bins, unless there are less
const int minBins = 1;
minBand = minBins * binSize;
}
else