-
void InitGoertzel(void)
作用:初始化算法参数
用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter(...
void InitGoertzel(void)
作用:初始化算法参数
用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter()
float CGoertzel::GetMagnitude(unsigned char * sampleData, int length) //算法主接口
作用:对采集下来的音频数据用算法处理,返回一个结果
参数:sampleData-音频数据缓冲地址指针;
length-缓冲区尺寸(音频数据数量),字节数;
返回值:返回算法结果。
void SetParameter(DWORD set_SampleRate, DWORD set_TargetFreq, DWORD set_BlockSize)
作用:设置算法参数;
参数:set_SampleRate-音频数据抽样速率;
set_TargetFreq-目标信号频率;
set_BlockSize-算法数据块尺寸(采样点);
用法:调用本函数后,需要调用一次InitGoertzel(void)才会生效-void InitGoertzel (void) function: initialization algorithm parameters Usage: The algorithm performs a pre-test, if the need to change the parameters, calling SetParameter () float CGoertzel:: GetMagnitude (unsigned char* sampleData, int length)// Algorithm for the main interface role: to collect audio data from the treatment algorithm to return a result parameter: sampleData-audio data buffer address pointer length-buffer size (the number of audio data), number of bytes return value: the return of
- 2023-03-11 13:30:04下载
- 积分:1
-
例子:注:1 P89C669存储。公司的文件夹在第一P89C669文件,…
P89C669存储实例:
说明:
1. inc 文件夹
是关于P89C669的头文件,在使用下面两个例子前,请首先将头文件拷到
..KeilC51INC下.
2. Rom 文件夹
是关于P89C669的程序空间使用的例子,说明怎样利用大于64KB的程序空间。
3. Ram 文件夹
是关于P89C669的数据空间使用的例子,说明怎样在各个数据空间定义变量。
-P89C669 storage examples: Note: 1. Inc folder is on the first P89C669 documents, in the use of the following two examples, please first Kaodao header files .. KeilC51INC under .2. Rom folder P89C669 procedures on space use example of how to make use of the procedure is greater than 64KB of space. 3. Ram folder P89C669 data on space use examples to illustrate how the definition of data space in all variables.
- 2022-05-18 21:13:28下载
- 积分:1
-
OCM12232LCD driven C source ...................
OCM12232LCD的C驱动源码-OCM12232LCD driven C source ...................
- 2022-02-16 02:29:20下载
- 积分:1
-
MCU Pwm to produce motor control hardware and software design, appendix to the s...
用单片机产生Pwm来控制电机的硬件和软件设计,附录为源代码!-MCU Pwm to produce motor control hardware and software design, appendix to the source code!
- 2022-03-25 19:32:05下载
- 积分:1
-
Keil C Proteus 联合仿真的VDM51_dll文件.rar
Keil C Proteus 联合仿真的VDM51_dll文件.rar-Keil C Proteus 联合仿真的VDM51_dll文件.rar
- 2022-08-15 01:09:41下载
- 积分:1
-
嵌入式系统文件系统测试
EMBEDDED SYSTEM FILE SYSTEM TEST
- 2022-03-01 08:55:19下载
- 积分:1
-
单片机的好教程,新手的好老师。简单易懂,赶快下啊!
单片机的好教程,新手的好老师。简单易懂,赶快下啊!-Singlechip good tutorial, good novice teachers. Easy-to-read, as soon as possible under the ah!
- 2022-03-25 21:36:36下载
- 积分:1
-
自己在keil51中用C实现了一个电子钢琴展览项目,cpu用P89V51RD2,完全自己写的代码...
自己在keil51中用C实现了一个电子钢琴展览项目,cpu用P89V51RD2,完全自己写的代码-Keil51 with C in the realization of an electronic piano exhibitions, cpu use P89V51RD2, completely write their own code. .
- 2022-03-13 08:29:18下载
- 积分:1
-
凌阳的LCD演示原码,里面还有LCD的使用说明.
凌阳的LCD演示原码,里面还有LCD的使用说明.
- 2023-08-20 18:50:04下载
- 积分:1
-
用51单片机内部定时器实现数字钟功能,可以显示小时,分,秒,误差很小。...
用51单片机内部定时器实现数字钟功能,可以显示小时,分,秒,误差很小。-51 single-chip microcomputer with internal timer digital clock function, can display hours, minutes and seconds, the error small.
- 2022-04-24 17:53:48下载
- 积分:1