summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-01-19 19:35:55 +0100
committerRobin Gareus <robin@gareus.org>2017-01-19 19:35:55 +0100
commit758f183b99dadd173cc5b0f8b9e76f6cc3e02159 (patch)
tree6ff33dd8303b8bf394994eeaa0ba57e81edc7002 /scripts
parentaaf441d18fc6df23ca781ae18708757ff58527e1 (diff)
add delete x-run marker script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/delete_xrun_markers.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/delete_xrun_markers.lua b/scripts/delete_xrun_markers.lua
new file mode 100644
index 0000000000..2530ec2a8e
--- /dev/null
+++ b/scripts/delete_xrun_markers.lua
@@ -0,0 +1,9 @@
+ardour { ["type"] = "EditorAction", name = "Delete xrun markers", author = "Ardour Team", description = [[Delete all xrun markers in the current session]] }
+
+function factory () return function ()
+ for l in Session:locations():list():iter() do
+ if l:is_mark() and string.find (l:name(), "^xrun%d*$") then
+ Session:locations():remove (l);
+ end
+ end
+end end