-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
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