X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=scripts%2Fscope.lua;h=1952c100c431151fa6ac3534105cf646618c8a70;hb=cd9c2cedfbfde21c0c4d04fc8f35065cc5eab135;hp=1644419c657bdd109cf4e462fee005bc9680552c;hpb=1c3c1055747b93da3d620cfc9adfd573e72dc07f;p=ardour.git diff --git a/scripts/scope.lua b/scripts/scope.lua index 1644419c65..1952c100c4 100644 --- a/scripts/scope.lua +++ b/scripts/scope.lua @@ -1,11 +1,10 @@ ardour { ["type"] = "dsp", - name = "Inline Scope", - license = "GPLv2", - author = "Robin Gareus", - email = "robin@gareus.org", - site = "http://gareus.org", - description = [[An Example DSP Plugin to display the waveform on the mixer strip]] + name = "a-Inline Scope", + category = "Visualization", + license = "MIT", + author = "Ardour Team", + description = [[Mixer strip inline waveform display]] } -- return possible i/o configurations @@ -19,7 +18,7 @@ function dsp_params () { { ["type"] = "input", name = "Timescale", min = .1, max = 5, default = 2, unit="sec", logarithmic = true }, { ["type"] = "input", name = "Logscale", min = 0, max = 1, default = 0, toggled = true }, - { ["type"] = "input", name = "Height", min = 0, max = 3, default = 1, unit="dB", enum = true, scalepoints = + { ["type"] = "input", name = "Height (Aspect)", min = 0, max = 3, default = 1, enum = true, scalepoints = { ["Min"] = 0, ["16:10"] = 1, @@ -69,7 +68,7 @@ function dsp_runmap (bufs, in_map, out_map, n_samples, offset) else local w0 = bufsiz - write_ptr; ARDOUR.DSP.copy_vector (shmem:to_float (write_ptr + chn_off), bufs:get_audio (ib):data (offset), w0) - ARDOUR.DSP.copy_vector (shmem:to_float (chn_off) , bufs:get_audio (ib):data (offset), n_samples - w0) + ARDOUR.DSP.copy_vector (shmem:to_float (chn_off) , bufs:get_audio (ib):data (offset + w0), n_samples - w0) end if (ob ~= ARDOUR.ChanMapping.Invalid and ib ~= ob) then ARDOUR.DSP.copy_vector (bufs:get_audio (ob):data (offset), bufs:get_audio (ib):data (offset), n_samples)