diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2015-05-19 14:19:59 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2015-05-19 14:19:59 -0500 |
commit | c2ee36abc66217b4c750bbe6878ce4a0ea3ee9d8 (patch) | |
tree | d1d482caf1aeb0b55790079356368631a3cdc113 /libs/ardour | |
parent | 456d9256fe8ac4ad147b95b925a8b9459b80a023 (diff) |
try to improve the ill-conceived fade_range action
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/audioregion.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 026de0713b..61d8952e52 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -964,11 +964,13 @@ AudioRegion::fade_range (framepos_t start, framepos_t end) switch (coverage (start, end)) { case Evoral::OverlapStart: + trim_front(start); s = _position; e = end; set_fade_in (FadeConstantPower, e - s); break; case Evoral::OverlapEnd: + trim_end(end); s = start; e = _position + _length; set_fade_out (FadeConstantPower, e - s); |