开发者

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

开发者 https://www.devze.com 2023-03-12 22:45 出处:网络
Now I want to create a simple media player for Mobile. It开发者_Python百科 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 m

Now I want to create a simple media player for Mobile. It开发者_Python百科 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).

0

精彩评论

暂无评论...
验证码 换一张
取 消