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/luaproc.cc | |
parent | 5db22a33c1ec13a14dd6654bf08b0ecd377ae67d (diff) |
Implementations for Plugin-Preset-Load to set automation
Diffstat (limited to 'libs/ardour/luaproc.cc')
-rw-r--r-- | libs/ardour/luaproc.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index 4bc2c00c8b..9b51565b9c 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -1125,7 +1125,10 @@ LuaProc::load_preset (PresetRecord r) assert (index); assert (value); LocaleGuard lg; - 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 Plugin::load_preset(r); |