吉他弦的 FFT 音调检测

发布于 2024-10-08 19:11:12 字数 410 浏览 0 评论 0原文

我只有音高检测。输入(麦克风)数据传递到 fft 例程,然后我正在寻找最大值的音高这意味着:

Max(pow(data[i].getRe(), 2) + pow(data[i].getIm(), 2)) for 0<= i < SAmplesSize

我需要它来检测吉他弦的主频率。它适用于频率 440 Hz(也许更高,我没有检查)低至 250 Hz。低于该值,检测到的频率是应有的两倍,即。对于 195 Hz,检测到的频率约为 380 Hz。看起来它可以检测到 250 Hz 以下的高次谐波。对于纯 195 Hz 音调,它可以完美检测,但对于 Quitar 字符串,则出现问题。

有什么建议可能导致这种情况吗?或者我应该使用更复杂的音调检测?

诗。采样率:8000hz,输入数据大小:1024

I have simply pitch detection. Input (microphone) data are passed to fft routine, then I'm looking for a pitch with maximum value It means:

Max(pow(data[i].getRe(), 2) + pow(data[i].getIm(), 2)) for 0<= i < SAmplesSize

I need it for detection of guitar string's primary frequency. It works well for freq 440 hz (and maybe higher, i didn't check that) downto 250 hz. Below this value detected frequency is twice as high as it should be, ie. for 195 hz detected frequency is about 380 hz. It looks like it detects higher harmonics below 250 hz. For pure 195 hz tone it detects perfectly, but for quitar string something is wrong.

Any suggestion what can cause that ? Or should I use more sophisticated pitch detection?

Ps. sampling rate: 8000hz, input data size: 1024

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不忘初心 2024-10-15 19:11:12

我对吉他不太了解,但是缺少基础知识在声学领域似乎很常见。维基百科页面上的音高检测提到了FFT之后的二次处理步骤,也许其中之一会乐于助人。

另外,请参阅这两个问题,其中有很多很好的信息:(1)(2)< /a>.

I don't know about guitars specifically, but missing fundamentals seem to be quite common in acoustics. The Wikipedia page on pitch detection alludes to secondary processing steps after the FFT, perhaps one of these would be helpful.

Also, see these two SO questions, lots of good information there: (1), (2).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文