[1.29.17] Limit the minimum pitch (including flutter) to 25Hz.

git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@99 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-11-08 11:07:22 +00:00
parent 960fc6dfdc
commit b8e4fd103a
10 changed files with 69 additions and 22 deletions
+3 -2
View File
@@ -892,7 +892,7 @@ int PeaksToHarmspect(wavegen_peaks_t *peaks, int pitch, int *htab, int control)
{
htab[h++] += pk_shape[(fp-f)/(p->left>>8)] * p->height;
}
for(;f < fhi; f+=pitch)
for(; f < fhi; f+=pitch)
{
htab[h++] += pk_shape[(f-fp)/(p->right>>8)] * p->height;
}
@@ -969,7 +969,8 @@ static void AdvanceParameters()
x = ((int)(Flutter_tab[Flutter_ix >> 6])-0x80) * flutter_amp;
Flutter_ix += Flutter_inc;
pitch += x;
if(pitch < 102400)
pitch = 102400; // min pitch, 25 Hz (25 << 12)
if(samplecount == samplecount_start)
return;