diff options
author | Robin Gareus <robin@gareus.org> | 2014-05-29 22:40:40 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-05-29 22:41:13 +0200 |
commit | 38891288f3ad60c16832829f5c07c458a35051a9 (patch) | |
tree | 523ce9f01108981bf104dbe60f7bb06318864342 /libs/ardour/audioregion.cc | |
parent | 1cfdad6ffbde0bc937ce352a212614dd7b9d5d61 (diff) |
use fixed number of steps for dB-scale x-fade curves.
32 steps is sufficient for all practical musical purposes.
Diffstat (limited to 'libs/ardour/audioregion.cc')
-rw-r--r-- | libs/ardour/audioregion.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index f76b80dbb6..e07ab961a9 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -991,7 +991,7 @@ AudioRegion::set_fade_in (FadeShape shape, framecnt_t len) _fade_in->clear (); _inverse_fade_in->clear (); - const int num_steps = min((framecnt_t)256, max ((framecnt_t) 16, len / 512)); + const int num_steps = 32; switch (shape) { case FadeLinear: @@ -1069,7 +1069,7 @@ AudioRegion::set_fade_out (FadeShape shape, framecnt_t len) _fade_out->clear (); _inverse_fade_out->clear (); - const int num_steps = min((framecnt_t)256, max ((framecnt_t) 16, len / 512)); + const int num_steps = 32; switch (shape) { case FadeLinear: |