More consistent dialog window titles (Recall Mixer Settings).
[ardour.git] / scripts / _smash.lua
index d4d80914db52796df256ef16c382595064e87d50..2ebcac19aa781aa3c1ad2edd06662655cbc2eb53 100644 (file)
@@ -1,4 +1,4 @@
-ardour { ["type"] = "dsp", name = "Sound Smasher", category = "Dynamics", license = "MIT", author = "Ardour Lua Task Force", description = [[Another simple DSP example]]
+ardour { ["type"] = "dsp", name = "Sound Smasher", category = "Dynamics", license = "MIT", author = "Ardour Lua Task Force", description = [[Another simple DSP example]] }
 
 function dsp_ioconfig () return
        -- -1, -1 = any number of channels as long as input and output count matches
@@ -11,7 +11,7 @@ end
 function dsp_run (ins, outs, n_samples)
        for c = 1, #outs do -- for each output channel (count from 1 to number of output channels)
 
-               if not ins[c]:sameinstance (outs[c]) then -- if processing is not in-place..
+               if ins[c] ~= outs[c] then -- if processing is not in-place..
                        ARDOUR.DSP.copy_vector (outs[c], ins[c], n_samples) -- ..copy data from input to output.
                end