2016-07-29 Update zh.po for Ardoru 5.0
[ardour.git] / scripts / s_pluginutils.lua
index 0ecf107e49c37a2e55dcefc1e94976153af1bd55..3af803a03e4223d6ccfb051dfc2d499c36fc7a50 100644 (file)
@@ -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