⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pitchdetect.h

📁 Intel开发的IPP库的应用实例
💻 H
字号:
/*
//
//                  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -