本文介绍了使用 FFT 的实时音高检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 C++ 进行实时音高检测.我正在测试来自 performous 的一些代码(http://performous.org/),因为其他一切都没有为我工作.我确信这行得通,但我无法让它发挥作用.我已经尝试了几个星期,但我一直无法让任何音高检测代码工作.

I'm trying to do real-time pitch detection using C++. I'm testing some code from performous (http://performous.org/), because everything else hasn't worked for me. I know for sure that this works, but i just cant get it to work. I've been trying this for a few weeks now, and I haven't been able to get any pitch detection code working.

推荐答案

您应该创建一个已知单一频率的数据,并通过程序运行它,看看它是否能得到正确的结果,而不是使用来自麦克风的输入.然后你可以给它添加谐波,看看是否有效.真实世界的数据对于初始测试来说变化太大.

Instead of using input from the mic, you should create data of a known single frequency and run that through the program and see if it gets you the correct result. Then you can add harmonics to it and see if that works. Real world data is just too variable for initial testing.

这篇关于使用 FFT 的实时音高检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-25 23:58