mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
lua: changes to a few Lua scripts because of Readable->AudioRedable and AudioRegion as IS-A AudioReader API changes
This commit is contained in:
parent
b2a4fe1b50
commit
6481b555ea
3 changed files with 6 additions and 4 deletions
|
|
@ -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 ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue