Reverted Capture parameter to a normal parameter to again allow host MIDI learn etc. It is now instead ignored when saving the state tree. This may not fix the parameter being recalled when undoing in all hosts but this is the best that can be done with the plugin format limitations at this point.

This commit is contained in:
xenakios
2019-02-12 14:56:37 +02:00
parent 7f7259225f
commit d4a2247679
6 changed files with 21 additions and 38 deletions

View File

@ -19,9 +19,10 @@
#include <vector>
#include <memory>
#include <set>
#include "../JuceLibraryCode/JuceHeader.h"
const String g_plugintitle{ "PaulXStretch 1.3.0" };
const String g_plugintitle{ "PaulXStretch 1.2.4" };
using REALTYPE = float;
@ -115,10 +116,13 @@ inline void storeToTreeProperties(ValueTree dest, UndoManager* uman, AudioParame
if (par) dest.setProperty(par->paramID,(int)*par,uman);
}
inline void storeToTreeProperties(ValueTree dest, UndoManager* uman, const OwnedArray<AudioProcessorParameter>& pars)
inline void storeToTreeProperties(ValueTree dest, UndoManager* uman, const OwnedArray<AudioProcessorParameter>& pars,
const std::set<AudioProcessorParameter*>& ignorepars = {})
{
for (auto& e : pars)
{
if (ignorepars.count(e))
continue;
auto parf = dynamic_cast<AudioParameterFloat*>(e);
if (parf != nullptr)
storeToTreeProperties(dest, nullptr, parf);