From eda049116930e306231ce58d36e9b87bbe07b678 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 26 Apr 2012 19:29:41 +0000 Subject: [PATCH] slightly explanatory comment for crossfading git-svn-id: svn://localhost/ardour2/branches/3.0@12099 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/audioregion.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index e4a7504ec1..8992f8ccca 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -531,7 +531,12 @@ AudioRegion::_read_at (const SourceList& srcs, framecnt_t limit, } - /* APPLY FADES TO THE DATA IN mixdown_buffer AND MIX THE RESULTS INTO buf */ + /* APPLY FADES TO THE DATA IN mixdown_buffer AND MIX THE RESULTS INTO + * buf. The key things to realize here: (1) the fade being applied is + * (as of April 26th 2012) just the inverse of the fade in curve (2) + * "buf" contains data from lower regions already. So this operation + * fades out the existing material. + */ if (fade_in_limit != 0) { _fade_in->curve().get_vector (internal_offset, internal_offset + fade_in_limit, gain_buffer, fade_in_limit);