Save and restore more parameters

This commit is contained in:
xenakios 2018-02-21 20:41:51 +02:00
parent 715a753893
commit 73c58f6067
2 changed files with 7 additions and 2 deletions

View File

@ -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)

View File

@ -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