diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-07 13:01:59 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-07 13:01:59 +0000 |
commit | aeff4ebb79cf80db69a02e0175aa1af4097705e1 (patch) | |
tree | 6cf7f2e5692479d2534f244681a33772e811ab60 /libs/ardour/amp.cc | |
parent | fc32ea76423d8dc4d393970531e8249f6811afcb (diff) |
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
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r-- | libs/ardour/amp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |