音乐分析和可视化 [英] Music Analysis and Visualization

查看:410
本文介绍了音乐分析和可视化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很感兴趣,在Python编程音乐可视化工具。

I'm interested in programming a music visualizer in Python.

的第一个问题是如何获得从音乐的信息?如音量,频率,转速等。
而来自哪里?从声卡或实际音乐文件?

The first problem is how to get the information from the music? Like volume, frequency, rpm, etc. And from where? From the soundcard or the actual music file?

我的猜测是从声卡,但我如何访问声卡和想要的信息?在一个平台independed方式preferably(Linux是必须的)。
我已经读了一些关于傅里叶变换,但我不知道这是去的最佳途径。

My guess is from the soundcard, but how do I access the soundcard and the wanted information? Preferably in a platform-independed way(Linux is a must). I already read a bit about fourier transformation, but I'm not sure if that's the best way to go.

我想过使用OpenGL的可视化,但我仍然开放的建议。

I thought about using OpenGL for the visualization, but I'm still open for suggestions.

我已经看着那些wikipages,但没有找到答案尚未:
http://wiki.python.org/moin/Audio/ 结果
http://wiki.python.org/moin/PythonInMusic

I've already looked at those wikipages, but didn't find an answer yet: http://wiki.python.org/moin/Audio/
http://wiki.python.org/moin/PythonInMusic

在此先感谢。
问候

Thanks in advance. Regards

推荐答案

如果你正在寻找一个跨平台的音频库,我强烈建议使用的 FMOD 刚刚岩石。也有可用Python中使用它(虽然我从来没有用过它)一个包装。< BR>
它将提供的功能,如获取谱出的即装即用。结果
如果要分析的音频文件,我的 algorithme德的喜爱的是的拍谱。它通过音乐的每一个简短的样本与每一个他人比较,计算出一个相似矩阵。一旦相似性矩阵被计算,可以得到每一个样品对{S(T)的S(T + 1)}之间平均相似对于每个时间间隔T:这是节拍光谱结果。
它可以让你的声音序列的BPM,但可以做的更像识别音乐的不同部分,找到类似的样品之间的转换。我不知道你的意思究竟是什么的可视化音频,但是我觉得这个算法应该为你提供足够的信息开始同步图像音频(如果这是你想做的事)。

If you are looking for a cross-platform audio library I strongly suggest to use FMOD which just rocks. There is also a wrapper to use it in python available (though I've never used it).
It will provide features like getting the spectrum out-of-the-box.
If you want to analyze audio file, my algorithme de choix is the beat spectrum. It computes a similarity matrix by comparing each short sample of the music with every others. Once the similarity matrix is computed it is possible to get average similarity between every samples pairs {S(T);S(T+1)} for each time interval T: this is the beat spectrum.
It allows to get the BPM of your audio sequence, but can do much more like identifying different parts of the music, locate transitions between similar samples. I do not know what you mean exactly by "visualizing audio", but I think this algorithm should provide you with enough information to start synchronizing image to the audio (if that's what you want to do).

这篇关于音乐分析和可视化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆