Browse Source

Store and recall the number of harmonics parameter. Seriously, have to make this stuff work in a more robust manner...

tags/1.1.0
xenakios 7 years ago
parent
commit
104d1bfd2e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      Source/PluginProcessor.cpp

+ 3
- 1
Source/PluginProcessor.cpp View File

@@ -204,6 +204,7 @@ ValueTree PaulstretchpluginAudioProcessor::getStateTree(bool ignoreoptions, bool
{
storeToTreeProperties(paramtree, nullptr, getFloatParameter(i));
}
storeToTreeProperties(paramtree, nullptr, getIntParameter(cpi_numharmonics));
storeToTreeProperties(paramtree, nullptr, m_outchansparam);
storeToTreeProperties(paramtree, nullptr, m_inchansparam);
storeToTreeProperties(paramtree, nullptr, getBoolParameter(cpi_bypass_stretch));
@@ -253,7 +254,8 @@ void PaulstretchpluginAudioProcessor::setStateFromTree(ValueTree tree)
{
getFromTreeProperties(tree,getFloatParameter(i));
}
getFromTreeProperties(tree, m_outchansparam);
getFromTreeProperties(tree, getIntParameter(cpi_numharmonics));
getFromTreeProperties(tree, m_outchansparam);
getFromTreeProperties(tree, m_inchansparam);
getFromTreeProperties(tree, getBoolParameter(cpi_bypass_stretch));
}


Loading…
Cancel
Save