re-classify bundled lua scripts
authorRobin Gareus <robin@gareus.org>
Tue, 12 Jul 2016 13:21:23 +0000 (15:21 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 12 Jul 2016 14:43:10 +0000 (16:43 +0200)
* search by author:
  - "Ardour Team" for "ready to use" plugins
  - "Ardour Lua Task Force" = example plugins

* search by Category
  - use "Example" for DSP plugins (except instruments)

21 files changed:
scripts/addscopes.lua
scripts/amp1.lua
scripts/amp2.lua
scripts/amp3.lua
scripts/amp4.lua
scripts/biquad_filter.lua [new file with mode: 0644]
scripts/bounce_replace.lua
scripts/filt.lua [deleted file]
scripts/hook_test.lua
scripts/midi_rewite.lua
scripts/midifilter.lua
scripts/midigenerator.lua
scripts/osc_hook_example.lua
scripts/rawmidi.lua
scripts/remove_unknown_procs.lua
scripts/rewind.lua
scripts/session_test.lua
scripts/stop_at_marker.lua
scripts/synth1.lua
scripts/tomsloop.lua
scripts/voice_activate.lua

index 8ac1519ee41ab6076ed9b1e215526afd07708578..d0785dce3bba30cc5865cfa411604fc9f21e23b1 100644 (file)
@@ -2,9 +2,7 @@ ardour {
        ["type"]    = "EditorAction",
        name        = "Add Scopes",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Team",
        description = [[Add 'Inline Scope' Lua Processor to all Tracks]]
 }
 
index 128f42a901da9385b230a6874466795ec95bea43..03be3961b6625eecbfdddd8353e85468fc14b056 100644 (file)
@@ -3,9 +3,7 @@ ardour {
        name        = "Simple Amp",
        category    = "Example",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Lua Task Force",
        description = [[
        An Example DSP Plugin for processing audio, to
        be used with Ardour's Lua scripting facility.]]
index 3cd071b51c4306c1fde755837a14d9000aeb9c4a..89d11fc0fd8f94d632b0078417d6f5dd4afecb99 100644 (file)
@@ -3,9 +3,7 @@ ardour {
        name        = "Simple Amp II",
        category    = "Example",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Lua Task Force",
        description = [[
        An Example DSP Plugin for processing audio, to
        be used with Ardour's Lua scripting facility.]]
index 186ece97312a6fd7d6eebd72140c65956c0d49b4..bb1a589b273aadc4c92514519bcee31542ed17ed 100644 (file)
@@ -3,9 +3,7 @@ ardour {
        name        = "Simple Amp III",
        category    = "Example",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Lua Task Force",
        description = [[
        An Example DSP Plugin for processing audio, to
        be used with Ardour's Lua scripting facility.]]
index 1fc8773592a15172a0509b2e252e9551f35eb5ec..24a838c9cb79b57a6b336148392ddf3de10b93eb 100644 (file)
@@ -3,9 +3,7 @@ ardour {
        name        = "Amplifier",
        category    = "Amplifier",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Team",
        description = [[Versatile +/- 20dB multichannel amplifier]]
 }
 
@@ -78,14 +76,17 @@ function dsp_run (ins, outs, n_samples)
                off = off + siz
        end
 
+--[[
        if changed then
                self:queue_draw () -- notify display
        end
+--]]
 end
 
 -------------------------------------------------------------------------------
 --- inline display + text example
 
+--[[
 local txt = nil -- cache pango context globally
 
 function render_inline (ctx, w, max_h)
@@ -115,3 +116,4 @@ function render_inline (ctx, w, max_h)
 
        return {w, h}
 end
+--]]
diff --git a/scripts/biquad_filter.lua b/scripts/biquad_filter.lua
new file mode 100644 (file)
index 0000000..e600ab3
--- /dev/null
@@ -0,0 +1,280 @@
+ardour {
+       ["type"]    = "dsp",
+       name        = "Biquad Filter",
+       category    = "Filter",
+       license     = "MIT",
+       author      = "Ardour Team",
+       description = [[A Versatile Filter Plugin]]
+}
+
+function dsp_ioconfig ()
+       return
+       {
+               -- allow any number of I/O as long as port-count matches
+               { audio_in = -1, audio_out = -1},
+       }
+end
+
+
+function dsp_params ()
+       return
+       {
+               { ["type"] = "input", name = "Enable", min = 0, max = 1, default = 1, bypass = true, toggled = true },
+               { ["type"] = "input", name = "Type", min = 0, max = 4, default = 0, enum = true, scalepoints =
+                       {
+                               ["Peaking"]    = 0,
+                               ["Low Shelf"]  = 1,
+                               ["High Shelf"] = 2,
+                               ["Low Pass"]   = 3,
+                               ["High Pass"]  = 4,
+                       }
+               },
+               { ["type"] = "input", name = "Gain", min = -20, max = 20,    default = 0,    unit="dB" },
+               { ["type"] = "input", name = "Freq", min =  20, max = 20000, default = 1000, unit="Hz", logarithmic = true },
+               { ["type"] = "input", name = "Q",    min = 0.1, max = 8,     default = .707, logarithmic = true },
+       }
+end
+
+-- translate type parameter to DSP enum
+-- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR.DSP.Biquad.Type
+function map_type (t)
+       if     t == 1 then
+               return ARDOUR.DSP.BiquadType.LowShelf
+       elseif t == 2 then
+               return ARDOUR.DSP.BiquadType.HighShelf
+       elseif t == 3 then
+               return ARDOUR.DSP.BiquadType.LowPass
+       elseif t == 4 then
+               return ARDOUR.DSP.BiquadType.HighPass
+       else
+               return ARDOUR.DSP.BiquadType.Peaking
+       end
+end
+
+function ctrl_data ()
+       local ctrl = CtrlPorts:array ()
+       if ctrl[1] <= 0 then -- when disabled
+               ctrl[3] = 0; -- force gain to 0dB
+       end
+       return ctrl
+end
+
+-- these globals are *not* shared between DSP and UI
+local filters = {}  -- the biquad filter instances (DSP)
+local filt -- the biquad filter instance (GUI, response)
+local cur = {0, 0, 0, 0, 0} -- current parameters
+local lpf = 0.03 -- parameter low-pass filter time-constant
+local chn = 0 -- channel/filter count
+
+function dsp_init (rate)
+       self:shmem ():allocate (1) -- shared mem to tell the GUI the samplerate
+       local cfg = self:shmem ():to_int (0):array ()
+       cfg[1] = rate
+       -- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:DSP:Biquad
+       filt = ARDOUR.DSP.Biquad (rate) -- initialize filter
+       lpf = 13000 / rate -- interpolation time constant
+end
+
+function dsp_configure (ins, outs)
+       assert (ins:n_audio () == outs:n_audio ())
+       local cfg = self:shmem ():to_int (0):array ()
+       local rate = cfg[1]
+       chn = ins:n_audio ()
+       for c = 1, chn do
+               filters[c] = ARDOUR.DSP.Biquad (rate) -- initialize filters
+       end
+       cur = {0, 0, 0, 0, 0}
+end
+
+-- helper functions for parameter interpolation
+function param_changed (ctrl)
+       if ctrl[2] == cur[2] and ctrl[3] == cur[3] and ctrl[4] == cur[4] and ctrl[5] == cur[5] then
+               return false
+       end
+       return true
+end
+
+function low_pass_filter_param (old, new, limit)
+       if math.abs (old - new) < limit  then
+               return new
+       else
+               return old + lpf * (new - old)
+       end
+end
+
+-- apply parameters, re-compute filter coefficients if needed
+function apply_params (ctrl)
+       if not param_changed (ctrl) then
+               return
+       end
+
+       if cur[2] ~= ctrl[2] then
+               -- reset filter state when type changes
+               filt:reset ()
+               for k = 2,5 do cur[k] = ctrl[k] end
+       else
+               -- low-pass filter ctrl parameter values, smooth transition
+               cur[3] = low_pass_filter_param (cur[3], ctrl[3], 0.1) -- gain/dB
+               cur[4] = low_pass_filter_param (cur[4], ctrl[4], 1.0) -- freq/Hz
+               cur[5] = low_pass_filter_param (cur[5], ctrl[5], 0.01) -- quality
+       end
+
+       for c = 1, chn do
+               filters[c]:compute (map_type (cur[2]), cur[4], cur[5], cur[3])
+       end
+end
+
+
+-- the actual DSP callback
+function dsp_run (ins, outs, n_samples)
+       local changed = false
+       local siz = n_samples
+       local off = 0
+       local ctrl = ctrl_data ()
+
+       -- if a parameter was changed, process at most 64 samples at a time
+       -- and interpolate parameters until the current settings match
+       -- the target values
+       if param_changed (ctrl) then
+               changed = true
+               siz = 64
+       end
+
+       while n_samples > 0 do
+               if changed then apply_params (ctrl) end
+               if siz > n_samples then siz = n_samples end
+
+               -- process all channels
+               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 ins[c]:sameinstance (outs[c]) then
+                               filters[c]:run (ins[c]:offset (off), siz) -- in-place processing
+                       else
+                               -- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:DSP
+                               ARDOUR.DSP.copy_vector (outs[c]:offset (off), ins[c]:offset (off), siz)
+                               filters[c]:run (outs[c]:offset (off), siz)
+                       end
+               end
+
+               n_samples = n_samples - siz
+               off = off + siz
+       end
+
+       if changed then
+               -- notify display
+               self:queue_draw ()
+       end
+end
+
+
+-------------------------------------------------------------------------------
+--- inline display
+
+function round (n)
+       return math.floor (n + .5)
+end
+
+function freq_at_x (x, w)
+       -- x-axis pixel for given freq, power-scale
+       return 20 * 1000 ^ (x / w)
+end
+
+function x_at_freq (f, w)
+       -- frequency at given x-axis pixel
+       return w * math.log (f / 20.0) / math.log (1000.0)
+end
+
+function db_to_y (db, h)
+       -- y-axis gain mapping
+       if db < -20 then db = -20 end
+       if db >  20 then db =  20 end
+       return -.5 + 0.5 * h * (1 - db / 20)
+end
+
+function grid_db (ctx, w, h, db)
+       -- draw horizontal grid line
+       local y = -.5 + round (db_to_y (db, h))
+       ctx:move_to (0, y)
+       ctx:line_to (w, y)
+       ctx:stroke ()
+end
+
+function grid_freq (ctx, w, h, f)
+       -- draw vertical grid line
+       local x = -.5 + round (x_at_freq (f, w))
+       ctx:move_to (x, 0)
+       ctx:line_to (x, h)
+       ctx:stroke ()
+end
+
+function render_inline (ctx, w, max_h)
+       if not filt then
+               -- the GUI is separate from the DSP, but the GUI needs to know
+               -- the sample-rate that the DSP is using.
+               local shmem = self:shmem () -- get shared memory region
+               local cfg = shmem:to_int (0):array () -- "cast" into lua-table
+               -- instantiate filter (to calculate the transfer function's response)
+               filt = ARDOUR.DSP.Biquad (cfg[1])
+       end
+
+       -- set filter coefficients if they have changed
+       if param_changed (CtrlPorts:array ()) then
+               local ctrl = ctrl_data ()
+               for k = 2,5 do cur[k] = ctrl[k] end
+               filt:compute (map_type (cur[2]), cur[4], cur[5], cur[3])
+       end
+
+       -- calc height of inline display
+       local h = math.ceil (w * 10 / 16) -- use 16:10 aspect
+       h = 2 * round (h / 2) -- with an even number of vertical pixels
+       if (h > max_h) then h = max_h end -- but at most max-height
+
+       -- ctx is a http://cairographics.org/ context
+       -- http://manual.ardour.org/lua-scripting/class_reference/#Cairo:Context
+
+       -- clear background
+       ctx:rectangle (0, 0, w, h)
+       ctx:set_source_rgba (.2, .2, .2, 1.0)
+       ctx:fill ()
+
+       -- set line width: 1px
+       -- Note: a cairo pixel at [1,1]  spans [0.5->1.5 , 0.5->1.5]
+       -- hence the offset -0.5 in various move_to(), line_to() calls
+       ctx:set_line_width (1.0)
+
+       -- draw grid
+       local dash3 = C.DoubleVector ()
+       dash3:add ({1, 3})
+       ctx:set_dash (dash3, 2) -- dotted line
+       ctx:set_source_rgba (.5, .5, .5, .5)
+       grid_db (ctx, w, h, 0)
+       grid_db (ctx, w, h, 6)
+       grid_db (ctx, w, h, 12)
+       grid_db (ctx, w, h, 18)
+       grid_db (ctx, w, h, -6)
+       grid_db (ctx, w, h, -12)
+       grid_db (ctx, w, h, -18)
+       grid_freq (ctx, w, h, 100)
+       grid_freq (ctx, w, h, 1000)
+       grid_freq (ctx, w, h, 10000)
+       ctx:unset_dash ()
+
+       -- draw transfer function line
+       ctx:set_source_rgba (.8, .8, .8, 1.0)
+       ctx:move_to (-.5, db_to_y (filt:dB_at_freq (freq_at_x (0, w)), h))
+       for x = 1,w do
+               local db = filt:dB_at_freq (freq_at_x (x, w))
+               ctx:line_to (-.5 + x, db_to_y (db, h))
+       end
+       ctx:stroke_preserve ()
+
+       -- fill area to zero under the curve
+       ctx:line_to (w, -.5 + h * .5)
+       ctx:line_to (0, -.5 + h * .5)
+       ctx:close_path ()
+       ctx:set_source_rgba (.5, .5, .5, .5)
+       ctx:fill ()
+
+       return {w, h}
+end
index d383a87a5d83b36a253d9c917fd07eb2eceaae5a..07518a4cf03f930fffe19c449cc08c54f00f4adb 100644 (file)
@@ -1,8 +1,6 @@
 ardour { ["type"] = "EditorAction", name = "Bounce+Replace Regions",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Team",
        description = [[Bounce selected regions with processing and replace region]]
 }
 
diff --git a/scripts/filt.lua b/scripts/filt.lua
deleted file mode 100644 (file)
index e62dddb..0000000
+++ /dev/null
@@ -1,282 +0,0 @@
-ardour {
-       ["type"]    = "dsp",
-       name        = "Biquad Filter",
-       category    = "Filter",
-       license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
-       description = [[Example Ardour Lua DSP Plugin]]
-}
-
-function dsp_ioconfig ()
-       return
-       {
-               -- allow any number of I/O as long as port-count matches
-               { audio_in = -1, audio_out = -1},
-       }
-end
-
-
-function dsp_params ()
-       return
-       {
-               { ["type"] = "input", name = "Enable", min = 0, max = 1, default = 1, bypass = true, toggled = true },
-               { ["type"] = "input", name = "Type", min = 0, max = 4, default = 0, enum = true, scalepoints =
-                       {
-                               ["Peaking"]    = 0,
-                               ["Low Shelf"]  = 1,
-                               ["High Shelf"] = 2,
-                               ["Low Pass"]   = 3,
-                               ["High Pass"]  = 4,
-                       }
-               },
-               { ["type"] = "input", name = "Gain", min = -20, max = 20,    default = 0,    unit="dB" },
-               { ["type"] = "input", name = "Freq", min =  20, max = 20000, default = 1000, unit="Hz", logarithmic = true },
-               { ["type"] = "input", name = "Q",    min = 0.1, max = 8,     default = .707, logarithmic = true },
-       }
-end
-
--- translate type parameter to DSP enum
--- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR.DSP.Biquad.Type
-function map_type (t)
-       if     t == 1 then
-               return ARDOUR.DSP.BiquadType.LowShelf
-       elseif t == 2 then
-               return ARDOUR.DSP.BiquadType.HighShelf
-       elseif t == 3 then
-               return ARDOUR.DSP.BiquadType.LowPass
-       elseif t == 4 then
-               return ARDOUR.DSP.BiquadType.HighPass
-       else
-               return ARDOUR.DSP.BiquadType.Peaking
-       end
-end
-
-function ctrl_data ()
-       local ctrl = CtrlPorts:array ()
-       if ctrl[1] <= 0 then -- when disabled
-               ctrl[3] = 0; -- force gain to 0dB
-       end
-       return ctrl
-end
-
--- these globals are *not* shared between DSP and UI
-local filters = {}  -- the biquad filter instances (DSP)
-local filt -- the biquad filter instance (GUI, response)
-local cur = {0, 0, 0, 0, 0} -- current parameters
-local lpf = 0.03 -- parameter low-pass filter time-constant
-local chn = 0 -- channel/filter count
-
-function dsp_init (rate)
-       self:shmem ():allocate (1) -- shared mem to tell the GUI the samplerate
-       local cfg = self:shmem ():to_int (0):array ()
-       cfg[1] = rate
-       -- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:DSP:Biquad
-       filt = ARDOUR.DSP.Biquad (rate) -- initialize filter
-       lpf = 13000 / rate -- interpolation time constant
-end
-
-function dsp_configure (ins, outs)
-       assert (ins:n_audio () == outs:n_audio ())
-       local cfg = self:shmem ():to_int (0):array ()
-       local rate = cfg[1]
-       chn = ins:n_audio ()
-       for c = 1, chn do
-               filters[c] = ARDOUR.DSP.Biquad (rate) -- initialize filters
-       end
-       cur = {0, 0, 0, 0, 0}
-end
-
--- helper functions for parameter interpolation
-function param_changed (ctrl)
-       if ctrl[2] == cur[2] and ctrl[3] == cur[3] and ctrl[4] == cur[4] and ctrl[5] == cur[5] then
-               return false
-       end
-       return true
-end
-
-function low_pass_filter_param (old, new, limit)
-       if math.abs (old - new) < limit  then
-               return new
-       else
-               return old + lpf * (new - old)
-       end
-end
-
--- apply parameters, re-compute filter coefficients if needed
-function apply_params (ctrl)
-       if not param_changed (ctrl) then
-               return
-       end
-
-       if cur[2] ~= ctrl[2] then
-               -- reset filter state when type changes
-               filt:reset ()
-               for k = 2,5 do cur[k] = ctrl[k] end
-       else
-               -- low-pass filter ctrl parameter values, smooth transition
-               cur[3] = low_pass_filter_param (cur[3], ctrl[3], 0.1) -- gain/dB
-               cur[4] = low_pass_filter_param (cur[4], ctrl[4], 1.0) -- freq/Hz
-               cur[5] = low_pass_filter_param (cur[5], ctrl[5], 0.01) -- quality
-       end
-
-       for c = 1, chn do
-               filters[c]:compute (map_type (cur[2]), cur[4], cur[5], cur[3])
-       end
-end
-
-
--- the actual DSP callback
-function dsp_run (ins, outs, n_samples)
-       local changed = false
-       local siz = n_samples
-       local off = 0
-       local ctrl = ctrl_data ()
-
-       -- if a parameter was changed, process at most 64 samples at a time
-       -- and interpolate parameters until the current settings match
-       -- the target values
-       if param_changed (ctrl) then
-               changed = true
-               siz = 64
-       end
-
-       while n_samples > 0 do
-               if changed then apply_params (ctrl) end
-               if siz > n_samples then siz = n_samples end
-
-               -- process all channels
-               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 ins[c]:sameinstance (outs[c]) then
-                               filters[c]:run (ins[c]:offset (off), siz) -- in-place processing
-                       else
-                               -- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:DSP
-                               ARDOUR.DSP.copy_vector (outs[c]:offset (off), ins[c]:offset (off), siz)
-                               filters[c]:run (outs[c]:offset (off), siz)
-                       end
-               end
-
-               n_samples = n_samples - siz
-               off = off + siz
-       end
-
-       if changed then
-               -- notify display
-               self:queue_draw ()
-       end
-end
-
-
--------------------------------------------------------------------------------
---- inline display
-
-function round (n)
-       return math.floor (n + .5)
-end
-
-function freq_at_x (x, w)
-       -- x-axis pixel for given freq, power-scale
-       return 20 * 1000 ^ (x / w)
-end
-
-function x_at_freq (f, w)
-       -- frequency at given x-axis pixel
-       return w * math.log (f / 20.0) / math.log (1000.0)
-end
-
-function db_to_y (db, h)
-       -- y-axis gain mapping
-       if db < -20 then db = -20 end
-       if db >  20 then db =  20 end
-       return -.5 + 0.5 * h * (1 - db / 20)
-end
-
-function grid_db (ctx, w, h, db)
-       -- draw horizontal grid line
-       local y = -.5 + round (db_to_y (db, h))
-       ctx:move_to (0, y)
-       ctx:line_to (w, y)
-       ctx:stroke ()
-end
-
-function grid_freq (ctx, w, h, f)
-       -- draw vertical grid line
-       local x = -.5 + round (x_at_freq (f, w))
-       ctx:move_to (x, 0)
-       ctx:line_to (x, h)
-       ctx:stroke ()
-end
-
-function render_inline (ctx, w, max_h)
-       if not filt then
-               -- the GUI is separate from the DSP, but the GUI needs to know
-               -- the sample-rate that the DSP is using.
-               local shmem = self:shmem () -- get shared memory region
-               local cfg = shmem:to_int (0):array () -- "cast" into lua-table
-               -- instantiate filter (to calculate the transfer function's response)
-               filt = ARDOUR.DSP.Biquad (cfg[1])
-       end
-
-       -- set filter coefficients if they have changed
-       if param_changed (CtrlPorts:array ()) then
-               local ctrl = ctrl_data ()
-               for k = 2,5 do cur[k] = ctrl[k] end
-               filt:compute (map_type (cur[2]), cur[4], cur[5], cur[3])
-       end
-
-       -- calc height of inline display
-       local h = math.ceil (w * 10 / 16) -- use 16:10 aspect
-       h = 2 * round (h / 2) -- with an even number of vertical pixels
-       if (h > max_h) then h = max_h end -- but at most max-height
-
-       -- ctx is a http://cairographics.org/ context
-       -- http://manual.ardour.org/lua-scripting/class_reference/#Cairo:Context
-
-       -- clear background
-       ctx:rectangle (0, 0, w, h)
-       ctx:set_source_rgba (.2, .2, .2, 1.0)
-       ctx:fill ()
-
-       -- set line width: 1px
-       -- Note: a cairo pixel at [1,1]  spans [0.5->1.5 , 0.5->1.5]
-       -- hence the offset -0.5 in various move_to(), line_to() calls
-       ctx:set_line_width (1.0)
-
-       -- draw grid
-       local dash3 = C.DoubleVector ()
-       dash3:add ({1, 3})
-       ctx:set_dash (dash3, 2) -- dotted line
-       ctx:set_source_rgba (.5, .5, .5, .5)
-       grid_db (ctx, w, h, 0)
-       grid_db (ctx, w, h, 6)
-       grid_db (ctx, w, h, 12)
-       grid_db (ctx, w, h, 18)
-       grid_db (ctx, w, h, -6)
-       grid_db (ctx, w, h, -12)
-       grid_db (ctx, w, h, -18)
-       grid_freq (ctx, w, h, 100)
-       grid_freq (ctx, w, h, 1000)
-       grid_freq (ctx, w, h, 10000)
-       ctx:unset_dash ()
-
-       -- draw transfer function line
-       ctx:set_source_rgba (.8, .8, .8, 1.0)
-       ctx:move_to (-.5, db_to_y (filt:dB_at_freq (freq_at_x (0, w)), h))
-       for x = 1,w do
-               local db = filt:dB_at_freq (freq_at_x (x, w))
-               ctx:line_to (-.5 + x, db_to_y (db, h))
-       end
-       ctx:stroke_preserve ()
-
-       -- fill area to zero under the curve
-       ctx:line_to (w, -.5 + h * .5)
-       ctx:line_to (0, -.5 + h * .5)
-       ctx:close_path ()
-       ctx:set_source_rgba (.5, .5, .5, .5)
-       ctx:fill ()
-
-       return {w, h}
-end
index a4676c5135cbaa5b221be9140f3aea86634e602b..fa5a853e3a3debf4baaa12d2cea786f32da457a4 100644 (file)
@@ -1,6 +1,7 @@
 ardour {
        ["type"]    = "EditorHook",
        name        = "Callback Example",
+       author      = "Ardour Lua Task Force",
        description = "Rewind On Solo Change, Write a file when regions are moved",
 }
 
index 757c6dbaf9a7f1ace5db665ba24c3722e50d0d67..4dfc28a6c32dadc20c8d9380c6ea8c0bc6af3729 100644 (file)
@@ -2,9 +2,7 @@ ardour {
        ["type"]    = "session",
        name        = "Rewrite Midi",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Lua Task Force",
        description = [[An example session script preprocesses midi buffers.]]
 }
 
index ceb115a727f22d613ab2df7e7d0896dbcbff9be3..e7a2aae4f985970ee06c042984c9de20189e4ea9 100644 (file)
@@ -1,11 +1,9 @@
 ardour {
        ["type"]    = "dsp",
        name        = "Midi Filter",
-       category    = "Utility",
+       category    = "Example", -- "Utility"
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Lua Task Force",
        description = [[An Example Midi Filter for prototyping.]]
 }
 
index e9aa55d2809e2dc47bf5f962c1264749c655f321..165c7d11533e3cc2d116b6c5fe0234fc30886058 100644 (file)
@@ -1,11 +1,9 @@
 ardour {
        ["type"]    = "dsp",
        name        = "Midi Generator",
-       category    = "Utility",
+       category    = "Example", -- "Utility"
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Lua Task Force",
        description = [[An Example Midi Generator for prototyping.]]
 }
 
index 6d8feda8a5d4a932a0c40820d2f6e37207662e15..fdcda4b44fdac5c61fe904592eb0fd8a7b25b70a 100644 (file)
@@ -1,6 +1,7 @@
 ardour {
        ["type"]    = "EditorHook",
        name        = "OSC Callback Example",
+       author      = "Ardour Lua Task Force",
        description = "Send OSC messages",
 }
 
index 76fd491a041a9fcf8b317e6fcd052e4c32aaf429..72aa89673637a2601483370db272d263f67ea42b 100644 (file)
@@ -3,7 +3,7 @@ ardour {
        name        = "Midi Passthru",
        category    = "Example",
        license     = "MIT",
-       author      = "Ardour Team",
+       author      = "Ardour Lua Task Force",
        description = [[An Example Audio/MIDI Passthrough Plugin using Buffer Pointers]]
 }
 
index a1ff0541b94a52e3af3bc65e19f4dd42d23dc1b4..0461e885671804ac18bdfcf017c6e6597be9dd4c 100644 (file)
@@ -1,8 +1,6 @@
 ardour { ["type"] = "EditorAction", name = "Remove Unknown Plugins",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Team",
        description = [[Remove all unknown plugins/processors from all tracks and busses]]
 }
 
index 09dc3c861727df377056c0b080cd5390b97f50dc..88e150612c93fe49e45058595558ae3759c4cef5 100644 (file)
@@ -1,6 +1,8 @@
 ardour {
        ["type"]    = "EditorAction",
        name        = "Rewind",
+       author      = "Ardour Lua Task Force",
+       description = [[An Example Ardour Editor Action Script.]]
 }
 
 function factory (params)
index 49f05c329b62d1db1a9d2f413a1e6a5ca984f70a..6a4a372f8d981b551420e0675103a88b046b1101 100644 (file)
@@ -1,10 +1,7 @@
 ardour {
        ["type"]    = "session",
        name        = "Good Night",
-       license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Lua Task Force",
        description = [[
        Example Ardour Session Script.
        Session scripts are called at the beginning of every process-callback (before doing any audio processing).
index 140fb7a98d45b33fe8f13c6453648a7dca1b4ead..f710a9f2057a88e4e46bfc90736b1ad5e305f185 100644 (file)
@@ -2,9 +2,7 @@ ardour {
        ["type"]    = "session",
        name        = "Stop at Marker",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Lua Task Force",
        description = [[An example session script which stops the transport on every location marker when rolling forward.]]
 }
 
index 9d04e29ec12216dff5d2a229faaba5667ca535af..90da05d41e8b1604bdf687cc39d87f3edc247942 100644 (file)
@@ -3,10 +3,8 @@ ardour {
        name        = "Simple Synth",
        category    = "Instrument",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
-       description = [[An Example Synth for prototyping.]]
+       author      = "Ardour Lua Task Force",
+       description = [[An Example Synth for Prototyping.]]
 }
 
 function dsp_ioconfig ()
index f1bca82068981aa94f956b96316a7c0ce6103321..0f424e7158d80354b51bbd6924fa1299974c22a8 100644 (file)
@@ -1,8 +1,6 @@
 ardour { ["type"] = "EditorAction", name = "Tom's Loop",
        license     = "MIT",
-       author      = "Robin Gareus",
-       email       = "robin@gareus.org",
-       site        = "http://gareus.org",
+       author      = "Ardour Team",
        description = [[Bounce the loop-range of all non muted audio tracks, paste N times at playhead]]
 }
 
index 5f211ef511724aabe2ffe440ef3022359df8eb7d..45219eb1daf3b95a9481e0cc04d7f3b791034b34 100644 (file)
@@ -2,13 +2,9 @@ ardour {
        ["type"]    = "dsp",
        name        = "Voice/Level Activate",
        category    = "Utility",
+       author      = "Ardour Team",
        license     = "MIT",
-       author      = "Robin Gareus",
-       authoremail = "robin@gareus.org",
-       site        = "http://gareus.org",
-       description = [[
-       An Example Audio Plugin that rolls the transport
-       when the signal level on the plugin's input exceeds a given threshold.]]
+       description = [[Roll the transport when the signal level on the plugin's input exceeds a given threshold.]]
 }
 
 function dsp_ioconfig ()