将 MIDI 字节数组转换为 MP3 字节数组

发布于 2024-09-26 12:09:08 字数 259 浏览 0 评论 0原文

有人知道如何将以字节数组表示的 MIDI 文件(平均播放时间为 30 秒)转换为 MP3 字节数组

因此,理想情况下我需要一个 C# 函数,它接受 MIDI 字节数组并返回 MP3 字节数组。

转换时间不应超过 2 - 3 秒。

是否有任何框架/工具/第 3 方 DLL 可以轻松执行此操作?

请告诉我。

谢谢, 维杰

Does someone know how to convert a MIDI file (average playback time of 30 seconds) which is represented in a byte array to an MP3 byte array?

So, ideally I need to have a C# function which accepts a MIDI byte array and returns a MP3 byte array.

The conversion should not take more than 2 - 3 seconds.

Are there any frameworks / tools / 3rd-party DLLs to perform this easily?

Please let me know.

Thanks,
Vijay

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

大姐,你呐 2024-10-03 12:09:08

MIDI 文件不是音频,而是音频指令。必须将其“渲染/播放”为音频(根据声卡的功能使用各种 MIDI 播放器),然后压缩为 MP3。

我不知道有哪个 DLL 可以完成所有这些工作。 Lame MP3 DLL 是一个免费的开源 DLL,可以为您进行压缩。

http://lame.sourceforge.net/

MIDI file is not audio, it is audio instructions. This has to be "rendered/played" to audio (using various MIDI players depending on the capability of your sound card) and then compressed to MP3.

I do not know a DLL that can do all of that. Lame MP3 DLL is a free open source DLL that can do the compression for you.

http://lame.sourceforge.net/

暗喜 2024-10-03 12:09:08

在 CodeProject 有一个 C# MIDI 工具包,可以帮助你。不过,您可能会自己编写代码来记录输出流。

Over at CodeProject there's a C# MIDI Toolkit which could help you. You'll probably have write the code to record the output stream yourself though.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文