fix unused Outside filled framed curve for constant points outside the draw area.
[ardour.git] / scripts / addscopes.lua
index b71d703e9b7314867290423ae039e2a37ad312f5..deb3a5c814f769e172f600c97427968acf33c5b6 100644 (file)
@@ -2,9 +2,7 @@ ardour {
        ["type"]    = "EditorAction",
        name        = "Add Scopes",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Team",
        description = [[Add 'Inline Scope' Lua Processor to all Tracks]]
 }
 
@@ -20,8 +18,9 @@ end
 function factory (params)
        return function ()
                -- get configuration
-               local uniq = params["unique"] or "yes"
-               local pos = params["position"] or 0
+               local p = params or {}
+               local uniq = p["unique"] or "yes"
+               local pos = p["position"] or 0
 
                -- loop over all tracks
                for t in Session:get_tracks():iter() do
@@ -35,7 +34,7 @@ function factory (params)
                                        -- get Nth Ardour::Processor
                                        proc = t:nth_plugin (i)
                                        -- check if it's a scope
-                                       if (not proc:isnil() and proc:display_name () == "Inline Scope") then
+                                       if (not proc:isnil() and proc:display_name () == "a-Inline Scope") then
                                                insert = false;
                                        end
                                        i = i + 1
@@ -44,7 +43,7 @@ function factory (params)
 
                        -- create a new processor and insert it
                        if insert then
-                               local a = ARDOUR.LuaAPI.new_luaproc(Session, "Inline Scope");
+                               local a = ARDOUR.LuaAPI.new_luaproc(Session, "a-Inline Scope");
                                if (not a:isnil()) then
                                        t:add_processor_by_index(a, pos, nil, true)
                                        ARDOUR.LuaAPI.set_processor_param (a, 0, 5) -- timescale 5sec