Fix automation lookup when rolling backwards
[ardour.git] / scripts / amp4.lua
index 1fc8773592a15172a0509b2e252e9551f35eb5ec..276b4a0af6726f3377ab30fad798b97c5db7ff06 100644 (file)
@@ -1,11 +1,9 @@
 ardour {
        ["type"]    = "dsp",
-       name        = "Amplifier",
+       name        = "a-Amplifier",
        category    = "Amplifier",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Team",
        description = [[Versatile +/- 20dB multichannel amplifier]]
 }
 
@@ -68,7 +66,7 @@ function dsp_run (ins, outs, n_samples)
                for c = 1,#ins do -- process all channels
                        -- check if output and input buffers for this channel are identical
                        -- http://manual.ardour.org/lua-scripting/class_reference/#C:FloatArray
-                       if not ins[c]:sameinstance (outs[c]) then
+                       if ins[c] ~= outs[c] then
                                -- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:DSP
                                ARDOUR.DSP.copy_vector (outs[c]:offset (off), ins[c]:offset (off), siz)
                        end
@@ -78,14 +76,17 @@ function dsp_run (ins, outs, n_samples)
                off = off + siz
        end
 
+--[[
        if changed then
                self:queue_draw () -- notify display
        end
+--]]
 end
 
 -------------------------------------------------------------------------------
 --- inline display + text example
 
+--[[
 local txt = nil -- cache pango context globally
 
 function render_inline (ctx, w, max_h)
@@ -115,3 +116,4 @@ function render_inline (ctx, w, max_h)
 
        return {w, h}
 end
+--]]