pitchdetect.h

来自「Intel开发的IPP库的应用实例」· C头文件 代码 · 共 45 行

H
45
字号
/*
//
//                  INTEL CORPORATION PROPRIETARY INFORMATION
//     This software is supplied under the terms of a license agreement or
//     nondisclosure agreement with Intel Corporation and may not be copied
//     or disclosed except in accordance with the terms of that agreement.
//          Copyright(c) 1999-2006 Intel Corporation. All Rights Reserved.
//
//     Intel(R) Integrated Performance Primitives Speech Processing Sample for Windows*
//
//  By downloading and installing this sample, you hereby agree that the
//  accompanying Materials are being provided to you under the terms and
//  conditions of the End User License Agreement for the Intel(R) Integrated
//  Performance Primitives product previously accepted by you. Please refer
//  to the file ippEULA.rtf located in the root directory of your Intel(R) IPP
//  product installation for more information.
//
*/

#define SAMPLE_SHIFT 4
#define SAMPLE_RATE 16000

#define MIN_PITCH      50.0f /* Hz */
#define MAX_PITCH     250.0f /* Hz */

#define STEP          4
#define SILENTSTEP    2

#define SILDETLEN 160
#define STARTBLOCK 4
#define STOPBLOCK 35


#define TMIN          0.78f
#define TMAX_RATIO    0.80f
#define THIGH         0.85f
#define TDH           0.75f

typedef struct _PitchStruct{
   float* Freq;
   int* Frame;
}PitchStruct;

int PitchDetector(short *pInBuffer, int nInLength, _PitchStruct *pPitch);

⌨️ 快捷键说明

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