make sure that fade in and fade out curves reach their target (1.0 and 0.0) rather...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Mar 2011 13:01:59 +0000 (13:01 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Mar 2011 13:01:59 +0000 (13:01 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9086 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/amp.cc

index 230b9f0d6b13ab7daa2ed893cb0aa17d21da101f..5f305182f8c8472a1fbd7160e943b4b93ec7d739 100644 (file)
@@ -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) {