mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
try to improve the ill-conceived fade_range action
This commit is contained in:
parent
456d9256fe
commit
c2ee36abc6
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue