summaryrefslogtreecommitdiff
path: root/share/scripts/new_playlist.lua
blob: 7d86c5ba7ce0f492debb6d1ec99c00552b3ff4f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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