I am trying to do a school project where I am trying to build an application in Java that I have to analise a song, and as the song is playing I need to output certain frequencies when they are hit ie: whenever it hit 1hz it would print to the console "1Hz".
I have all the files for the audio-analysis ie: com.badlogic.audio package.
This is a very important project, and I am relatively new to Java (I am in high school and this is my major project for the year).
Please can someone talk me through how to implement the FFT algorithm into a song? ie: how do I display on screen: "select a song" then when they select the song, play it out loud over a media player or something and while it is playing, whenever it hits certain points, output something (like the 1hz example above).
Is there another library that can return the current frequency in the song to me?
Thanks in advance for any help or advice!