GNU Radio 3.6.5 C++ API
|
00001 /*---------------------------------------------------------------------------*\ 00002 00003 FILE........: sine.h 00004 AUTHOR......: David Rowe 00005 DATE CREATED: 1/11/94 00006 00007 Header file for sinusoidal analysis and synthesis functions. 00008 00009 \*---------------------------------------------------------------------------*/ 00010 00011 /* 00012 Copyright (C) 2009 David Rowe 00013 00014 All rights reserved. 00015 00016 This program is free software; you can redistribute it and/or modify 00017 it under the terms of the GNU Lesser General Public License version 2.1, as 00018 published by the Free Software Foundation. This program is 00019 distributed in the hope that it will be useful, but WITHOUT ANY 00020 WARRANTY; without even the implied warranty of MERCHANTABILITY or 00021 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00022 License for more details. 00023 00024 You should have received a copy of the GNU Lesser General Public License 00025 along with this program; if not, see <http://www.gnu.org/licenses/>. 00026 */ 00027 00028 #ifndef __SINE__ 00029 #define __SINE__ 00030 00031 #include "defines.h" 00032 #include "comp.h" 00033 00034 void make_analysis_window(float w[], COMP W[]); 00035 float hpf(float x, float states[]); 00036 void dft_speech(COMP Sw[], float Sn[], float w[]); 00037 void two_stage_pitch_refinement(MODEL *model, COMP Sw[]); 00038 void estimate_amplitudes(MODEL *model, COMP Sw[], COMP W[]); 00039 float est_voicing_mbe(MODEL *model, COMP Sw[], COMP W[], COMP Sw_[],COMP Ew[], 00040 float prev_Wo); 00041 void make_synthesis_window(float Pn[]); 00042 void synthesise(float Sn_[], MODEL *model, float Pn[], int shift); 00043 00044 #endif