Optimize automation-event process splitting
[ardour.git] / scripts / new_playlist.lua
1 ardour {
2         ["type"]    = "EditorAction",
3         name        = "New Playlist",
4         license     = "MIT",
5         author      = "Ardour Lua Taskforce",
6         description = [[Prompts and builds a new playlist for every track in the session.]]
7 }
8
9 function factory () return function ()
10
11         for r in Session:get_tracks():iter() do
12                 local rtav = Editor:rtav_from_route(r) -- lookup RTAV
13                 Editor:new_playlists(rtav:to_timeaxisview())
14         end
15
16 collectgarbage()
17 end end