I am building on an app which has a function which records the sound which comes in the microphone. It would be handy to give a graphical view of the incoming sound, like http://www.filebuzz.com/software_screenshot/full/10920-Audio_Edit.gif for example.
I searched a little bit for a tutorial online, but the only thing I found was Audalyzer, but it is difficult for me to get a grip on it, it also is using the whole interface and not clear how to implement it as a widget...
Maybe somebody knows a good tutorial or example code on this?
An audio analyzer is a test and measurement instrument used to objectively quantify the audio performance of electronic and electro-acoustical devices.
The spectrum analyzer measures the radio noise floor and analyzes how close two signals can be while still being resolved into two separate peaks. It uses a linear scale for signal frequency and a logarithmic or decibel scale for amplitude.
A spectrum analyzer is a measurement tool that displays real-time frequency analysis of incoming audio signals. Spectrum analyzers display the results in a graph. The horizontal axis shows frequency and pitch measured in Hertz. The vertical axis shows the amplitude of those frequencies measured in decibels.
An FFT analyzer serves for assessing the physical aspects of sound or vibration phenomena and for devising suitable countermeasures. General applicability is good because analysis can be carried out in the time domain as well as in the frequency domain.
You'd probably want to use a Fast Fourier Transform for this.
I'd try jTransforms: https://sites.google.com/site/piotrwendykier/software/jtransforms
The blog here: http://trueharmoniccolours.co.uk/Blog/ gives a good introduction into what the FFT does and how you can turn it into a chart. I fear that by the end of this you'll understand FFTs though...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With