Question

Please be kind enough to not to say this as a silly question. Honestly asking after refering to several links on google.


I am in need of a API which generates MIDI tone/tune in C#. Currently I'm implementing a "Basic Optical Music Recogntion and Interpreting Application" without any OMR API (using my own algorithms).

So far the recogntition part is successfull. and the interpreting part is left. Where the identified notes need to be convert into a midi tune (file).

I have so far looked into midi-dot-net: midi-dot-net

Can some one kindly suggest me a good API for MIDI creation.(above mentioned process)

Further, Does C# has its own API/Library for MIDI generation like in JAVA javax.sound.midi?

Thank You.

Was it helpful?

Solution

C# (.NET) does not have a MIDI API. The only API available on Windows is the old Multi-Media library AFAIK.

Check out MIDI.NET that wraps this Windows API and makes it available to .NET (C#,VB.NET, etc.).

It provides a Factory object to create (pooled) note messages and includes reading and saving MIDI files.

If you have any questions post them in the discussion list on the codeplex project site.

Hope it helps, Marc (Author of MIDI.NET)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top