From 591292da0fe948e903125354b1a731374c3841e6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 27 Jul 2020 22:03:53 +0200 Subject: [PATCH] a-amp: special case empty pin-mapping mode --- share/scripts/amp5.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/share/scripts/amp5.lua b/share/scripts/amp5.lua index f992d0d029..c0a9b681cf 100644 --- a/share/scripts/amp5.lua +++ b/share/scripts/amp5.lua @@ -44,6 +44,7 @@ function dsp_runmap (bufs, in_map, out_map, n_samples, offset) local ctrl = CtrlPorts:array() -- get control port array local target_gain = ARDOUR.DSP.dB_to_coefficient (ctrl[1]) -- 10 ^ (0.05 * ctrl[1]) local current_gain = cur_gain -- start with the same for all channels + cur_gain = target_gain -- use target gain if no channel is mapped. for c = 1, n_audio do local ob = out_map:get (ARDOUR.DataType ("audio"), c - 1); -- get id of mapped output buffer for given cannel