Even smoother phase-randomisation when stretching past 2x

This commit is contained in:
Geraint 2023-05-01 23:10:54 +01:00
parent a9112f4f35
commit 37db3a75a4

View File

@ -339,7 +339,6 @@ private:
int bands = stft.bands();
bool randomTimeFactor = (timeFactor > maxCleanStretch);
timeFactor = std::min<Sample>(maxCleanStretch*2, timeFactor);
std::uniform_real_distribution<Sample> timeFactorDist(maxCleanStretch*2 - timeFactor, timeFactor);
if (newSpectrum) {