From a3c2a07e5b08eff961c4cf13b15bc6155f2fa9ef Mon Sep 17 00:00:00 2001 From: xenakios Date: Thu, 14 Dec 2017 05:02:04 +0200 Subject: [PATCH] Enable compressor as needed. Apply harmonics bandwidth and Gauss mode --- Source/PluginProcessor.cpp | 6 +++++- paulstretchplugin.jucer | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 18dbf1e..63c892b 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -83,6 +83,7 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor() m_ppar.pitch_shift.enabled = true; m_ppar.freq_shift.enabled = true; m_ppar.filter.enabled = true; + m_ppar.compressor.enabled = true; m_stretch_source->setOnsetDetection(0.0); m_stretch_source->setLoopingEnabled(true); m_stretch_source->setFFTWindowingType(1); @@ -341,10 +342,13 @@ void PaulstretchpluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, M m_ppar.freq_shift.Hz = *getFloatParameter(cpi_frequencyshift); m_ppar.spread.enabled = *getFloatParameter(cpi_spreadamount) > 0.0f; m_ppar.spread.bandwidth = *getFloatParameter(cpi_spreadamount); - m_ppar.compressor.power = *getFloatParameter(cpi_compress); + m_ppar.compressor.enabled = *getFloatParameter(cpi_compress)>0.0f; + m_ppar.compressor.power = *getFloatParameter(cpi_compress); m_ppar.harmonics.enabled = *getFloatParameter(cpi_numharmonics)>=1.0; m_ppar.harmonics.nharmonics = *getFloatParameter(cpi_numharmonics); m_ppar.harmonics.freq = *getFloatParameter(cpi_harmonicsfreq); + m_ppar.harmonics.bandwidth = *getFloatParameter(cpi_harmonicsbw); + m_ppar.harmonics.gauss = getParameter(cpi_harmonicsgauss); m_ppar.octave.om2 = *getFloatParameter(cpi_octavesm2); m_ppar.octave.om1 = *getFloatParameter(cpi_octavesm1); m_ppar.octave.o0 = *getFloatParameter(cpi_octaves0); diff --git a/paulstretchplugin.jucer b/paulstretchplugin.jucer index 31761fc..1f3c8b7 100644 --- a/paulstretchplugin.jucer +++ b/paulstretchplugin.jucer @@ -59,7 +59,7 @@ linkTimeOptimisation="0" targetName="paulstretchplugin" headerPath="Source/PS_Source Source/WDL " osxCompatibility="10.9 SDK" osxArchitecture="64BitIntel" cppLibType="libc++" libraryPath="/usr/local/Cellar/fftw/3.3.6-pl2/lib" defines="JUCE_NO_DEPRECATION_WARNINGS" - auBinaryLocation="/Library/Audio/Plug-Ins/Components"/> + auBinaryLocation="$(HOME)/Library/Audio/Plug-Ins/Components"/>