/usr/share/ardour5/scripts/s_replaceplugin.lua is in ardour-data 1:5.12.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 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
|