1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-10 00:51:13 +02:00

Fix: Nyquist PEAK property when NIL & Stereo

Fixes failure of Nyquist Generate effects when stereo track
selected and no time selection.
This commit is contained in:
Steve Daulton 2017-08-08 11:55:47 +01:00
parent 95560ad510
commit da3f28118b

View File

@ -1021,7 +1021,7 @@ bool NyquistEffect::ProcessOne()
if (!std::isinf(maxPeak) && !std::isnan(maxPeak) && (maxPeak < FLT_MAX)) {
peakString += wxString::Format(wxT("(float %s) "), Internat::ToString(maxPeak).c_str());
} else {
peakString += wxT("nil");
peakString += wxT("nil ");
}
float rms = mCurTrack[i]->GetRMS(mT0, mT1); // may throw