1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

VST3: Fixed program parameter automation not being recorded in Live

This commit is contained in:
ed 2021-01-13 09:28:22 +00:00
parent cd25daf892
commit 2b3d0c05f5

View file

@ -614,15 +614,21 @@ public:
{
auto programValue = roundToInt (toPlain (v));
if (! isPositiveAndBelow (programValue, owner.getNumPrograms())
|| programValue == owner.getCurrentProgram())
return false;
if (isPositiveAndBelow (programValue, owner.getNumPrograms()))
{
if (programValue != owner.getCurrentProgram())
owner.setCurrentProgram (programValue);
valueNormalized = v;
owner.setCurrentProgram (programValue);
changed();
if (valueNormalized != v)
{
valueNormalized = v;
changed();
return true;
return true;
}
}
return false;
}
void toString (Vst::ParamValue value, Vst::String128 result) const override