问题描述
我正在尝试使用 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 的实时音高检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)