mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
update lua-scripts:
* add an inline spectrum display * fix re-init HP/LP and Biquad * add some comments, labels etc
This commit is contained in:
parent
c50a0c5dd0
commit
ff0e1ac79b
5 changed files with 305 additions and 3 deletions
|
|
@ -7,15 +7,19 @@ ardour { ["type"] = "EditorAction", name = "Remove Unknown Plugins",
|
|||
}
|
||||
|
||||
function factory (params) return function ()
|
||||
-- iterate over all tracks and busses
|
||||
for route in Session:get_routes ():iter () do
|
||||
-- route is-a http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:Route
|
||||
local i = 0;
|
||||
repeat
|
||||
proc = route:nth_processor (i)
|
||||
-- proc is a http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:Processor
|
||||
-- try cast it to http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:UnknownProcessor
|
||||
if not proc:isnil () and not proc:to_unknownprocessor ():isnil () then
|
||||
route:remove_processor (proc, nil, true)
|
||||
else
|
||||
i = i + 1
|
||||
end
|
||||
until proc:isnil()
|
||||
until proc:isnil ()
|
||||
end
|
||||
end end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue