From c6d4fafcd95504da2b94f54f05561036e7806699 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 10 Apr 2016 23:01:44 +0200 Subject: update lua related doc, add missing bindings --- libs/ardour/ardour/lua_api.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (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 840c90081b..92e63d7692 100644 --- a/libs/ardour/ardour/lua_api.h +++ b/libs/ardour/ardour/lua_api.h @@ -94,11 +94,11 @@ namespace ARDOUR { namespace LuaAPI { bool set_plugin_insert_param (boost::shared_ptr pi, uint32_t which, float val); /** - * A convenience function to get a AutomationControList and ParamaterDescriptor + * A convenience function to get a Automation Lists and ParamaterDescriptor * for a given plugin control. * * This is equivalent to the following lua code - * + * @code * function (processor, param_id) * local plugininsert = processor:to_insert () * local plugin = plugininsert:plugin(0) @@ -108,7 +108,14 @@ namespace ARDOUR { namespace LuaAPI { * local acl = ac:alist() * return ac:alist(), ac:to_ctrl():list(), t[2] * end - * + * @endcode + * + * Example usage: get 3rd input parameter of first plugin on the given route + * (Ardour starts counting at zero). + * @code + * local al, cl, pd = ARDOUR.LuaAPI.plugin_automation (route:nth_plugin (0), 3) + * @endcode + * @returns 3 parameters: AutomationList, ControlList, ParamaterDescriptor */ int plugin_automation (lua_State *lua); } } /* namespace */ -- cgit v1.2.3