Update of /cvsroot/audacity/audacity-src/src/effects
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv32746
Modified Files:
ChangePitch.cpp
Log Message:
Fix effect not working in batch mode
Index: ChangePitch.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ChangePitch.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- ChangePitch.cpp 29 May 2007 00:14:56 -0000 1.36
+++ ChangePitch.cpp 29 May 2007 05:47:35 -0000 1.37
@@ -145,6 +145,7 @@
bool EffectChangePitch::TransferParameters( Shuttle & shuttle )
{
shuttle.TransferDouble(wxT("Percentage"),m_PercentChange,0.0);
+ m_SemitonesChange = (12.0 * log((100.0 + m_PercentChange) / 100.0)) /
log(2.0);
return true;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs