f0_structs.h

来自「speech signal process tools」· C头文件 代码 · 共 65 行

H
65
字号
/* * This material contains unpublished, proprietary software of  * Entropic Research Laboratory, Inc. Any reproduction, distribution,  * or publication of this work must be authorized in writing by Entropic  * Research Laboratory, Inc., and must bear the notice:  * *    "Copyright (c) 1990-1996 Entropic Research Laboratory, Inc.  *                   All rights reserved" * * The copyright notice above does not evidence any actual or intended  * publication of this source code.      * * Written by:  David Talkin * Checked by: * Revised by: * @(#)f0_structs.h	1.7 9/9/96 ERL * Brief description: * *//* f0_structs.h */#define BIGSORD 100typedef struct cross_rec { /* for storing the crosscorrelation information */	float	rms;	/* rms energy in the reference window */	float	maxval;	/* max in the crosscorr. fun. q15 */	short	maxloc; /* lag # at which max occured	*/	short	firstlag; /* the first non-zero lag computed */	float	*correl; /* the normalized corsscor. fun. q15 */} Cross;typedef struct dp_rec { /* for storing the DP information */	short	ncands;	/* # of candidate pitch intervals in the frame */	short	*locs; /* locations of the candidates */	float	*pvals; /* peak values of the candidates */	float	*mpvals; /* modified peak values of the candidates */	short	*prept; /* pointers to best previous cands. */	float	*dpvals; /* cumulative error for each candidate */} Dprec;typedef struct windstat_rec {  /* for lpc stat measure in a window */    float rho[BIGSORD+1];    float err;    float rms;} Windstat;typedef struct sta_rec {  /* for stationarity measure */  float *stat;  float *rms;  float *rms_ratio;} Stat;typedef struct frame_rec{  Cross *cp;  Dprec *dp;  float rms;  struct frame_rec *next;  struct frame_rec *prev;} Frame;extern   Frame *alloc_frame();

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?