Android, How to use microphone in order to calculate sound frequencies?

前端 未结 2 398
执念已碎
执念已碎 2021-02-03 15:21

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.

The f

相关标签:
2条回答
  • 2021-02-03 15:24

    You need to calculate the FFT. Maybe yu can try this link:

    FFT

    But you can find on internet many implementation of the algorithm for FFT.

    0 讨论(0)
  • 2021-02-03 15:31

    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-guitar-tuner/
    • http://www.codeproject.com/Articles/32172/FFT-Guitar-Tuner

    EDIT: 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

    RE-EDIT: FFT.java

    Solved my problems. (Not linked properly because I'm a new user)

    0 讨论(0)
提交回复
热议问题