13
0

alter computation of inverse constant power curves

git-svn-id: svn://localhost/ardour2/branches/3.0@12255 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-05-11 21:51:38 +00:00
parent 8d828faa64
commit d914c4ec89

View File

@ -1018,7 +1018,7 @@ AudioRegion::set_fade_in (FadeShape shape, framecnt_t len)
_fade_in->fast_simple_add (len*dist, sin (dist*M_PI/2)); _fade_in->fast_simple_add (len*dist, sin (dist*M_PI/2));
} }
_fade_in->fast_simple_add (len, 1.0); _fade_in->fast_simple_add (len, 1.0);
generate_inverse_power_curve (_inverse_fade_in, _fade_in); reverse_curve (_inverse_fade_in, _fade_in);
break; break;
case FadeSymmetric: case FadeSymmetric:
@ -1094,7 +1094,7 @@ AudioRegion::set_fade_out (FadeShape shape, framecnt_t len)
_fade_out->fast_simple_add ((len * dist), cos(dist*M_PI/2)); _fade_out->fast_simple_add ((len * dist), cos(dist*M_PI/2));
} }
_fade_out->fast_simple_add (len, VERY_SMALL_SIGNAL); _fade_out->fast_simple_add (len, VERY_SMALL_SIGNAL);
generate_inverse_power_curve (_inverse_fade_out, _fade_out); reverse_curve (_inverse_fade_out, _fade_out);
break; break;
case FadeSymmetric: case FadeSymmetric: