summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/s_chanmap.lua2
-rw-r--r--scripts/s_plugin_automation.lua2
-rw-r--r--scripts/s_pluginutils.lua2
-rw-r--r--scripts/s_replaceplugin.lua2
4 files changed, 4 insertions, 4 deletions
diff --git a/scripts/s_chanmap.lua b/scripts/s_chanmap.lua
index fd5e006c8d..7bc070c8cc 100644
--- a/scripts/s_chanmap.lua
+++ b/scripts/s_chanmap.lua
@@ -16,7 +16,7 @@ function factory () return function ()
r:add_processor_by_index(proc, 0, nil, true)
end
- r = Session:route_by_remote_id(1)
+ r = Session:get_remote_nth_route(1)
checksetup (r)
pi = r:nth_plugin(0):to_insert()
diff --git a/scripts/s_plugin_automation.lua b/scripts/s_plugin_automation.lua
index daec46aa0c..56129ff792 100644
--- a/scripts/s_plugin_automation.lua
+++ b/scripts/s_plugin_automation.lua
@@ -6,7 +6,7 @@ function factory () return function ()
local samplerate = Session:nominal_frame_rate ()
-- get Track/Bus with RID 3
- local r = Session:route_by_remote_id(3)
+ local r = Session:get_remote_nth_route(3)
-- make sure the track object exists
assert (not r:isnil ())
diff --git a/scripts/s_pluginutils.lua b/scripts/s_pluginutils.lua
index 0ecf107e49..3af803a03e 100644
--- a/scripts/s_pluginutils.lua
+++ b/scripts/s_pluginutils.lua
@@ -15,7 +15,7 @@ function factory () return function ()
-------------------------------------------------------------------------------
-- load a plugin preset
- route = Session:route_by_remote_id(2)
+ route = Session:get_remote_nth_route(2)
-- to 4th plugin (from top), ardour starts counting at zero
plugin = route:nth_plugin(3):to_insert():plugin(0)
ps = plugin:preset_by_label("cutbass") -- get preset by name
diff --git a/scripts/s_replaceplugin.lua b/scripts/s_replaceplugin.lua
index 6ec82768b7..4cef07c7ba 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)