add/update lua scripts

This commit is contained in:
Robin Gareus 2016-03-23 23:45:39 +01:00
parent dafdf87b79
commit 9ed7793326
4 changed files with 50 additions and 44 deletions

View file

@ -0,0 +1,11 @@
ardour { ["type"] = "Snippet", name = "Replace Plugin" }
function factory () return function ()
route = Session:route_by_remote_id(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