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:
parent
fc32ea7642
commit
aeff4ebb79
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user