From: Paul Davis Date: Mon, 7 Mar 2011 13:01:59 +0000 (+0000) Subject: make sure that fade in and fade out curves reach their target (1.0 and 0.0) rather... X-Git-Tag: 3.0-alpha5~409 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=aeff4ebb79cf80db69a02e0175aa1af4097705e1 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 --- 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) {