From e54ae0217004c524998905b5e14a045052dfdcce Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Sun, 4 Sep 2016 15:29:41 +0200 Subject: [PATCH] Expose `Locations::remove()` to Lua Clearing location markers is a frequent task and should be automizable. For example it is handy to clear all the markers when restarting the recording from scratch after a failed recording. --- libs/ardour/luabindings.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index 03d24cbe94..3dce7f592a 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -557,6 +557,7 @@ LuaBindings::common (lua_State* L) .addFunction ("first_mark_after", &Locations::first_mark_after) .addFunction ("first_mark_before", &Locations::first_mark_before) .addFunction ("first_mark_at", &Locations::mark_at) + .addFunction ("remove", &Locations::remove) .addRefFunction ("marks_either_side", &Locations::marks_either_side) .addRefFunction ("find_all_between", &Locations::find_all_between) .endClass () -- 2.30.2