From aeff4ebb79cf80db69a02e0175aa1af4097705e1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 7 Mar 2011 13:01:59 +0000 Subject: [PATCH] make sure that fade in and fade out curves reach their target (1.0 and 0.0) rather than 1 step away from their target git-svn-id: svn://localhost/ardour2/branches/3.0@9086 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/amp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index 230b9f0d6b..5f305182f8 100644 --- a/libs/ardour/amp.cc +++ b/libs/ardour/amp.cc @@ -211,7 +211,7 @@ Amp::declick (BufferSet& bufs, framecnt_t nframes, int dir) const framecnt_t declick = std::min ((framecnt_t) 128, nframes); gain_t delta, initial, target; - double fractional_shift = -1.0/declick; + double fractional_shift = -1.0/(declick-1); double fractional_pos; if (dir < 0) {