# MusicXML

**MusicXML**是一种开放的、基于XML的文件格式，用于在应用程序之间交换数字乐谱，以及为将来使用而归档乐谱。迈克尔·古德（Michael Good）于2000年在Recordare公司发明了该格式，旨在为音乐记谱应用程序创建一种标准的交换格式。目前该格式由W3C音乐记谱社区组开发，并根据W3C社区最终规范协议（FSA）作为社区组报告发布。<sup>[1](https://www.w3.org/community/music-notation/2015/07/27/introducing-the-music-notation-community-group/)</sup><sup> • </sup><sup>[2](https://www.w3.org/2021/06/musicxml40/)</sup>截至2021年6月4.0版本发布时，已有超过250款应用程序支持该格式。<sup>[2](https://www.w3.org/2021/06/musicxml40/)</sup>

| 关键事实 | 详情 |
|---|---|
| 用途 | 用于在应用程序之间交换数字乐谱并为其未来使用而归档的标准开放格式<sup>[2](https://www.w3.org/2021/06/musicxml40/)</sup> |
| 起源 | 由迈克尔·古德于2000年在Recordare公司发明；在Recordare资产于2011年出售给MakeMusic之前，已开发至3.0版本<sup>[1](https://www.w3.org/community/music-notation/2015/07/27/introducing-the-music-notation-community-group/)</sup> |
| 治理 | 于2015年7月28日移交至W3C音乐记谱社区组<sup>[3](https://www.makemusic.com/wp-content/uploads/2015/02/MakeMusic-MusicXML-W3C-Press-Release.pdf)</sup> |
| 当前版本 | 4.0，于2021年6月作为W3C社区组最终报告发布<sup>[4](https://www.musicxml.com/for-developers/)</sup> |
| 采用情况 | 截至4.0发布之日，已有超过250款应用程序支持<sup>[2](https://www.w3.org/2021/06/musicxml40/)</sup> |
| 文件形式 | 未压缩的.musicxml文件和zip压缩的.mxl文件<sup>[5](https://www.w3.org/2021/06/musicxml40/tutorial/compressed-mxl-files/)</sup> |
| 范围 | 十七世纪以来的常见西方音乐记谱，涵盖古典与流行<sup>[6](https://www.musicxml.com/publications/makemusic-recordare/notation-and-analysis/)</sup> |
| 下一版本 | MusicXML 4.1正在积极开发中，文档站点和测试系统已就位<sup>[7](https://lists.w3.org/Archives/Public/public-music-notation/2026Aug/0003.html)</sup> |

## 历史与治理

在MusicXML之前，Finale和Sibelius等桌面记谱应用程序无法彼此共享音乐，也无法与新兴的Web应用程序共享音乐。<sup>[1](https://www.w3.org/community/music-notation/2015/07/27/introducing-the-music-notation-community-group/)</sup>当时任职于Recordare公司的迈克尔·古德于2000年创建了该格式以填补这一空白，从MusicXML 0.1首次公开发布起，数百名音乐家和开发者为其发展做出了贡献。<sup>[1](https://www.w3.org/community/music-notation/2015/07/27/introducing-the-music-notation-community-group/)</sup>

**所有权变更。** Recordare将MusicXML开发至3.0版本后，其资产于2011年出售给MakeMusic。由于MakeMusic的Finale和SmartMusic产品与许多实施该格式的公司存在竞争关系，社区寻求一个供应商中立的家园，于是2015年7月28日，MakeMusic将MusicXML的开发移交给了新成立的W3C音乐记谱社区组。<sup>[1](https://www.w3.org/community/music-notation/2015/07/27/introducing-the-music-notation-community-group/)</sup><sup> • </sup><sup>[3](https://www.makemusic.com/wp-content/uploads/2015/02/MakeMusic-MusicXML-W3C-Press-Release.pdf)</sup>该社区组的初始联合主席为Noteflight/Hal Leonard的乔·贝尔科维茨（Joe Berkovitz）、迈克尔·古德以及Steinberg的丹尼尔·斯普雷德伯里（Daniel Spreadbury），该组同时还维护SMuFL（标准音乐字体布局）规范。<sup>[1](https://www.w3.org/community/music-notation/2015/07/27/introducing-the-music-notation-community-group/)</sup><sup> • </sup><sup>[8](https://www.w3.org/community/music-notation/)</sup>

版本历史从1.0历经1.1、2.0、3.0、3.1（2017年12月13日发布）直至4.0（许可承诺日期为2021年5月15日）。<sup>[8](https://www.w3.org/community/music-notation/)</sup>4.0版本是自3.1以来三年半后的首次更新。<sup>[9](https://www.musicxml.com/musicxml-4-0-w3c-community-group-report/)</sup>

## 文件结构

乐谱是一个由横向排列的声部和纵向排列的小节构成的格状结构，但XML将数据表示为层级结构。在音乐认知专家、Humdrum发明者大卫·休伦（David Huron）的建议下，MusicXML通过两个根元素同时支持两种取向。<sup>[10](https://www.w3.org/2021/06/musicxml40/tutorial/structure-of-musicxml-files/)</sup>在<code>&lt;score-partwise&gt;</code>文档中，音乐声部是主要的，小节包含在每个声部之内；在<code>&lt;score-timewise&gt;</code>文档中，小节是主要的，声部包含在每个小节之内。两个XSLT样式表——parttime.xsl和timepart.xsl——可在两种形式之间进行转换，而在实践中大多数MusicXML应用程序使用partwise格式。<sup>[10](https://www.w3.org/2021/06/musicxml40/tutorial/structure-of-musicxml-files/)</sup>

每个顶层文档包含一个乐谱头信息，后跟音乐数据。乐谱头信息承载元数据，如作品标题、乐章编号和标题、基于[都柏林核心](https://www.edgepedia.org/zh/dublin-core)的创作者和权利信息，以及必需的<code>&lt;part-list&gt;</code>，用于命名各声部或乐器。<sup>[10](https://www.w3.org/2021/06/musicxml40/tutorial/structure-of-musicxml-files/)</sup>音乐数据通过<code>&lt;note&gt;</code>、<code>&lt;backup&gt;</code>、<code>&lt;forward&gt;</code>、<code>&lt;direction&gt;</code>、<code>&lt;attributes&gt;</code>、<code>&lt;harmony&gt;</code>、<code>&lt;barline&gt;</code>等元素承载实际的记谱内容。<sup>[10](https://www.w3.org/2021/06/musicxml40/tutorial/structure-of-musicxml-files/)</sup>

**压缩文件。** MusicXML文件可能很大，因此该格式还定义了一种使用zip压缩的压缩形式，采用.mxl文件后缀和专用的互联网媒体类型，以将MusicXML文件与通用XML区分开来。推荐的后缀为：压缩文件使用.mxl，未压缩文件使用.musicxml。<sup>[5](https://www.w3.org/2021/06/musicxml40/tutorial/compressed-mxl-files/)</sup>

## 4.0版本

2021年6月，W3C音乐记谱社区组制定了4.0版本，并作为该W3C社区组的最终报告发布。<sup>[4](https://www.musicxml.com/for-developers/)</sup>该版本解决了提交至MusicXML GitHub仓库的问题，分为七个主要类别：26项文档改进（包括将全部文档、教程、示例、版本历史和参考手册作为社区组报告发布）、7项关于总谱与分谱之间关系的问题（如将总谱和分谱合并为单个压缩文件以及实音总谱的移调）、1项关于乐谱跟随和机器聆听、6项关于语义（包括为[罗马数字](https://www.edgepedia.org/zh/roman-numerals)新增numeral元素，弃用function元素）、7项关于回放（包括摇摆回放和虚拟乐器切换）、13项关于外观（包括波浪线和打击乐象形图的SMuFL字形属性），以及2项工具变更。<sup>[4](https://www.musicxml.com/for-developers/)</sup>

工具变更新增了用于XML Catalog支持的catalog.xml文件，并弃用了MusicXML定义的DTD版本，使W3C XML Schema定义（XSD）成为主要技术。<sup>[4](https://www.musicxml.com/for-developers/)</sup>DTD曾是定义MusicXML文件的原始技术，以partwise.dtd和timewise.dtd作为顶层定义。<sup>[11](https://www.musicxml.com/for-developers/musicxml-dtd/)</sup>4.0版本保持了与早期版本的兼容性：任何符合MusicXML 1.0、1.1、2.0、3.0或3.1的文件也属于有效的MusicXML 4.0。<sup>[4](https://www.musicxml.com/for-developers/)</sup>

## 软件支持与使用

自MIDI以来，MusicXML已成为音乐记谱交换领域广泛使用的标准，该格式的软件目录列出了具有读取、写入或两者兼有支持的应用程序。<sup>[12](https://www.musicxml.com/software/)</sup>主要记谱程序原生支持该格式：MuseScore可读写MusicXML，包括压缩的.mxl格式（自MuseScore 2.2起支持3.1），Dorico支持双向操作，Sibelius在Windows、Mac和iOS上所有三个定价层级均可读取MusicXML文件，写入功能在Artist和Ultimate层级中受支持；Sibelius Ultimate 2019.5及更高版本可使用MakeMusic的Dolet 8插件写入MusicXML 4.0文件。<sup>[12](https://www.musicxml.com/software/)</sup>支持还扩展到记谱编辑器之外，包括Cubase（4.1版本新增导入和导出）和[Logic Pro](https://www.edgepedia.org/zh/logic-pro)（自Logic Pro X起支持导出，自10.3起支持导入）等数字音频工作站，Power Tracks Pro Audio等音序器，以及libMusicXML和JFugue等库。<sup>[12](https://www.musicxml.com/software/)</sup>

## 与MEI和MIDI的比较

MusicXML和[音乐编码倡议](https://www.edgepedia.org/zh/music-encoding-initiative)（MEI）——一个由社区驱动的用于编码音乐文档的[XML模式](https://www.edgepedia.org/zh/xml-schema)——服务于有重叠但各不相同的社区。<sup>[13](https://music-encoding.org/)</sup>所有主要音乐记谱程序都原生支持MusicXML，而MEI通常必须转换为MusicXML或从MusicXML转换才能在记谱软件中使用。<sup>[14](https://opensheetmusicdisplay.org/blog/blog-music-xml-introduction-comparison/)</sup>MEI在学术编辑方面的优势包括普遍使用xml:id，使得乐谱中的任何音乐对象即使在移调或摘录等转换之后也能被唯一引用，以及对指法谱、有量记谱法和纽姆谱等专业编码的支持。<sup>[15](https://trompamusic.eu/deliverables/TR-D5.2-Score_Edition_Component_v2.pdf)</sup>

## 当前开发

社区组继续积极推进MusicXML 4.1版本的发布，并在GitHub里程碑上进行跟踪；2026年8月的进度更新报告称，文档站点的构建系统和测试系统已就位，可以稳步推进该版本的开发工作。<sup>[7](https://lists.w3.org/Archives/Public/public-music-notation/2026Aug/0003.html)</sup>卡里姆·拉提布（Karim Ratib）担任MusicXML规范编辑。<sup>[17](https://www.w3.org/community/music-notation/page/3/)</sup>该组还在开发MNX——一种面向Web和交互式使用的独立记谱格式——与MusicXML和SMuFL并行推进。<sup>[8](https://www.w3.org/community/music-notation/)</sup><sup> • </sup><sup>[17](https://www.w3.org/community/music-notation/page/3/)</sup>

MusicXML还广泛应用于音乐信息检索和研究。PDMX数据集从MuseScore乐谱分享论坛收集了超过25万份公有领域MusicXML乐谱，据称是其发布时最大的可用无版权限制符号音乐数据集；DoReMi等光学音乐识别数据集则提供MusicXML以及MIDI、MEI和图像文件。<sup>[18](https://arxiv.org/abs/2409.10831)</sup><sup> • </sup><sup>[19](https://arxiv.org/abs/2107.07786)</sup>

## References

1. [Introducing the Music Notation Community Group, W3C Music Notation Community Group (July 27, 2015)](https://www.w3.org/community/music-notation/2015/07/27/introducing-the-music-notation-community-group/)
2. [MusicXML Version 4.0 Final Community Group Report, W3C (June 1, 2021)](https://www.w3.org/2021/06/musicxml40/)
3. [MakeMusic MusicXML W3C Press Release (July 28, 2015)](https://www.makemusic.com/wp-content/uploads/2015/02/MakeMusic-MusicXML-W3C-Press-Release.pdf)
4. [MusicXML 4.0 for Developers, MakeMusic](https://www.musicxml.com/for-developers/)
5. [Compressed .MXL Files, MusicXML 4.0 Tutorial, W3C](https://www.w3.org/2021/06/musicxml40/tutorial/compressed-mxl-files/)
6. [MusicXML for Notation and Analysis, Michael Good, Recordare](https://www.musicxml.com/publications/makemusic-recordare/notation-and-analysis/)
7. [MusicXML progress update: August 11, 2026, W3C Music Notation Community Group mailing list](https://lists.w3.org/Archives/Public/public-music-notation/2026Aug/0003.html)
8. [Music Notation Community Group, W3C](https://www.w3.org/community/music-notation/)
9. [MusicXML 4.0 W3C Community Group Report announcement, musicxml.com](https://www.musicxml.com/musicxml-4-0-w3c-community-group-report/)
10. [The Structure of MusicXML Files, MusicXML 4.0 Tutorial, W3C](https://www.w3.org/2021/06/musicxml40/tutorial/structure-of-musicxml-files/)
11. [MusicXML DTD (Document Type Definition), musicxml.com](https://www.musicxml.com/for-developers/musicxml-dtd/)
12. [Software, musicxml.com](https://www.musicxml.com/software/)
13. [Music Encoding Initiative](https://music-encoding.org/)
14. [Music XML Introduction and comparison, Open Sheet Music Display](https://opensheetmusicdisplay.org/blog/blog-music-xml-introduction-comparison/)
15. [Trompamusic D5.2 Score Edition Component](https://trompamusic.eu/deliverables/TR-D5.2-Score_Edition_Component_v2.pdf)
16. [MIDI vs MusicXML: Which Format Should Musicians Use?, Melogenai](https://melogenai.com/blogs/midi-vs-musicxml)
17. [Music Notation Community Group, page 3, W3C](https://www.w3.org/community/music-notation/page/3/)
18. [PDMX: A Large-Scale Public Domain MusicXML Dataset for Symbolic Music Processing, arXiv](https://arxiv.org/abs/2409.10831)
19. [DoReMi: First glance at a universal OMR dataset, arXiv](https://arxiv.org/abs/2107.07786)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Data formats and serialization

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/musicxml

English original: https://www.edgepedia.org/musicxml
