diff --git a/src/libespeak-ng/wavegen.c b/src/libespeak-ng/wavegen.c index 0e86e6b9..18203da2 100644 --- a/src/libespeak-ng/wavegen.c +++ b/src/libespeak-ng/wavegen.c @@ -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