float ak_interp[LPC_MAX];
void *nlp_states;
+ float hpf_states[2];
for(i=0; i<M; i++)
Sn[i] = 1.0;
prev_lsps[i] = i*PI/(LPC_ORD+1);
}
e = prev_e = 1;
+ hpf_states[0] = hpf_states[1] = 0.0;
nlp_states = nlp_create();
for(i=0; i<M-N; i++)
Sn[i] = Sn[i+N];
for(i=0; i<N; i++)
- Sn[i+M-N] = buf[i];
+ Sn[i+M-N] = hpf((float)buf[i], hpf_states);
/* Estimate pitch */
#include "comp.h"
void make_analysis_window(float w[], COMP W[]);
+float hpf(float x, float states[]);
void dft_speech(COMP Sw[], float Sn[], float w[]);
void two_stage_pitch_refinement(MODEL *model, COMP Sw[]);
void estimate_amplitudes(MODEL *model, COMP Sw[], COMP W[]);
-float est_voicing_mbe(MODEL *model, COMP Sw[], COMP W[], COMP Sw_[],COMP Ew[], float prev_Wo);
+float est_voicing_mbe(MODEL *model, COMP Sw[], COMP W[], COMP Sw_[],COMP Ew[],
+ float prev_Wo);
void make_synthesis_window(float Pn[]);
void synthesise(float Sn_[], MODEL *model, float Pn[], int shift);