head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2009.03.27.09.44.52; author rse; state Exp; branches; next 1.1; commitid bpOF5rikR6ooCEHt; 1.1 date 2008.10.12.08.19.24; author rse; state Exp; branches; next ; commitid Zf5k5g9UuR2Ttjmt; desc @@ 1.2 log @upgrading package: cgstmad 0.17 -> 0.24 @ text @@ 1.1 log @new package: cgstmad 0.17 (Articulatory Speech Synthesizer) @ text @a0 23 Index: src/error.cpp --- src/error.cpp.orig 2008-10-07 16:50:05 +0200 +++ src/error.cpp 2008-10-11 23:51:21 +0200 @@@@ -18,6 +18,7 @@@@ #include "error.h" #include +#include Index: src/util.cpp --- src/util.cpp.orig 2008-09-10 16:30:13 +0200 +++ src/util.cpp 2008-10-11 23:55:23 +0200 @@@@ -128,7 +128,7 @@@@ FloatValue pitch(FloatValue frequency) { - return log2(frequency / PITCH_BASE) * 12.0 - PITCH_OFFSET; + return (log(frequency / PITCH_BASE) / log(2)) * 12.0 - PITCH_OFFSET; } /****************************************************************************** @