mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +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:
parent
7f0937a7df
commit
905ea0ce22
@ -4626,8 +4626,12 @@ void TrackPanel::HandleWaveTrackVZoom
|
|||||||
scale = (settings.GetScale(min, max, rate, false));
|
scale = (settings.GetScale(min, max, rate, false));
|
||||||
const int fftLength = settings.GetFFTLength();
|
const int fftLength = settings.GetFFTLength();
|
||||||
const float binSize = rate / fftLength;
|
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;
|
minBand = minBins * binSize;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user