mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 21:58:52 +00:00
[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:
+3
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user