13
0

Check whether a VST param should be automated when building the list of automatables

This commit is contained in:
harrison 2020-08-20 12:12:17 -05:00
parent 0036785d5a
commit 365cc92cba
2 changed files with 4 additions and 1 deletions

View File

@ -106,6 +106,7 @@
#define effEditIdle 19
#define effEditTop 20
#define effProcessEvents 25
#define effCanBeAutomated 26
// the next one from http://asseca.com/vst-24-specs/index.html
#define effGetPlugCategory 35
#define effGetEffectName 45

View File

@ -661,7 +661,9 @@ VSTPlugin::automatable () const
set<Evoral::Parameter> ret;
for (uint32_t i = 0; i < parameter_count(); ++i) {
ret.insert (ret.end(), Evoral::Parameter(PluginAutomation, 0, i));
if (_plugin->dispatcher (_plugin, effCanBeAutomated, i, 0, NULL, 0)) {
ret.insert (ret.end(), Evoral::Parameter(PluginAutomation, 0, i));
}
}
return ret;