简体   繁体   English

在WP7中提取声谱数据

[英]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. 当我意识到MediaLibrary的GetVisualizationData()在WP7上返回一堆零时,我非常不满意。 What are the other approaches I could apply in order to compute and extract sound spectrum data from my MediaLibrary's song collection ? 为了从MediaLibrary的歌曲集中计算和提取声谱数据,我可以应用哪些其他方法?

PS The way it's written suggests that I'm working on an XNA project. PS它的编写方式表明我正在开发一个XNA项目。 I would be glad to accept even Silverlight-related approaches, as this is more of a general problem I'm struggling with 我很乐意接受与Silverlight相关的方法,因为这更像是我正在努力解决的一般问题

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. 编辑:这是一些用于Mimim库中的节拍检测的Java源代码

Per the documentation (as of the writing of this post): 根据文件(截至本文撰写时):
http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.mediaplayer.isvisualizationenabled.aspx 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." “Windows Phone上没有可视化数据。任何在手机上获取可视化数据的尝试都会在VisualizationData类中填充0。”

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. 如果这是您希望在Windows手机上支持的功能,则应转到Connect网站并提交问题。 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. 由JWatte编写的节拍检测 From the screenshot, its looking very pretty. 从截图中看,它看起来非常漂亮。

Here is a little framework, in Silverlight, that might assist with your project. 是Silverlight中的一个小框架,可以帮助您完成项目。

Here is a Silverlight FFT and oscilloscopes example. 是一个Silverlight FFT和示波器示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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