Vapor: add script to perform live rendering tests

This commit is contained in:
Robin Gareus 2024-03-04 17:00:00 +01:00
parent 53b951f6a9
commit 517d82a6f2
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
ardour {
["type"] = "EditorAction",
name = "Setup ADM Render",
author = "Ardour Team",
description = [[Set playback alignment to 512 samples to live render ADM]]
}
function factory () return function ()
-- ignore input systemic latency, no additional pre-roll
-- to fill buffers with input.
for r in Session:get_tracks():iter() do
r:input():disconnect_all (nil)
end
-- make surround-return announce additional latency to the next 512
-- cycle boundary (and delay the output accordingly).
Session:surround_master():surround_return():set_sync_and_align (true)
-- Mixbus: enforce latency pre-roll to be >= 1505 (latency of Atmos renderer)
-- this allows the Stem Export the Surround Bus.
-- (Mixbus tracks are aligned to master-out, not surrround out)
if Session:master_out().ch_post then
Session:master_out():ch_post ():to_latent():set_user_latency (1505)
end
end end
function icon (params) return function (ctx, width, height, fg)
local wh = math.min (width, height)
ctx:set_line_width (1.5)
ctx:set_source_rgba (ARDOUR.LuaAPI.color_to_rgba (fg))
ctx:arc (0.5 * width - wh * 0.3, 0.5 * height, wh * .275, -0.5 * math.pi , 0.5 * math.pi)
ctx:close_path ()
ctx:stroke ()
ctx:arc (0.5 * width + wh * 0.3, 0.5 * height, wh * .275, 0.5 * math.pi , 1.5 * math.pi)
ctx:close_path ()
ctx:stroke ()
end end