From bfebad3dce3c4aeb634a2979f0785b2713b093a7 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 31 Jan 2017 10:35:37 -0600 Subject: Expose a new lua hook for resetting a plugin processor ( convenience func only: this avoids the necessity of an extra cast to PlugInsert ) --- libs/ardour/ardour/lua_api.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libs/ardour/ardour/lua_api.h') diff --git a/libs/ardour/ardour/lua_api.h b/libs/ardour/ardour/lua_api.h index f56a640ca1..c5ce0986ce 100644 --- a/libs/ardour/ardour/lua_api.h +++ b/libs/ardour/ardour/lua_api.h @@ -99,6 +99,15 @@ namespace ARDOUR { namespace LuaAPI { */ float get_processor_param (boost::shared_ptr proc, uint32_t which, bool &ok); + /** reset a processor to its default values (only works for plugins ) + * + * This is a wrapper which looks up the Processor by plugin-insert. + * + * @param proc Plugin-Insert + * @returns true on success, false when the processor is not a plugin + */ + bool reset_processor_to_default (boost::shared_ptr proc); + /** set a plugin control-input parameter value * * This is a wrapper around set_processor_param which looks up the Processor by plugin-insert. -- cgit v1.2.3