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:
parent
cd25daf892
commit
2b3d0c05f5
1 changed files with 13 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue