wav 到 midi 转换

发布于 2024-08-14 18:23:28 字数 121 浏览 2 评论 0原文

是否有可用于 wav 到 midi 转换的开源 API?你找到了很多开源软件,但我找不到API。我有什么办法可以找到他们吗?还有可用于音乐转录的开源 API 吗? (即生成乐谱的数字版本)。非常感谢任何形式的指导或帮助。提前致谢

Are there any Open source APIs available for wav to midi conversion? You find many open source software, but I couldn't find APIs. Is there any way I can find them? Also are there any Open source APIs available for music transcription? (i.e. generating a digital version of a music sheet). Greatly appreciate any form of direction or assistance. Advance Thanks

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

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

发布评论

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

评论(1

凉城 2024-08-21 18:23:28

从 wav 转换为 midi 是一个非常困难且容易出错的操作,据我所知,这种操作并不常见,这通常会产生很差的结果,因此使用 API 来完成此操作将是愚蠢的您提到的开源软件中可能存在使用它的库。 .wav 文件没有可以帮助您返回 midi 的有用元数据。要想做好,比语音转文本困难得多! (谐波和噪声很重要)。不过,对于演奏单一乐器来说可能会OK,具有可以通过傅里叶变换选出的强大基频。

对于乐谱的 OCR,我找到了一款名为 Audiveris 的 GPL 软件。这个任务并不像前一个任务那么难,但仍然是一个高度复杂的操作,可能需要手动干预来纠正错误,拥有一个简单的 API 是没有意义的。

如果您自己制作一些开源软件,您当然可以尝试改编这些项目中的大量代码以用于您想要的任何用途,尽管我怀疑这是否值得付出努力。

如果您发现的任何软件都有命令行界面来启动转换,您可以从您自己的软件执行shell 命令,让它们执行所需的转换自动

Converting from wav to midi is a very difficult and error prone operation, not often done as far as I know, which will very often give poor results, so having an API to do that would be silly, though libraries may exist for it used in the Open Source software you mention. .wav files have no useful metadata that can help you get back to midi. It's much harder than speech to text to do well! (harmonics and noise matter). Will probably work OK for single instruments playing though, with strong fundamental frequencies that can be picked out with fourier transform.

For OCR of sheet music, I have found a piece of GPL'd software called Audiveris. This task isn't as hard as the previous thing, but is still a highly complex operation, probably requiring manual intervention to correct errors, that having a simple API for is pointless.

If you are making some Open Source software yourself, you can of course attempt to adapt swathes of code from these projects for whatever use you have in mind, though I doubt it would be worth the effort.

If any of the software you find has a command line interface to start a conversion, you could execute shell commands from your own software to make them do the required conversions automatically.

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