What is the most popular method/API for reading in an MP3 and turning it into its most basic amplitude waveform (a float that could represent a point on a waveform for visualisation) and then how can I use this basic value to play it out on the computer’s audio output? (All of this done in Java)
Share
You might want to take a look at LAMEOnJ. It is a Java wrapper for LAME (JavaDoc).
As for converting byte arrays to float arrays, how about importing
java.nio.ByteBufferandjava.nio.ByteOrder, and doing the followingThat should do the trick to give you a float array. As for playing it, you could just assign each float value a pitch.