From b7770c8832a1809fe87ca658ff44ce25f4ad3faa Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Tue, 11 May 2021 17:20:12 +0100 Subject: [PATCH] Use the appropriate parameters --- src/StretcherImpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/StretcherImpl.cpp b/src/StretcherImpl.cpp index de7f084..19813a6 100644 --- a/src/StretcherImpl.cpp +++ b/src/StretcherImpl.cpp @@ -674,6 +674,8 @@ RubberBandStretcher::Impl::configure() Resampler::Parameters params; params.quality = Resampler::FastestTolerable; + params.dynamism = Resampler::RatioOftenChanging; + params.ratioChange = Resampler::SmoothRatioChange; params.maxBufferSize = 4096 * 16; params.debugLevel = m_debugLevel; @@ -818,6 +820,8 @@ RubberBandStretcher::Impl::reconfigure() Resampler::Parameters params; params.quality = Resampler::FastestTolerable; + params.dynamism = Resampler::RatioOftenChanging; + params.ratioChange = Resampler::SmoothRatioChange; params.maxBufferSize = m_sWindowSize; params.debugLevel = m_debugLevel;