问题描述
我正在尝试编写一个简单的调音器(不,不是要制作另一个调音器应用程序),并且正在查看 AurioTouch 示例源(有没有人尝试评论此代码??).
I'm trying to write a simple tuner (no, not to make yet another tuner app), and am looking at the AurioTouch sample source (has anyone tried to comment this code??).
我担心的是,在查看频域图时,aurioTouch 似乎实际上并不能很好地工作.我在乐器上弹奏一个音符,但我没有看到一组排列整齐的小频率,在音符的适当频率处有一个弦峰.
My worry is that aurioTouch doesn't seem to actually work very well when looking at the frequency domain graph. I play a single note on an instrument and I don't see a nicely ordered, small, set of frequencies with one string peak at the appropriate frequency of the note.
有没有人使用过 aurioTouch 来知道底层代码是否有效,或者它是否只是一个粗略的样本?
Has anyone used aurioTouch enough to know whether the underlying code is functional or whether it is just a crude sample?
我的其他选择是使用 FFTW 或 KISS FFT.有没有人有这方面的经验?
Other options I have are to use FFTW or KISS FFT. Anyone have any experience with those?
谢谢.
推荐答案
FFT 使用频率区间,区间频率宽度基于 FFT 参数.要找到一个频率,您需要以至少两倍于样本中最高频率的速率对其进行采样.然后找出循环之间的时间.如果不是纯频率,这当然会更难.
FFTs use frequency bins and the bin frequency width is based on the FFT parameters. To find a frequency you will need to record it sampled at a rate at least twice the highest frequency present in the sample. Then find the time between the cycles. If it is not a pure frequency this will of course be harder.
这篇关于AurioTouch &用于乐器调谐器的 FFT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!