mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
18 lines
435 B
Lua
18 lines
435 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
|
||
|
|
|
||
|
|
collectgarbage()
|
||
|
|
end end
|