从 MP3/MIDI 文件中提取音频数据
我想制作在该 MP3/MIDI 文件中使用“音频事件”(我不知道如何正确表达)的游戏。例如在 MIDI 中,我需要提取键盘事件。问题是我真的不知道该事件在任何音频格式中的表示形式。这里有人知道这是什么吗?
注意:我在 google 上搜索了有关 MIDI 文件格式的信息,然后在 http://www.sonicspot 中找到了很好的信息。 com/guide/midifiles.html 但仍然不知道我想从 MIDI 文件中提取什么信息。
I want to make games that use "audio events" ( I don't know how to say it correctly) in that MP3/MIDI file. For example in MIDI, i need to extract keyboard event. The problem is that I really don't know what the representation of that event in any audio formats. Is there anybody here know what it is ?
NB: I googled around about MIDI file formats then i found good information at http://www.sonicspot.com/guide/midifiles.html but still dunno what information that i want to extract from MIDI file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能是一个起点
android-midi-lib< /代码>
坦率地说,我不清楚你的问题,这里是 Midi 事件代码
This could be a starting point
android-midi-lib
Frankly I'm not clear about your question, here is the Midi Events code
在这里,我通过示例提供了从 Mp3 文件中提取元数据的信息。
!pip install audio_metadata
import pandas as pd
import audio_metadata #import library
从 Mp3 文件中提取元数据
metadata = audio_metadata.load('DJ Snake - Let Me Love You ft. Justin Bieber.mp3')
从元数据中提取特定标签
dict1 = {" Title":metadata.tags.title}
将数据导出到 'csv' 文件
pd.DataFrame(dict1).to_csv('samplz.csv')
here I'm providing the info for extract metadata from Mp3 file with example.
!pip install audio_metadata
import pandas as pd
import audio_metadata #import library
extract metadata from Mp3 file
metadata = audio_metadata.load('DJ Snake - Let Me Love You ft. Justin Bieber.mp3')
To extract specific tags from metadata
dict1 = {"Title":metadata.tags.title}
export data to 'csv' file
pd.DataFrame(dict1).to_csv('samplz.csv')