From 5f2435665818184bd89c1904a38f99459c31063c Mon Sep 17 00:00:00 2001 From: xenakios Date: Tue, 28 Nov 2017 20:46:04 +0200 Subject: [PATCH] Init FFT windowing type --- Source/PS_Source/StretchSource.cpp | 1 + Source/PluginProcessor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/PS_Source/StretchSource.cpp b/Source/PS_Source/StretchSource.cpp index c00b93c..0dcfe91 100644 --- a/Source/PS_Source/StretchSource.cpp +++ b/Source/PS_Source/StretchSource.cpp @@ -563,6 +563,7 @@ void StretchAudioSource::setPlayRange(Range playrange, bool isloop) m_inputfile->seek(m_playrange.getStart()); m_seekpos = m_playrange.getStart(); ++m_param_change_count; + } bool StretchAudioSource::isLoopEnabled() diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 46747ab..7d184fd 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -84,6 +84,7 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor() m_ppar.freq_shift.enabled = true; m_stretch_source->setOnsetDetection(0.0); m_stretch_source->setLoopingEnabled(true); + m_stretch_source->setFFTWindowingType(1); addParameter(new AudioParameterFloat("mainvolume0", "Main volume", -24.0f, 12.0f, -3.0f)); // 0 addParameter(new AudioParameterFloat("stretchamount0", "Stretch amount", NormalisableRange(0.1f, 128.0f, 0.01f, 0.5),1.0f)); // 1