本文介绍了C#中MusicXML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道,可用于从C#写MusicXML数据的库?与此类似:(虽然这一个是JAVA)

Anyone know of any libraries that can be used to write MusicXML data from C#? Similar to this: http://proxymusic.kenai.com/ (although this one is for java).

我想尝试不手动写,但如果程度较重,我将别无选择,只能输出和我的结果手动编写MusicXML。

I would try to not write it manually, but if worse comes to worst, I will have no choice but to output and write MusicXML manually from my results.

推荐答案

由于MusicXML ,
你可以使用创建类,代表XML结构:

Since MusicXML has a XML schema available,you can use xsd.exe to create the classes that represent the XML structure:

xsd /c xlink.xsd musicxml.xsd container.xsd opus.xsd

然后你可以使用的来加载和/保存生成的类文件。

Then you can use XmlSerializer to load and save the generated classes from/to files.

(出于某种原因,该模式的一个文件,osfpvg.xsd,无法正确编译。在这里希望你不会需要它。)

(For some reason, one of the schema files, osfpvg.xsd, wasn't able to compile correctly. Here's hoping you won't need it.)

这篇关于C#中MusicXML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 19:35