File: s_replaceplugin.lua

package info (click to toggle)
ardour 1%3A5.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 74,708 kB
  • sloc: cpp: 512,951; xml: 123,656; ansic: 65,010; python: 22,599; sh: 5,368; asm: 1,347; perl: 888; php: 770; makefile: 253; objc: 28
file content (11 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (6)
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