diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-21 15:24:02 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-21 15:24:20 +0100 |
commit | bdf41b0bf5b2c5f43572550f9b538ea652a6a9e7 (patch) | |
tree | a11825405ec83691dbd270257649ea8dcbcc4255 /libs/ardour/vst_plugin.cc | |
parent | 5db22a33c1ec13a14dd6654bf08b0ecd377ae67d (diff) |
Implementations for Plugin-Preset-Load to set automation
Diffstat (limited to 'libs/ardour/vst_plugin.cc')
-rw-r--r-- | libs/ardour/vst_plugin.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index 2b3a98d3c8..44972151f0 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -446,8 +446,10 @@ VSTPlugin::load_user_preset (PresetRecord r) assert (index); assert (value); - - set_parameter (atoi (index->value().c_str()), atof (value->value().c_str ())); + const uint32_t p = atoi (index->value().c_str()); + const float v = atof (value->value().c_str ()); + set_parameter (p, v); + PresetPortSetValue (p, v); /* EMIT SIGNAL */ } } return true; |