简体   繁体   中英

How to analyse a music file (mp3) in order to display its spectrum on Mobile using J2ME - Java ME

Now I want to create a simple media player for Mobile. It will read a music file (default : mp3), then play it and display spectrum on screen. But now I don't know how to analyse a music file. Please tell me way to analyse it. Thank you so much !

You don't have to parse the input files in order to get to the samples. Instead you can capture the sound currently played to get your hands on the raw audio data. To draw a spectrum visualization of this you would have to perform a FFT on this data and the use the result to render your bars (or whatever you choose for you visuals).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM