fix x-fades (part one)
authorRobin Gareus <robin@gareus.org>
Fri, 30 Nov 2012 15:51:08 +0000 (15:51 +0000)
committerRobin Gareus <robin@gareus.org>
Fri, 30 Nov 2012 15:51:08 +0000 (15:51 +0000)
commit1b6d9aa4305895bfbfb0f73f24e6d9a1850e1cc6
tree0facefcb3e7ad25e387b4b1661ca74c8c5011958
parent8a819a80d0cc00a2fd04b2cb090b5f4730cc3216
fix x-fades (part one)

The data from the lower layer(s) was not faded out because
the reversed gain curve was incorrect because ControlList:add()
inserts anchor points.

a call to reverse_curve() for a linear fade produced:
 INPUT: [when,val]  {[0.0, 0.0], [300.0, 1.0]}
 OUTPUT: (reversed) {[0.0, 0.0], [0.0, 1.0], [1.0, 0,0], [300.0, 0.0]}

solution: use fast_simple_add() instead.

git-svn-id: svn://localhost/ardour2/branches/3.0@13572 d708f5d6-7413-0410-9779-e7cbd77b26cf
libs/ardour/audioregion.cc