mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +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
11
share/scripts/s_replaceplugin.lua
Normal file
11
share/scripts/s_replaceplugin.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
ardour { ["type"] = "Snippet", name = "Replace Plugin" }
|
||||
|
||||
function factory () return function ()
|
||||
|
||||
route = Session:get_remote_nth_route(1)
|
||||
old = route:nth_plugin(0)
|
||||
new = ARDOUR.LuaAPI.new_plugin(Session, "http://gareus.org/oss/lv2/fil4#stereo", ARDOUR.PluginType.LV2, "");
|
||||
route:replace_processor (old, new, nil)
|
||||
old = nil new = nil -- explicitly drop references (unless they're local vars)
|
||||
|
||||
end end
|
||||
Loading…
Add table
Add a link
Reference in a new issue