Real-time pitch detection using FFT(使用 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 的实时音高检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 FFT 的实时音高检测
基础教程推荐
- C++:获取传递给函数的多维数组的行大小 2021-01-01
- 如何部分禁用 cmake C/C++ 自定义编译器检查 2021-01-01
- 随机插入/删除的综合向量与链表基准 2022-01-01
- 如何更改 SysDateTimePick32 或 CDateTimeCtrl 的背景颜色? 2022-01-01
- 为什么我们不能使用“虚拟继承"?在 COM 中? 2022-01-01
- 将不可复制的闭包对象传递给 std::function 参数 2021-01-01
- 如何在 C++ 中正确使用命名空间? 2022-01-01
- 与 CAS 的原子交换(使用 gcc 同步内置函数) 2022-01-01
- c++ STL设置差异 2022-01-01
- 提升 ASIO 流缓冲 2021-01-01
