X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=scripts%2F_smash.lua;h=2ebcac19aa781aa3c1ad2edd06662655cbc2eb53;hb=720292696a94c96d764e74b5e84fce09a1b3621c;hp=d4d80914db52796df256ef16c382595064e87d50;hpb=a369db5600dbd346c83dd9bc4b924725094fd243;p=ardour.git diff --git a/scripts/_smash.lua b/scripts/_smash.lua index d4d80914db..2ebcac19aa 100644 --- a/scripts/_smash.lua +++ b/scripts/_smash.lua @@ -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