diff --git a/share/scripts/_find_nonzero_sample.lua b/share/scripts/_find_nonzero_sample.lua index b79f832c9c..485199b1fc 100644 --- a/share/scripts/_find_nonzero_sample.lua +++ b/share/scripts/_find_nonzero_sample.lua @@ -25,7 +25,8 @@ function factory () return function () -- to read the Region data, we use the Readable interface of the Region -- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:Readable - local rd = r:to_readable () + local a = r.to_audioregion() + local rd = a:to_readable () local n_samples = rd:readable_length () local n_channels = rd:n_channels () diff --git a/share/scripts/rubberband_swing.lua b/share/scripts/rubberband_swing.lua index 52ce2c1bcc..35a25a0915 100644 --- a/share/scripts/rubberband_swing.lua +++ b/share/scripts/rubberband_swing.lua @@ -63,7 +63,7 @@ function factory () return function () local rb = ARDOUR.LuaAPI.Rubberband (ar, false) -- the rubberband-filter also implements the readable API. - -- https://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:Readable + -- https://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:AudioReadable -- This allows to read from the master-source of the given audio-region. -- Any prior time-stretch or pitch-shift are ignored when reading, however -- processing retains the previous settings diff --git a/share/scripts/s_region_gain.lua b/share/scripts/s_region_gain.lua index 87a1760b0f..35ab7c9210 100644 --- a/share/scripts/s_region_gain.lua +++ b/share/scripts/s_region_gain.lua @@ -22,8 +22,9 @@ function factory () return function () end -- to read the Region data, we use the Readable interface of the Region - -- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:Readable - local rd = r:to_readable () + -- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:AudioReadable + local a = r.to_audioregion + local rd = a:to_readable () local n_samples = rd:readable_length () local n_channels = rd:n_channels ()