通过编程创作音乐的良好 API 是什么?

发布于 2024-07-19 07:19:34 字数 105 浏览 3 评论 0原文

我正在研究如何按程序生成音乐。 我希望找到一个真正简单的 API,我可以在其中调出乐器、音符、持续时间并将歌曲串在一起(当然我会采取任何东西,但这将是我的偏好)。 有没有图书馆可以做到这一点?

I'm looking into playing around with procedurally generating music. I'm hoping to find a really a simple API where I can just call out instrument, note, duration and string together a song (I'll take anything of course, but that would be my preference). Is there any library that does this?

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

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

发布评论

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

评论(5

还给你自由 2024-07-26 07:19:34

最好的选择是音乐编程环境,其中有多种。

Csound 是最著名的之一。 这是他们的网站

Max MSP 也是另一个广泛使用的选项,它也提供了可视化编程界面。 然而,它是商业性的。

另一个众所周知的选项(并被实验电子音乐家广泛使用)是 SuperCollider。 这是它的网页。

这是一篇维基百科文章,描述了类似的语言/环境。

您还可以使用通用编程语言和正确的库来完成音频/音乐工作。 Java 就是其中之一,它提供了 Java Sound API

Your best bet is a music programming environment, of which there are several.

Csound is one of the best known ones. Here is their website.

Max MSP is also another widely used option, and it provides a visual programming interface too. It is, however, commercial.

Another well known option (and widely used by experimental electronic musicians) is SuperCollider. This is its webpage.

Here's a Wikipedia article describing similar languages/environments.

You can also use a general programming language with the right libraries to do audio/music work. Java, for one, provides the Java Sound API.

热风软妹 2024-07-26 07:19:34

JFugue 是专门为支持音乐的程序生成而开发的。 它是一个免费的开源 (LGPL) Java API。

JFugue was developed specifically to support procedural generation of music. It's a free, open-source (LGPL) Java API.

冷心人i 2024-07-26 07:19:34

由于您没有指定语言,因此很难给出具体的建议。 大多数语言都有一个不错的 MIDI 库,但这将是我第一个要找的地方,除非您需要比 MIDI 格式允许的更重的东西。

It's hard to give specific recommendations, since you didn't specify a language. Most languages have a decent MIDI library though, that would be the first place I would look, unless you need something heavier than the MIDI format allows.

虫児飞 2024-07-26 07:19:34

也许生成音乐是一个好的开始。
谷歌搜索潜在客户还有一些有趣的链接。 Brian Eno 为《孢子》创作了程序生成的音乐。

Maybe Generative music is a good start.
Googling leads a couple interesting links, too. Brian Eno created procedurally generated music for Spore.

一个人的旅程 2024-07-26 07:19:34

您可能想查看常见音乐
它是一个音乐创作系统,可将音乐过程和结构的高级算法表示转换为用于声音合成和显示的各种控制协议

You might want to look at Common Music.
It's a music composition system that transforms high-level algorithmic representations of musical processes and structure into a variety of control protocols for sound synthesis and display

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