GNU Radio 3.6.5 C++ API
|
00001 /*---------------------------------------------------------------------------*\ 00002 00003 FILE........: nlp.c 00004 AUTHOR......: David Rowe 00005 DATE CREATED: 23/3/93 00006 00007 Non Linear Pitch (NLP) estimation 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 __NLP__ 00029 #define __NLP__ 00030 00031 #include "comp.h" 00032 00033 void *nlp_create(); 00034 void nlp_destroy(void *nlp_state); 00035 float nlp(void *nlp_state, float Sn[], int n, int m, int pmin, int pmax, 00036 float *pitch, COMP Sw[], float *prev_Wo); 00037 float test_candidate_mbe(COMP Sw[], float f0, COMP Sw_[]); 00038 00039 #endif