Video-Frame (not sample)
[ardour.git] / scripts / stop_at_marker.lua
index 140fb7a98d45b33fe8f13c6453648a7dca1b4ead..32205432f9ba223bef946c572da09c55c46514d8 100644 (file)
@@ -2,9 +2,7 @@ ardour {
        ["type"]    = "session",
        name        = "Stop at Marker",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Lua Task Force",
        description = [[An example session script which stops the transport on every location marker when rolling forward.]]
 }
 
@@ -15,7 +13,7 @@ function factory ()
                        return
                end
 
-               local pos = Session:transport_frame () -- current playhead position
+               local pos = Session:transport_sample () -- current playhead position
                local loc = Session:locations () -- all marker locations
 
                -- find first marker after the current playhead position, ignore loop + punch ranges