如何使用C#编写和播放音乐? [英] How can I use C# to write and play music?

查看:166
本文介绍了如何使用C#编写和播放音乐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,长话短说,我放下来创建一个进化算法,会写的音乐,并将其导出到一个文件给我听的框架。

So, long story short, I am laying down the framework to create an evolutionary algorithm that will write music and export it to a file for me to listen to.

我的问题是,有没有计划在那里,我可以用的接口,这样我可以只给软件说明和它建立了一块?

My question is, are there any programs out there that I can interface with, so that I can just feed the software notes and it builds the piece?

如果没有,我怎么做自己?

If not, how do I do this myself?

推荐答案

我不知道什么样的答案你期待,考虑到有关的话题范围之内。我只是把 n音讯表可以帮助你在你的事业。

I wonder what kind of answers you expect, considering the scope of relevant topics. I'd just bring NAudio to the table which may help you in your undertaking.

由于它也知道MIDI,也许你有一个MIDI设备(声卡?)然后就可以创建MIDI事件,并将它们发送到您的设备。其结果可能是音乐。

Since it also knows MIDI, maybe you have a Midi device (your soundcard?) Then you can create MIDI events and send them to your device. The result could be music.

这篇关于如何使用C#编写和播放音乐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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