mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-22 21:27:22 +01:00
Re-brand a-* plugins as Ardour Community Effects (ACE)
This commit is contained in:
parent
e4cb7a14e8
commit
46e895aaad
26 changed files with 51 additions and 51 deletions
|
|
@ -46,13 +46,13 @@ function factory (params)
|
|||
|
||||
-- apply the trim
|
||||
trim = t:nth_processor (fader_pos+1)
|
||||
if (not trim:isnil() and trim:display_name () == "a-Amplifier") then
|
||||
if (not trim:isnil() and trim:display_name () == "ACE Amplifier") then
|
||||
--existing trim found; sum the trim and the fader gain, and set the trim to that value
|
||||
cur_gain = ARDOUR.LuaAPI.get_processor_param (trim, 0)
|
||||
ARDOUR.LuaAPI.set_processor_param (trim, 0, trim_gain+cur_gain)
|
||||
else
|
||||
--create a new Trim processor, and set its value to match the fader
|
||||
local a = ARDOUR.LuaAPI.new_luaproc(Session, "a-Amplifier");
|
||||
local a = ARDOUR.LuaAPI.new_luaproc(Session, "ACE Amplifier");
|
||||
if (not a:isnil()) then
|
||||
t:add_processor_by_index(a, fader_pos-1, nil, true)
|
||||
ARDOUR.LuaAPI.set_processor_param (a, 0, trim_gain)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue