2018-07-17 16:16:04 -04:00
|
|
|
ardour {
|
|
|
|
["type"] = "EditorAction",
|
2020-04-23 23:47:02 -04:00
|
|
|
name = "New Playlists",
|
2018-07-17 16:16:04 -04:00
|
|
|
license = "MIT",
|
|
|
|
author = "Ardour Lua Taskforce",
|
2020-04-23 23:47:02 -04:00
|
|
|
description = [[Prompts and builds a new playlist for every track in the session. Beware the operation cannot be cancelled.]]
|
2018-07-17 16:16:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|