summaryrefslogtreecommitdiff
path: root/libs/ardour/luabindings.cc
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2016-09-04 15:29:41 +0200
committerRobin Gareus <robin@gareus.org>2016-09-12 11:10:40 +0200
commite54ae0217004c524998905b5e14a045052dfdcce (patch)
tree88621893e7a836d21fcd7bd851cea767697cfa09 /libs/ardour/luabindings.cc
parent98d9887adbd4ece8e24c7189ee5b0e63313c9eed (diff)
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.
Diffstat (limited to 'libs/ardour/luabindings.cc')
-rw-r--r--libs/ardour/luabindings.cc1
1 files changed, 1 insertions, 0 deletions
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 ()