Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use C# to write and play music? [closed]

Tags:

c#

.net

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?

like image 753
Lou Harmon Avatar asked May 20 '11 23:05

Lou Harmon


People also ask

How is C used in everyday life?

C programming language is majorly used in the creation of hardware devices, operating systems, drivers, kernels, etc. It is also used for the development of GUIs and IDEs. For example: Linux Kernel is written in the C language.

Is C easy to use?

While C is one of the more difficult languages to learn, it's still an excellent first language pick up because almost all programming languages are implemented in it. This means that once you learn C, it'll be simple to learn more languages like C++ and C#.

When should C be used?

As a middle-level language, C combines the features of both high-level and low-level languages. It can be used for low-level programming, such as scripting for drivers and kernels and it also supports functions of high-level programming languages, such as scripting for software applications etc.


1 Answers

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.

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.

like image 74
flq Avatar answered Oct 18 '22 02:10

flq