From 2c23d52c94b757c02f8be8994271fd4e8a9d3228 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Thu, 26 May 2022 17:42:45 +0100 Subject: [PATCH 1/2] Clarify --- src/finer/R3StretcherImpl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/finer/R3StretcherImpl.cpp b/src/finer/R3StretcherImpl.cpp index 9c4236e..514e62e 100644 --- a/src/finer/R3StretcherImpl.cpp +++ b/src/finer/R3StretcherImpl.cpp @@ -231,9 +231,8 @@ R3StretcherImpl::process(const float *const *input, size_t samples, bool final) m_parameters.logger("R3StretcherImpl::process: WARNING: Forced to increase input buffer size. Either setMaxProcessSize was not properly called or process is being called repeatedly without retrieve."); size_t newSize = m_channelData[0]->inbuf->getSize() - ws + samples; for (int c = 0; c < m_parameters.channels; ++c) { - m_channelData[c]->inbuf = - std::unique_ptr> - (m_channelData[c]->inbuf->resized(newSize)); + auto newBuf = m_channelData[c]->inbuf->resized(newSize); + m_channelData[c]->inbuf = std::unique_ptr>(newBuf); } } From a278acc5d2e3fa6d61b595fb4a87ba3a779cd222 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Thu, 26 May 2022 17:42:53 +0100 Subject: [PATCH 2/2] Print note, and use finer mode --- main/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/main.cpp b/main/main.cpp index 25e66ac..7e576e1 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -499,6 +499,11 @@ int main(int argc, char **argv) } RubberBandStretcher::Options options = 0; + + //!!! + cerr << "\n\n\n\n\n*** WARNING - THIS IS A TEST VERSION ONLY\n\n\n\n\n" << endl; + options = RubberBandStretcher::OptionEngineFiner; + if (realtime) options |= RubberBandStretcher::OptionProcessRealTime; if (!lamination) options |= RubberBandStretcher::OptionPhaseIndependent; if (longwin) options |= RubberBandStretcher::OptionWindowLong;