这是 Midi 之后更完善的通用乐谱格式, 已有 Sibelius 等众多软件兼容; 官方网站: http://www.musicxml.org/ 或 http://www.recordare.com/musicxml
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd"> <score-partwise version="3.0"> <!-- 根节点: score-partwise --> <part-list> <!-- 行(分谱)列表 --> <score-part id="P1"> <part-name>Piano</part-name> <!-- 乐器名称 --> </score-part> </part-list> <part id="P1"> <measure number="1"> <!-- 第一小节 --> <attributes> <!-- 小节属性 --> <divisions>256</divisions> <!-- 设定用 256 表示一个四分音符的长度 --> <key> <fifths>0</fifths> <!-- C大调(没有升降号) --> </key> <time> <beats>4</beats> <beat-type>4</beat-type> <!-- 4/4 拍 --> </time> <clef> <sign>G</sign> <line>2</line> <!-- 使用高音谱号(G谱号) --> </clef> </attributes> <note> <!-- 音符 --> <pitch> <!-- 音高 --> <step>C</step> <octave>4</octave> <!-- 中央 C --> </pitch> <duration>1024</duration> <!-- 演奏时值 --> <type>whole</type> <!-- 音符类型: 256th、128th、64th、32nd、16th、eighth、quarter、half、whole、breve、long --> </note> </measure> </part> </score-partwise>
效果图(Google 浏览器可视):