diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 01714e6..b1c01e5 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -211,6 +211,8 @@ ValueTree PaulstretchpluginAudioProcessor::getStateTree(bool ignoreoptions, bool } } paramtree.setProperty(m_outchansparam->paramID, (int)*m_outchansparam, nullptr); + paramtree.setProperty(m_inchansparam->paramID, (int)*m_inchansparam, nullptr); + paramtree.setProperty(getBoolParameter(cpi_bypass_stretch)->paramID, (bool)*getBoolParameter(cpi_bypass_stretch), nullptr); if (m_current_file != File() && ignorefile == false) { paramtree.setProperty("importedfile", m_current_file.getFullPathName(), nullptr); @@ -264,7 +266,10 @@ void PaulstretchpluginAudioProcessor::setStateFromTree(ValueTree tree) } if (tree.hasProperty(m_outchansparam->paramID)) *m_outchansparam = tree.getProperty(m_outchansparam->paramID, 2); - + if (tree.hasProperty(m_inchansparam->paramID)) + *m_inchansparam = tree.getProperty(m_inchansparam->paramID, 2); + if (tree.hasProperty(getBoolParameter(cpi_bypass_stretch)->paramID)) + *getBoolParameter(cpi_bypass_stretch) = tree.getProperty(getBoolParameter(cpi_bypass_stretch)->paramID, false); } int prebufamt = tree.getProperty("prebufamount", 2); if (prebufamt == -1) diff --git a/readme.txt b/readme.txt index b90fd5f..aea93bc 100644 --- a/readme.txt +++ b/readme.txt @@ -10,7 +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 + -Added stretch processing bypass parameter 02-16-2018 1.0.1 -Increased maximum number of input channels to 8 -Added zoom/scroll bar for waveform