Skip to content

Commit

Permalink
Even smoother phase-randomisation when stretching past 2x
Browse files Browse the repository at this point in the history
  • Loading branch information
geraintluff committed May 1, 2023
1 parent a9112f4 commit 37db3a7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion signalsmith-stretch.h
Expand Up @@ -339,7 +339,6 @@ struct SignalsmithStretch {
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) {
Expand Down

0 comments on commit 37db3a7

Please sign in to comment.