13
0
livetrax/share/scripts/new_playlist.lua
Robin Gareus 925be49b2d
Remove redundant collectgarbage() calls from scripts
Since 8112d6472e garbage is automatically collected
after running a Lua GUI script.
2020-03-10 23:31:20 +01:00

16 lines
417 B
Lua

ardour {
["type"] = "EditorAction",
name = "New Playlist",
license = "MIT",
author = "Ardour Lua Taskforce",
description = [[Prompts and builds a new playlist for every track in the session.]]
}
function factory () return function ()
for r in Session:get_tracks():iter() do
local rtav = Editor:rtav_from_route(r) -- lookup RTAV
Editor:new_playlists(rtav:to_timeaxisview())
end
end end