fix errors reported by pixman for meter redraws (and add more comments to help the...
[ardour.git] / scripts / s_replaceplugin.lua
1 ardour { ["type"] = "Snippet", name = "Replace Plugin" }
2
3 function factory () return function ()
4
5         route = Session:get_remote_nth_route(1)
6         old = route:nth_plugin(0)
7         new = ARDOUR.LuaAPI.new_plugin(Session, "http://gareus.org/oss/lv2/fil4#stereo", ARDOUR.PluginType.LV2, "");
8         route:replace_processor (old, new, nil)
9         old = nil new = nil -- explicitly drop references (unless they're local vars)
10
11 end end