Expose `Locations::remove()` to Lua
authorJohannes Mueller <github@johannes-mueller.org>
Sun, 4 Sep 2016 13:29:41 +0000 (15:29 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 12 Sep 2016 09:10:40 +0000 (11:10 +0200)
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

index 03d24cbe949fa49d939be671730dd367ac62645c..3dce7f592a1e0d977847c7eeccbe53349d24b202 100644 (file)
@@ -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 ()