13
0

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
This commit is contained in:
Paul Davis 2011-03-07 13:01:59 +00:00
parent fc32ea7642
commit aeff4ebb79

View File

@ -211,7 +211,7 @@ Amp::declick (BufferSet& bufs, framecnt_t nframes, int dir)
const framecnt_t declick = std::min ((framecnt_t) 128, nframes); const framecnt_t declick = std::min ((framecnt_t) 128, nframes);
gain_t delta, initial, target; gain_t delta, initial, target;
double fractional_shift = -1.0/declick; double fractional_shift = -1.0/(declick-1);
double fractional_pos; double fractional_pos;
if (dir < 0) { if (dir < 0) {