traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/core Curve.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/core Curve.cpp
Date: Mon, 19 Nov 2007 22:07:06 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/11/19 22:07:06

Modified files:
        src/core       : Curve.cpp 

Log message:
        * only apply last curve node value in ::proces() when we are beyond the 
last node position !

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/Curve.cpp?cvsroot=traverso&r1=1.46&r2=1.47

Patches:
Index: Curve.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/Curve.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -b -r1.46 -r1.47
--- Curve.cpp   19 Nov 2007 11:18:53 -0000      1.46
+++ Curve.cpp   19 Nov 2007 22:07:06 -0000      1.47
@@ -198,7 +198,7 @@
        float gain = lastnode->value * makeupgain;
        
        if (endlocation > qint64(get_range())) {
-               if (gain == 1.0) {
+               if (gain == 1.0f) {
                        return 0;
                }
                for (uint chan=0; chan<channels; ++chan) {
@@ -207,6 +207,8 @@
                return 1;
        }
        
+       gain = makeupgain;
+       
        get_vector(startlocation.universal_frame(), 
endlocation.universal_frame(), m_song->mixdown, nframes);
        
        for (uint chan=0; chan<channels; ++chan) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]