如何捕捉到事件时的音频频谱达到特定的高度,就像一个响亮的声音做出触发事件? [英] How to catch the event when spectrum of an audio reached a specific height, like triggered event made by a loud sound?

查看:271
本文介绍了如何捕捉到事件时的音频频谱达到特定的高度,就像一个响亮的声音做出触发事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有玩家,波形发生器,频谱分析仪,其中时间将被记录列表框中的计划。这些东西都在工作。现在,我想添加的功能,当你播放的音频文件,并且它达到一定的阈值或频谱的最大峰值,目前该事件的时间将被记录到列表框中。我设法在列表框中添加时间所以现在,我唯一的问题是如何检测的事件。我曾经在FFT频谱分析仪,但我,M停留在此。我怎么能这样使用我目前的资源,如FFT,波形发生器,频谱分析仪等办?

I already have the program of the player, wave form generator, spectrum analyzer, the list box where the time will be recorded. These stuffs are working. Now, I want to add the feature, when you will play the audio file, and it reached the certain threshold or the max peak of the spectrum, the time of that current event will be recorded to the list box. I managed to add time in the list box so now, my only problem is how to detect the event. I used FFT in the spectrum analyzer, but I;m stuck on this. How can I do this using my current resources like FFT, waveform generator, spectrum analyzer, etc?

这是我所需要的,


  1. 当我播放音频和声音达到一定阈值,则流的当前时间将被记录下来。

感谢你这么多。我死了行会后36小时。每一个帮助将AP preciated。我的未来取决于此。祝我好运。 :) 多谢你们!请给我一个样品或做确切的事情。如果您需要了解更多信息,我的项目,我会给你我的资源。谢谢!上帝保佑。

Thank you so much. My dead line will be after 36 hours. Every help will be appreciated. My future depends on this. Good luck to me. :) thanks guys! please give me a sample or the exact thing to do. I'll give you my resources if you need further information to my project. Thanks! God Bless.

P.S。这个项目需要一个小鼓探测器。但我没有多少时间了,所以我决定不检测的圈套,但频谱的最高峰,因为大部分时间,小鼓产生比其他乐器,如低音,钹最高峰。谢谢你们!

P.S. This project requires a snare drum detector. but i dont have much time left so I decided to detect not the snare, but the highest peak of the spectrum, because most of the time, the snare drum generates the highest peak than other instruments like bass, cymbals. Thanks guys!

推荐答案

如果你只是想看看当信号变得非常强大,你不需要FFT。您可以使用所涉及的时间和频域的动力 Parseval定理。这使您可以创建一个O(1)滑动窗能量检测器从平方样本的移动平均线。

If you just want to see when the signal gets very powerful, you don't need an FFT. You can use Parseval's Theorem that relates the power of the time and frequency domains. This allows you to create an O(1) sliding window energy detector from a moving average of squared samples.

顺便说一句,这正是那种问题是相关的的DSP堆栈交易所

BTW, this is exactly the sort of question that is relevant on the DSP Stack Exchange

这篇关于如何捕捉到事件时的音频频谱达到特定的高度,就像一个响亮的声音做出触发事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆