diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-31 23:51:05 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-31 23:51:22 +0200 |
commit | d47fb0ccafc7977a9991263728638778b993cfb6 (patch) | |
tree | bb3fb834fb240fe4b74e8bc759c78a63a08c94db /scripts/s_replaceplugin.lua | |
parent | a03217c27f73245281e0939d436f663091633997 (diff) | |
download | ardour-d47fb0ccafc7977a9991263728638778b993cfb6.zip ardour-d47fb0ccafc7977a9991263728638778b993cfb6.tar.gz ardour-d47fb0ccafc7977a9991263728638778b993cfb6.tar.bz2 |
update lua script to use new remote_id lookup API
Diffstat (limited to 'scripts/s_replaceplugin.lua')
-rw-r--r-- | scripts/s_replaceplugin.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/s_replaceplugin.lua b/scripts/s_replaceplugin.lua index 6ec8276..4cef07c 100644 --- a/scripts/s_replaceplugin.lua +++ b/scripts/s_replaceplugin.lua @@ -2,7 +2,7 @@ ardour { ["type"] = "Snippet", name = "Replace Plugin" } function factory () return function () - route = Session:route_by_remote_id(1) + 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) |