update lua scripts

* add proper amplifier (smooth gain change) + text-example
* remove commented no-inplace from High/Low pass
* amend 913609be inline spectrogam re-init
This commit is contained in:
Robin Gareus 2016-07-04 00:03:46 +02:00
parent b68d537ded
commit 3267b4892c
3 changed files with 123 additions and 8 deletions

View file

@ -150,16 +150,12 @@ function dsp_run (ins, outs, n_samples)
for c = 1,#ins do
-- check if output and input buffers for this channel are identical
-- http://manual.ardour.org/lua-scripting/class_reference/#C:FloatArray
if false then --- ins[c]:sameinstance (outs[c]) then
for k = 1,o do
filters[c][k]:run (ins[c]:offset (off), siz) -- in-place processing
end
else
if not ins[c]:sameinstance (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)
for k = 1,o do
filters[c][k]:run (outs[c]:offset (off), siz)
end
end
for k = 1,o do
filters[c][k]:run (outs[c]:offset (off), siz) -- in-place processing
end
end