-
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
-
基于proteus模拟仿真的单片机开发实例,很简单,很实用,供大家参考学习...
基于proteus模拟仿真的单片机开发实例,很简单,很实用,供大家参考学习-Proteus simulation based on microcontroller development examples, very simple and very practical, for your reference study
- 2022-07-19 02:33:55下载
- 积分:1
-
AD7705的C51读写程序.希望对大家有所帮助!
AD7705的C51读写程序.希望对大家有所帮助!-AD7705 to read and write procedures for the C51. Want to be helpful to everyone!
- 2022-09-16 08:10:02下载
- 积分:1
-
in our company do C51 microcontroller refueling procedures
这是我在我们公司做的C51加油单片机程序-in our company do C51 microcontroller refueling procedures
- 2022-03-26 08:51:43下载
- 积分:1
-
压缩包里包括的51的C与汇编的混合编程,并附有详细的稳当说明,想要深入了解混合编程责不要错过...
压缩包里包括的51的C与汇编的混合编程,并附有详细的稳当说明,想要深入了解混合编程责不要错过-Compression bag included in the compilation of 51 C with a mixture of programming, together with a detailed description of the sound, you want a deeper understanding of mixed programming Select Do not miss
- 2022-04-29 00:32:43下载
- 积分:1
-
AVR单片机之间多机通信(通信方式采用的中断进行)
AVR单片机之间多机通信(通信方式采用的中断进行)-AVR single-chip multi-machine communication between (the interruption of communication used to carry out)
- 2023-05-24 17:20:03下载
- 积分:1
-
用7段显示十六进制值LED显示屏使用中断…
Used to display a hexadecimal value in 7 segment LED display using an interrupt in PORTB upper 4 bits.
- 2022-01-28 10:35:35下载
- 积分:1
-
51单片机 12864液晶 多级菜单编程
51单片机 12864液晶 多级菜单编程-51 MCU 12864LCD Menu Programming
- 2022-02-22 10:18:24下载
- 积分:1
-
Based on Sunplus SPE061A Singlechip Ultrasonic Ranging procedure, with short
基于凌阳单片机SPE061A的超声波测距程序,具有短距离测距,中距离测距和可调距离测距等三种功能,运用凌阳大学计划所提供的开发板,可以很容易实现障碍物距离的检测-Based on Sunplus SPE061A Singlechip Ultrasonic Ranging procedure, with short-distance ranging, ranging in distance from the rangefinder and adjustable three functions, the use of Sunplus University plans provided by a development board, can easily realize the obstacles Detection of objects distance
- 2022-05-31 00:26:56下载
- 积分:1
-
maxim Chinese companies DS1302ZN information sounds very good
maxim公司DS1302ZN中文资料,挺不错的-maxim Chinese companies DS1302ZN information sounds very good
- 2022-04-20 03:23:39下载
- 积分:1