Freeze harvid/xjadeo PPC version
[ardour.git] / scripts / s_plugin_automation.lua
index daec46aa0c76fbe501bea567d8881c344e4e2890..2b04bae6380535bc5eadcf7ea7081d14f1a77efb 100644 (file)
@@ -2,11 +2,11 @@ ardour { ["type"] = "Snippet", name = "Plugin automation" }
 
 function factory () return function ()
        -- query playhead position and session sample-rate
-       local playhead = Session:transport_frame ()
-       local samplerate = Session:nominal_frame_rate ()
+       local playhead = Session:transport_sample ()
+       local samplerate = Session:nominal_sample_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 ())