简体   繁体   中英

Extracting sound spectrum data in WP7

I was very dissatisfied when I realized that the MediaLibrary's GetVisualizationData() returns a bunch of zeros on WP7. What are the other approaches I could apply in order to compute and extract sound spectrum data from my MediaLibrary's song collection ?

PS The way it's written suggests that I'm working on an XNA project. I would be glad to accept even Silverlight-related approaches, as this is more of a general problem I'm struggling with

You'll have to write your own algorithm. It's not exactly easy, but what you're looking for is Beat Detection (this page has some links to get you started).

EDIT: Here is some Java source-code for beat detection from the Mimim library.

Per the documentation (as of the writing of this post):
http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.mediaplayer.isvisualizationenabled.aspx

"Visualization data is not available on Windows Phone. Any attempt to get visualization data on the phone will populate the VisualizationData class with 0s."

If this is a feature you'd like to see supported on windows phone, you should go to the Connect site and submit an issue. These issues are tracked, and especially if you're able to get community support behind it and get people to vote on it, perhaps it will be implemented in a future release :-)

I think that I have found exactly what you are looking for. Beat Detection written by JWatte. From the screenshot, its looking very pretty.

Here is a little framework, in Silverlight, that might assist with your project.

Here is a Silverlight FFT and oscilloscopes example.

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