diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index e87bdb6..d76f599 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -145,7 +145,7 @@ void PaulstretchpluginAudioProcessorEditor::resized() int w = getWidth(); int xoffs = 1; int yoffs = 30; - int div = w / 4; + int div = w / 5; //std::vector> layout; //layout.emplace_back(cpi_capture_enabled, cpi_passthrough, cpi_pause_enabled, cpi_freeze); //layout.emplace_back(cpi_main_volume, cpi_num_inchans, cpi_num_outchans); @@ -158,6 +158,8 @@ void PaulstretchpluginAudioProcessorEditor::resized() m_parcomps[cpi_pause_enabled]->setBounds(xoffs, yoffs, div-1, 24); xoffs += div; m_parcomps[cpi_freeze]->setBounds(xoffs, yoffs, div - 1, 24); + xoffs += div; + m_parcomps[cpi_bypass_stretch]->setBounds(xoffs, yoffs, div - 1, 24); xoffs = 1; yoffs += 25; div = w / 3; diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 67f24fe..01714e6 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -142,6 +142,7 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor() addParameter(new AudioParameterBool("markdirty0", "Internal (don't use)", false)); // 31 m_inchansparam = new AudioParameterInt("numinchans0", "Num ins", 2, 8, 2); // 32 addParameter(m_inchansparam); // 32 + addParameter(new AudioParameterBool("bypass_stretch0", "Bypass stretch", false)); // 33 #ifdef SOUNDRANGE_OFFSET_ENABLED addParameter(new AudioParameterFloat("playrangeoffset_0", "Play offset", 0.0f, 1.0f, 0.0f)); // 33 #endif @@ -151,7 +152,7 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor() setPreBufferAmount(2); startTimer(1, 50); m_show_technical_info = m_propsfile->m_props_file->getBoolValue("showtechnicalinfo", false); - m_stretch_source->setPreviewDry(true); + } PaulstretchpluginAudioProcessor::~PaulstretchpluginAudioProcessor() @@ -537,7 +538,7 @@ void PaulstretchpluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, M return; m_stretch_source->setMainVolume(*getFloatParameter(cpi_main_volume)); m_stretch_source->setRate(*getFloatParameter(cpi_stretchamount)); - + m_stretch_source->setPreviewDry(*getBoolParameter(cpi_bypass_stretch)); setFFTSize(*getFloatParameter(cpi_fftsize)); m_ppar.pitch_shift.cents = *getFloatParameter(cpi_pitchshift) * 100.0; m_ppar.freq_shift.Hz = *getFloatParameter(cpi_frequencyshift); diff --git a/Source/PluginProcessor.h b/Source/PluginProcessor.h index 0a21fec..55c346c 100644 --- a/Source/PluginProcessor.h +++ b/Source/PluginProcessor.h @@ -58,7 +58,7 @@ const int cpi_max_capture_len = 29; const int cpi_passthrough = 30; const int cpi_markdirty = 31; const int cpi_num_inchans = 32; -const int cpi_playrangeoffset = 33; +const int cpi_bypass_stretch = 33; class MyPropertiesFile { diff --git a/readme.txt b/readme.txt index 2e8096d..b90fd5f 100644 --- a/readme.txt +++ b/readme.txt @@ -10,6 +10,7 @@ History : 02-21-2018 1.0.2 -Show approximate stretched output duration in info label (only valid if the stretch amount is not automated in the host) + -Allow previewing the source sound unprocessed 02-16-2018 1.0.1 -Increased maximum number of input channels to 8 -Added zoom/scroll bar for waveform