From bdf41b0bf5b2c5f43572550f9b538ea652a6a9e7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 21 Feb 2017 15:24:02 +0100 Subject: Implementations for Plugin-Preset-Load to set automation --- libs/ardour/luaproc.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/ardour/luaproc.cc') 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); -- cgit v1.2.3