mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Update Lua script descriptions, rename some scripts
This commit is contained in:
parent
fcf4e3e9eb
commit
f72b05d3a5
25 changed files with 24 additions and 29 deletions
28
share/scripts/_transparent_regions.lua
Normal file
28
share/scripts/_transparent_regions.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
ardour {
|
||||
["type"] = "EditorHook",
|
||||
name = "Make all Regions Transparent",
|
||||
author = "Ardour Lua Task Force",
|
||||
description = "While the transport is looping, all regions become transparent.",
|
||||
}
|
||||
|
||||
function signals ()
|
||||
return LuaSignal.Set():add (
|
||||
{
|
||||
[LuaSignal.TransportStateChange] = true,
|
||||
[LuaSignal.TransportLooped] = true,
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
function factory ()
|
||||
return function (signal, ref, ...)
|
||||
local all_regions = ARDOUR.RegionFactory.regions()
|
||||
for _, r in all_regions:iter() do
|
||||
local ar = r:to_audioregion ();
|
||||
if ar:isnil () then goto next end
|
||||
if ar:opaque () then
|
||||
ar:set_opaque (false)
|
||||
end
|
||||
::next::
|
||||
end
|
||||
end end
|
||||
Loading…
Add table
Add a link
Reference in a new issue