Update of /cvsroot/audacity/audacity-src/src/effects
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv2573/effects

Modified Files:
        Normalize.cpp 
Log Message:
adjusting the lowest acceptable level for normalization to -145db.  Not 
modifying dialogs.


Index: Normalize.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/Normalize.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- Normalize.cpp       12 Jul 2008 15:25:47 -0000      1.26
+++ Normalize.cpp       25 Nov 2008 00:14:43 -0000      1.27
@@ -41,8 +41,8 @@
 #include <wx/stattext.h>
 #include <wx/textdlg.h>
 
-#define NORMALIZE_DB_MIN -240
-#define NORMALIZE_DB_MAX 240
+#define NORMALIZE_DB_MIN -145
+#define NORMALIZE_DB_MAX 60
 
 EffectNormalize::EffectNormalize()
 {
@@ -282,9 +282,9 @@
    mMult = 1.0;
    mOffset = 0.0;
    
-   float ratio = pow(10.0,TrapDouble(-mLevel*10,
+   float ratio = pow(10.0,TrapDouble(-mLevel,
                                      NORMALIZE_DB_MIN,
-                                     NORMALIZE_DB_MAX)/200.0);
+                                     NORMALIZE_DB_MAX)/20.0);
 
    if (mDC) {
       mOffset = (float)(-mSum / mCount);


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to