From d8f01e1eb8e5614b477d49a19fec0375f5b7259e Mon Sep 17 00:00:00 2001 From: Brent Baccala Date: Thu, 13 Nov 2025 12:55:57 -0500 Subject: [PATCH] MIDI PC/CC script: missed a 'local' declaration --- share/scripts/midi_pc_and_cc.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/share/scripts/midi_pc_and_cc.lua b/share/scripts/midi_pc_and_cc.lua index 3e72427b00..64d4e9fa2c 100644 --- a/share/scripts/midi_pc_and_cc.lua +++ b/share/scripts/midi_pc_and_cc.lua @@ -111,6 +111,7 @@ function roll_transport(value, location) Session:request_stop (false, false, ARDOUR.TransportRequestSource.TRS_UI) else -- default value of location is 0 (start of session) + local start_sample if not location then start_sample = 0 elseif type(location) == "string" then