Remove the remaining SPECT_EDITOR code from espeakedit.

This commit is contained in:
Reece H. Dunn
2015-12-28 11:18:48 +00:00
parent 1a36df1206
commit cc66180705
-13
View File
@@ -747,11 +747,6 @@ int PeaksToHarmspect(wavegen_peaks_t *peaks, int pitch, int *htab, int control)
int ix;
int h1;
#ifdef SPECT_EDITOR
if (harm_sqrt_n > 0)
return HarmToHarmspect(pitch, htab);
#endif
// initialise as much of *out as we will need
if (wvoice == NULL)
return 1;
@@ -888,14 +883,6 @@ static void AdvanceParameters()
if ((peaks[ix].height = (int)peaks[ix].height1) < 0)
peaks[ix].height = 0;
}
#ifdef SPECT_EDITOR
if (harm_sqrt_n != 0) {
// We are generating from a harmonic spectrum at a given pitch, not from formant peaks
for (ix = 0; ix < harm_sqrt_n; ix++)
harm_sqrt[ix] += harm_sqrt_inc[ix];
}
#endif
}
#ifndef PLATFORM_RISCOS