move new_playlist Lua script from mixbus and add some garbage collection
This commit is contained in:
parent
a54a501ad6
commit
fa17364977
17
scripts/new_playlist.lua
Normal file
17
scripts/new_playlist.lua
Normal file
@ -0,0 +1,17 @@
|
||||
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
|
@ -82,4 +82,5 @@ function factory() return function()
|
||||
end
|
||||
end
|
||||
::end_script::
|
||||
collectgarbage()
|
||||
end end
|
||||
|
@ -403,5 +403,5 @@ function factory() return function()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
collectgarbage()
|
||||
end end
|
||||
|
@ -101,6 +101,6 @@ function factory () return function ()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
::script_end::
|
||||
collectgarbage()
|
||||
end end
|
||||
|
Loading…
Reference in New Issue
Block a user