Library for drawing musical notes [closed]

2019-03-25 11:32发布

问题:

I'm looking for a Windows library that can draw musical notes on the screen in some way. I'm going to use it to write an app in C#, but a pure Win32-based solution is good enough. Does anybody know of any such library?

Edit: I'm going to update the notes in real-time, and they need not look incredibly fancy.

回答1:

You can try that:

http://www.archiwistykamuzyczna.pl/index.php?article=download&lang=en#psamcontrollibrary

It's a simple library written in C# for displaying notes. It is limited to only one stave but it supports many voices on one stave. The input format is MusicXml but you can add notes programatically too.

Here is an article about PSAM Control Library on CodeProject: http://www.codeproject.com/KB/miscctrl/psamcontrollibrary.aspx



回答2:

You will definitely want to look into Lilypond, widely acknowledged as the best choice for musical typesetting. It's open-source and has all kinds of output formats, and is highly scriptable. It would be pretty easy to write your own C# wrapper around it. Example output:


(source: lilypond.org)



回答3:

Use MusicXML. There is C++ binding.

Rosegarden can export MusicXML to PDF or PS.



回答4:

You can try to extract relevant code from Rosegarden, although it's very Qt-specific.