82d12efca51a — Chris Cannam 2 months ago
Start with a phase reset; it gives better behaviour at start if we are initialised with ratio 1
1 files changed, 3 insertions(+), 0 deletions(-)

M src/finer/R3LiveShifter.cpp
M src/finer/R3LiveShifter.cpp +3 -0
@@ 117,6 117,9 @@ R3LiveShifter::initialise()
                 std::make_shared<ChannelScaleData>
                 (fftSize, m_guideConfiguration.longestFftSize);
         }
+        m_channelData[c]->guidance.phaseReset.present = true;
+        m_channelData[c]->guidance.phaseReset.f0 = 0.0;
+        m_channelData[c]->guidance.phaseReset.f1 = m_parameters.sampleRate / 2.0;
     }
 
     m_scaleData.clear();