1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-11 09:03:36 +02:00

Fix - bandwidth may be zero.

This commit is contained in:
stevethefiddle@gmail.com
2014-12-19 16:18:21 +00:00
parent 9fc254a627
commit 5d526a8009

View File

@@ -591,7 +591,7 @@ bool EffectNyquist::Process()
centerHz.Printf(wxT("(float %g)"), sqrt(mF0 * mF1));
}
if ((mF0 > 0.0) && (mF1 > mF0)) {
if ((mF0 > 0.0) && (mF1 >= mF0)) {
bandwidth.Printf(wxT("(float %g)"), log(mF1 / mF0)/log(2.0));
}