From b6f5c0ea7d3757c04521deb0c0f3304638820077 Mon Sep 17 00:00:00 2001 From: xenakios Date: Tue, 13 Feb 2018 22:16:18 +0200 Subject: [PATCH] Shorten the FFT switch crossfade length. Remove commented out code. Formatting change. --- Source/PS_Source/Stretch.cpp | 9 ++++++--- Source/PS_Source/StretchSource.cpp | 2 +- Source/PluginEditor.cpp | 6 ------ 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Source/PS_Source/Stretch.cpp b/Source/PS_Source/Stretch.cpp index 726c37d..e73f7e9 100644 --- a/Source/PS_Source/Stretch.cpp +++ b/Source/PS_Source/Stretch.cpp @@ -28,11 +28,14 @@ FFT::FFT(int nsamples_, bool no_inverse) printf("WARNING: Odd sample size on FFT::FFT() (%d)",nsamples); }; smp.resize(nsamples); - for (int i = 0; i < nsamples; i++) smp[i] = 0.0; + for (int i = 0; i < nsamples; i++) + smp[i] = 0.0; freq.resize(nsamples/2+1); - for (int i=0;idrawChannels(g, { 0,m_topmargin,getWidth(),getHeight() - m_topmargin }, thumblen*m_view_range.getStart(), thumblen*m_view_range.getEnd(), 1.0f); } - //g.setColour(Colours::darkgrey); - //m_thumb->drawChannels(g, { 0,m_topmargin,getWidth(),getHeight()-m_topmargin }, - // 0.0, thumblen, 1.0f); g.setColour(Colours::white.withAlpha(0.5f)); double sel_len = m_time_sel_end - m_time_sel_start; //if (sel_len > 0.0 && sel_len < 1.0) @@ -530,7 +525,6 @@ void WaveformComponent::timerCallback() void WaveformComponent::setFileCachedRange(std::pair, Range> rng) { m_file_cached = rng; - //repaint(); } void WaveformComponent::setTimerEnabled(bool b)