Store and restore zoomscrollbar positions. Readme change.

This commit is contained in:
xenakios
2018-02-14 18:38:54 +02:00
parent e3d893ee9e
commit 178d68b0ec
4 changed files with 10 additions and 2 deletions

View File

@ -225,6 +225,7 @@ ValueTree PaulstretchpluginAudioProcessor::getStateTree(bool ignoreoptions, bool
paramtree.setProperty("prebufamount", -1, nullptr);
paramtree.setProperty("loadfilewithstate", m_load_file_with_state, nullptr);
}
storeToTreeProperties(paramtree, nullptr, "waveviewrange", m_wave_view_range);
return paramtree;
}
@ -246,6 +247,7 @@ void PaulstretchpluginAudioProcessor::setStateFromTree(ValueTree tree)
}
m_stretch_source->setSpectrumProcessOrder(order);
}
getFromTreeProperties(tree, "waveviewrange", m_wave_view_range);
for (int i = 0; i < getNumParameters(); ++i)
{
auto par = getFloatParameter(i);