2010-09-21 12:35:41 -05:00
|
|
|
/*---------------------------------------------------------------------------*\
|
|
|
|
|
|
|
|
FILE........: sine.h
|
|
|
|
AUTHOR......: David Rowe
|
|
|
|
DATE CREATED: 1/11/94
|
|
|
|
|
|
|
|
Header file for sinusoidal analysis and synthesis functions.
|
|
|
|
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
Copyright (C) 2009 David Rowe
|
|
|
|
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser General Public License version 2.1, as
|
|
|
|
published by the Free Software Foundation. This program is
|
|
|
|
distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
|
|
License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
2012-12-20 20:08:42 -06:00
|
|
|
along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2010-09-21 12:35:41 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SINE__
|
|
|
|
#define __SINE__
|
|
|
|
|
2012-12-20 20:08:42 -06:00
|
|
|
#include "defines.h"
|
|
|
|
#include "comp.h"
|
|
|
|
#include "kiss_fft.h"
|
|
|
|
|
|
|
|
void make_analysis_window(kiss_fft_cfg fft_fwd_cfg, float w[], COMP W[]);
|
|
|
|
float hpf(float x, float states[]);
|
|
|
|
void dft_speech(kiss_fft_cfg fft_fwd_cfg, COMP Sw[], float Sn[], float w[]);
|
2010-09-21 12:35:41 -05:00
|
|
|
void two_stage_pitch_refinement(MODEL *model, COMP Sw[]);
|
|
|
|
void estimate_amplitudes(MODEL *model, COMP Sw[], COMP W[]);
|
2012-12-20 20:08:42 -06:00
|
|
|
float est_voicing_mbe(MODEL *model, COMP Sw[], COMP W[], COMP Sw_[],COMP Ew[],
|
|
|
|
float prev_Wo);
|
2010-09-21 12:35:41 -05:00
|
|
|
void make_synthesis_window(float Pn[]);
|
2012-12-20 20:08:42 -06:00
|
|
|
void synthesise(kiss_fft_cfg fft_inv_cfg, float Sn_[], MODEL *model, float Pn[], int shift);
|
2010-09-21 12:35:41 -05:00
|
|
|
|
|
|
|
#endif
|