13
0

Vapor: ADM/BWF meta-data is not to be interpolated

This commit is contained in:
Robin Gareus 2024-02-27 17:41:23 +01:00
parent 734d365949
commit 3c61d1150b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -105,6 +105,7 @@ function factory () return function ()
print ("Setting Metadata") print ("Setting Metadata")
for obj, d in pairs (meta) do for obj, d in pairs (meta) do
local r = Session:get_remote_nth_route (obj) local r = Session:get_remote_nth_route (obj)
if r:isnil () then goto skip end if r:isnil () then goto skip end
@ -113,7 +114,12 @@ function factory () return function ()
assert(1 == s:n_pannables ()) assert(1 == s:n_pannables ())
local p = s:pannable (0) local p = s:pannable (0)
local thin = 0.00001 p.pan_pos_x:to_ctrl():list():set_interpolation (Evoral.InterpolationStyle.Discrete)
p.pan_pos_y:to_ctrl():list():set_interpolation (Evoral.InterpolationStyle.Discrete)
p.pan_pos_z:to_ctrl():list():set_interpolation (Evoral.InterpolationStyle.Discrete)
p.pan_snap:to_ctrl():list():set_interpolation (Evoral.InterpolationStyle.Discrete)
local thin = 0 -- 0.00001
ARDOUR.LuaAPI.set_automation_data (p.pan_pos_x, d['x'], thin) ARDOUR.LuaAPI.set_automation_data (p.pan_pos_x, d['x'], thin)
ARDOUR.LuaAPI.set_automation_data (p.pan_pos_y, d['y'], thin) ARDOUR.LuaAPI.set_automation_data (p.pan_pos_y, d['y'], thin)