diff options
Diffstat (limited to 'share/scripts/s_replaceplugin.lua')
-rw-r--r-- | share/scripts/s_replaceplugin.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/share/scripts/s_replaceplugin.lua b/share/scripts/s_replaceplugin.lua new file mode 100644 index 0000000000..4cef07c7ba --- /dev/null +++ b/share/scripts/s_replaceplugin.lua @@ -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 |