From eb928b05e98260d6e2079b104b75267058633a1d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 27 Sep 2017 05:03:10 +0200 Subject: More s/frame/sample/ -- Lua Scripts Sadly this breaks existing loaded scripts. C'est la vie. --- scripts/s_fader_automation.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/s_fader_automation.lua') diff --git a/scripts/s_fader_automation.lua b/scripts/s_fader_automation.lua index a9e0afe3f0..3a9cb30eef 100644 --- a/scripts/s_fader_automation.lua +++ b/scripts/s_fader_automation.lua @@ -1,8 +1,8 @@ ardour { ["type"] = "Snippet", name = "Fader Automation" } function factory () return function () - local playhead = Session:transport_frame () - local samplerate = Session:nominal_frame_rate () + local playhead = Session:transport_sample () + local samplerate = Session:nominal_sample_rate () -- get selected tracks rl = Editor:get_selection ().tracks:routelist () -- cgit v1.2.3