diff options
author | Robin Gareus <robin@gareus.org> | 2017-01-19 19:35:55 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-01-19 19:35:55 +0100 |
commit | 758f183b99dadd173cc5b0f8b9e76f6cc3e02159 (patch) | |
tree | 6ff33dd8303b8bf394994eeaa0ba57e81edc7002 /scripts | |
parent | aaf441d18fc6df23ca781ae18708757ff58527e1 (diff) |
add delete x-run marker script
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/delete_xrun_markers.lua | 9 |
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 |