问题描述
我工作的音频调谐器的应用,以调乐器。用户应弹奏音符,然后在我的应用我应该表现出它有它的频率。
I'm working on Audio tuner application in order to tune musical instruments.User should play a note, then in my application I should show which frequency it has.
首先,我要访问话筒?
AudioRecord recorder = new AudioRecord(MediaRecorder.AudioSource.MIC,
sampleRate, AudioFormat.CHANNEL_IN_STEREO,
AudioFormat.ENCODING_PCM_16BIT, bufferSize);
然后,我需要计算的声音频率。我怎样才能做到这一点?
Then I need to calculate frequency of sound. How can I do this?
推荐答案
我也想做到这一点。我没有管理它自己还没有,因为我完全新的android开发,但这里有两个有用的链接到其他调谐器的源$ C $ C,一个在Java中,人们不:
I'm also trying to do this. I haven't managed it myself yet, as I'm completely new to android development, but here are two useful links to the source code of other tuners, one in Java, one not:
- http://www.psychicorigami.com / 2009/01/17 / A-5K-java的吉他调谐器/
- HTTP://www.$c$cproject.com/文章/ 32172 / FFT-吉他调谐器
- http://www.psychicorigami.com/2009/01/17/a-5k-java-guitar-tuner/
- http://www.codeproject.com/Articles/32172/FFT-Guitar-Tuner
编辑:以为我对这个网站的许多选择更好的联系与人试图使一个吉他调谐器。
Thought I better link to the MANY alternatives on this site with people trying to make a guitar tuner.
- How to create tuner that runs continuously?
- Sound convertion to frequency in android
- Real time pitch detection
重新编辑: FFT.java
解决我的问题。 (不正确地联系在一起,因为我是一个新用户)
Solved my problems. (Not linked properly because I'm a new user)
这篇关于Android的,如何使用麦克风,以便计算的声音频率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!