-
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
-
本程序实现通过BDM方式访问MOTOROLA 9S12单片机EEPROM,可自动配置波特率,包含读、写、擦除三种功能。...
本程序实现通过BDM方式访问MOTOROLA 9S12单片机EEPROM,可自动配置波特率,包含读、写、擦除三种功能。-This procedure, through BDM realize MOTOROLA 9S12 Singlechip access EEPROM, can automatically configure the baud rate, including reading, writing, erasing three functions.
- 2023-06-06 22:05:03下载
- 积分:1
-
This is a low
这是msp430 进入低功耗的例程,请查收,接下来还有-This is a low-power MSP430 into the routine, please check, then there
- 2022-07-20 17:06:44下载
- 积分:1
-
IEEE754 浮点数与半浮点数相互转换
IEEE754 浮点数与半浮点数相互转换-IEEE754 floating-point and semi-floating-point conversion between
- 2023-04-04 03:20:03下载
- 积分:1
-
MSP430常用的源代码,很全的,慢慢找吧,一定能找你要的!
MSP430常用的源代码,很全的,慢慢找吧,一定能找你要的!-MSP430 common source code, the whole very slowly find it, we were able to find what you want!
- 2022-06-01 12:07:08下载
- 积分:1
-
凌阳单片机(SPCE061A)IIC总线驱动程序
凌阳单片机(SPCE061A)IIC总线驱动程序-Sunplus Singlechip (SPCE061A) IIC bus driver
- 2022-10-27 18:50:03下载
- 积分:1
-
直流电机的闭环控制 实验采用89C51,编译环境 Keil C 51
直流电机的闭环控制 实验采用89C51,编译环境 Keil C 51-Closed-loop DC motor control experiment using 89C51, compiler environment Keil C 51
- 2022-04-27 03:55:18下载
- 积分:1
-
本人所做项目中用51系列单片机(STC89C58RD)对OCMJ8*15B液晶屏进行数据写操作时所写的配套源代码,可以直接在keil7.0以上的版本中嵌入开发!...
本人所做项目中用51系列单片机(STC89C58RD)对OCMJ8*15B液晶屏进行数据写操作时所写的配套源代码,可以直接在keil7.0以上的版本中嵌入开发!应该说本程序有很高的实用价值(本人开发的产品已应用于实际工业控制中)-I conducted a series of 51 projects using SCM (STC89C58RD)* 15 OCMJ8 B LCD screen for data write operation written by supporting source code, keil7.0 directly on the above versions embedded development! It should be said that this program has high practical value (I development of the product has been used in practical industrial control)
- 2023-05-21 14:50:03下载
- 积分:1
-
mega32 contral de voltage for background etc.,through TIMER0 and TIMER2 using PW...
avr32通过定时器0\2的PWM来调整t6963对比及背光电平。-mega32 contral de voltage for background etc.,through TIMER0 and TIMER2 using PWM
- 2022-01-26 01:44:59下载
- 积分:1
-
AVR单片机对温度测量芯片DS18B20进行读取操作
AVR单片机对温度测量芯片DS18B20进行读取操作-AVR micro-chip temperature measurement read operation DS18B20
- 2022-06-18 18:34:21下载
- 积分:1