[1.29.01] <prosody pitch> when specified as semitones had no effect.

lang cs: mbrola phoneme translation was missing phoneme [R^]


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@82 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-09-04 09:20:28 +00:00
parent 75f0402750
commit 943e8b300e
7 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -1004,8 +1004,10 @@ static int attr_prosody_value(int param_type, const wchar_t *pw, int *value_out)
if((tail[0]=='s') && (tail[1]=='t'))
{
double x;
// convert from semitones to a frequency percentage
*value_out = (int)(pow(double(2.0),double((value*sign)/12) * 100));
x = pow(double(2.0),double((value*sign)/12)) * 100;
*value_out = (int)x;
return(2); // percentage
}