从幅度和比特率计算频率 [英] Calculating frequency from amplitude and bitrate

查看:151
本文介绍了从幅度和比特率计算频率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在有一个数组全面数据,这些数据从我相信这是我的wave文件的幅度。这是目前在低-32768,并在一个较高的32767。

I currently have an array full of data which from what I believe is the Amplitude of my wave file. It is currently at a low -32768 and at a high 32767.

我也有采样率这是16,000hz。

I also have the SampleRate which was 16,000hz.

我的声音的理解不是很好;从这个没有人知道我是如何计算的频率?

My understanding of sound isn't very good; does anyone know from this how I can calculate the Frequency?

帮助很大AP preciated,

Help greatly appreciated,

Monkeyguy。

Monkeyguy.

推荐答案

它到底是什么,你想要做什么?该方法将完全取决于你希望什么来实现的。你有包含单个正弦波,例如,一个探测器由一块机械设备的信号?或者更可能的是,你想要玩/唱成麦克风和录制音乐?

What exactly is it that you're wanting to do? The method will depend entirely on what you're hoping to achieve. Do you have a signal that contains a single sinusoid, eg a detector from a piece of mechanical equipment? Or more likely, are you wanting to play/sing into a microphone and transcribe the music?

在这两种情况下,FFT就会调用你的第一个端口。在第一种情况下,这可能是pretty的多你所需要的,因为FFT的是良好的隔离稳态正弦波。在后一种情况下,你才能得到任何有用的结果都得到了一个很长的路要走你。音高的识别是一个棘手的问题,而只是抛出一些的FFT不会让你很远。你需要有一个良好的接地在数字信号处理和音乐信号也的特点,然后可能是你最好的选择是使用自相关基础的方法来代替。

In both cases, the FFT will be your first port of call. In the first case this may be pretty much all you need, as FFTs are good for isolated steady-state sinusoids. In the latter case, you have got a very long road ahead of you in order to get any useful results at all. Pitch recognition is a difficult problem, and merely throwing some FFTs won't get you very far. You'll need to have a good grounding in digital signal processing and also the characteristics of musical signals, and then probably your best bet is to use an autocorrelation based method instead.

请参阅对一些链接,它们很有用相关的主题我的previous答案:<一href="http://stackoverflow.com/questions/3141927/algorithms-for-determining-the-key-of-an-audio-sample/3142776#3142776">http://stackoverflow.com/questions/3141927/algorithms-for-determining-the-key-of-an-audio-sample/3142776#3142776

See my previous answer on a related subject for some links which may be useful: http://stackoverflow.com/questions/3141927/algorithms-for-determining-the-key-of-an-audio-sample/3142776#3142776

这篇关于从幅度和比特率计算频率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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