mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Also move Lua scripts to share subfolder
This commit is contained in:
parent
bf649cd68a
commit
180843f9bd
129 changed files with 2 additions and 2 deletions
16
share/scripts/_region_transients.lua
Normal file
16
share/scripts/_region_transients.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
ardour { ["type"] = "Snippet", name = "Region Transient List" }
|
||||
|
||||
function factory () return function ()
|
||||
local sel = Editor:get_selection ()
|
||||
for r in sel.regions:regionlist ():iter () do
|
||||
local region_pos = r:position()
|
||||
local region_off = r:start()
|
||||
print (r:name(), r:position(), r:start())
|
||||
local trans = r:transients()
|
||||
for t in trans:iter() do
|
||||
-- print absolute timeline position of transients
|
||||
print (t + region_pos - region_off)
|
||||
end
|
||||
print ("----")
|
||||
end
|
||||
end end
|
||||
Loading…
Add table
Add a link
Reference in a new issue