mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 06:07:29 +01:00
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:
parent
b68d537ded
commit
3267b4892c
3 changed files with 123 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue