try to improve the ill-conceived fade_range action

This commit is contained in:
Ben Loftis 2015-05-19 14:19:59 -05:00
parent 456d9256fe
commit c2ee36abc6

View file

@ -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);