AVAudio检测音符/俯仰/等。 iPhone X $ C $ç的Objective-C [英] AVAudio detect note/pitch/etc. iPhone xcode objective-c

查看:215
本文介绍了AVAudio检测音符/俯仰/等。 iPhone X $ C $ç的Objective-C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做的iPhone应用程序,我需要的检测通过麦克风来的声音调的方式。 (即A#,G,C♭等)
我以为我会使用AVAudio,但我真的不知道,我不能找到文档中的任何东西。

I'm making an app on the iphone and I need a way of detecting the tune of the sounds coming in through the microphone. (I.e. A#, G, C♭, etc.) I assumed I'd use AVAudio but I really don't know and I can't find anything in the documentation..

任何帮助吗?

推荐答案

音符只不过是声音的特定频率多。您将需要一种方法来分析所有频率的在你的输入信号,然后找到一种方法,在各个音符隔离开来。

Musical notes are nothing more than specific frequencies of sound. You will need a way to analyze all of the frequencies in your input signal, and then find a way to isolate the individual notes.

在音频信号中发现频率使用快速傅立叶变换(FFT)的完成。有很多可用的源$ C ​​$ C线上从音频信号计算FFT的。特别是, 的Oscope提供iPhone的一个开源的解决方案。

Finding frequencies in an audio signal is done using the Fast Fourier Transform (FFT). There is plenty of source code available online to compute the FFT from an audio signal. In particular, oScope offers an open-source solution for the iPhone.

编辑: 基音检测 的似乎是你正在尝试做的技术名称。到<一个答案href=\"http://stackoverflow.com/questions/1457228/pitch-recognition-of-musical-notes-on-a-smart-phone\">similar 的问题在这里SO可以使用。

Pitch detection seems to be the technical name for what you are trying to do. The answers to a similar question here on SO may be of use.

这篇关于AVAudio检测音符/俯仰/等。 iPhone X $ C $ç的Objective-C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆