MusicXML

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書
MusicXML
副檔名
.musicxml, .mxl
網路媒體型式
application/vnd.recordare.musicxml+xml,[1] application/vnd.recordare.musicxml[2]
開發者W3C Music Notation Community Group
最新版本
4.0
2021年6月[3]
格式類型樂譜
延伸自XML
免費格式?
網站https://www.w3.org/2017/12/musicxml31/

MusicXML(英語:Music Extensible Markup Language音樂擴充標記式語言)是一個開放的基於XML的記錄西式樂譜檔案格式。該格式是完全自由、開放記錄的,並依據W3C社區的許可協定自由使用。[4][5]

歷史[編輯]

MusicXML由Reccordare公司開發,該技術源於幾個現有的基於學術上的關鍵技術和想法,比如Walter Hewlett的MuseData和David Huron的Humdrum。被設計用來做為樂譜資訊的交換格式,特別是在不同的制譜軟件之間進行交換。隨着MakeMusic公司於2011年收購Recordare,MusicXML的開發由MakeMusic管理。[6][7]從2015年7月起,MusicXML的移交文件給W3C Music Notation Community Group。[8]

MusicXML的1.0版由Recordare公司在2004年1月發佈。在2005年5月發佈1.1版,包含對檔案格式支援的改進。在2007年6月發佈了2.0版,並且包含了標準的壓縮格式。[9]所有這些都建立在一系列的文件類型定義(DTD)之上。2.0版的XML Schema定義(XSD)的實現於2008年9月發佈。3.0版在2011年8月發佈,改進了對虛擬樂器的支援。同時包含在DTD和XSD版本中。[10][11]3.1版在2017年12月發佈,包含對Standard Music Font Layout (SMuFL)的支援的改進。[12]MusicXML DTD和XSD版本都可以通過W3C Community Final Specification Agreement自由發佈。[5]

支援[編輯]

截止2017年12月,MusicXML被估計得到了超過230個樂譜程式的支援。[13][14]這些程式包括:

此外,還可以通過使用HTML5 canvas元素JavaScript網頁瀏覽器中產生合理的樂曲。[15]

功能包括調號拍號譜號、符槓資訊、符杆的方向、圓滑線裝飾音小節和書寫上的重複。[16]

範例[編輯]

MusicXML像所有基於XML的格式一樣,用於簡單的由自動化工具分析和操縱。即使MusicXML可以通過手工建立,像Finale和MuseScore那樣的互動式的樂譜編寫軟件大大簡化了MusicXML檔案的讀取、編寫和修改。

下面是一個C大調,G譜號,4/4拍,包含一個中央C全音符的例子。[17]

如果用五線譜表示就是這樣的。
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE score-partwise PUBLIC
    "-//Recordare//DTD MusicXML 3.1 Partwise//EN"
    "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="3.1">
  <part-list>
    <score-part id="P1">
      <part-name>Music</part-name>
    </score-part>
  </part-list>
  <part id="P1">
    <measure number="1">
      <attributes>
        <divisions>1</divisions>
        <key>
          <fifths>0</fifths>
        </key>
        <time>
          <beats>4</beats>
          <beat-type>4</beat-type>
        </time>
        <clef>
          <sign>G</sign>
          <line>2</line>
        </clef>
      </attributes>
      <note>
        <pitch>
          <step>C</step>
          <octave>4</octave>
        </pitch>
        <duration>4</duration>
        <type>whole</type>
      </note>
    </measure>
  </part>
</score-partwise>

以上的文字演示是繁雜的,MusicXML v2.0通過壓縮ZIP格式並加上.mxl字尾的處理使檔案體積減小到20分之一。[18]

參考資料[編輯]

  1. ^ Type name: application : Subtype name: vnd.recordare.musicxml+xml. Iana.org. [24 November 2014]. (原始內容存檔於2020-10-31). 
  2. ^ Type name: application : Subtype name: vnd.recordare.musicxml. Iana.org. [24 November 2014]. (原始內容存檔於2020-08-09). 
  3. ^ Working group releases MusicXML update. [7 June 2021]. (原始內容存檔於2022-04-26). 
  4. ^ Sustainability of Digital Formats Planning for Library of Congress Collections — MusicXML, Version 3. Library of Congress. 9 October 2012 [14 November 2012]. (原始內容存檔於2020-08-09). 
  5. ^ 5.0 5.1 W3C Community Final Specification Agreement. W3C. [19 December 2017]. (原始內容存檔於2020-06-06). 
  6. ^ Recordare Closing Release (PDF). Makemusic.com. [13 December 2014]. (原始內容存檔 (PDF)於2013-11-11). 
  7. ^ MAKEMUSIC, INC. ENHANCES TECHNOLOGY LEADERSHIP BY PURCHASING RECORDARE ASSETS (PDF). Tech.mn. [13 December 2014]. (原始內容存檔 (PDF)於2016-03-03). 
  8. ^ Beyond iTunes: XML boffins target sheet music. The Register. [19 December 2017]. (原始內容存檔於2020-05-19). 
  9. ^ Compressed MXL Files. MusicXML. [2014-06-27]. (原始內容存檔於2020-10-17). 
  10. ^ Version History of MusicXML. Musicxml.com. [2014-06-27]. (原始內容存檔於2020-09-20). 
  11. ^ News: Recordare Adds Finale 2010 Support to Dolet 5 for Finale Plug-In. [2017-10-20]. (原始內容存檔於2018-09-09). 
  12. ^ Working group releases its first MusicXML update. ScoringNotes.com. NYC Music Services. [19 December 2017]. (原始內容存檔於2021-05-17). 
  13. ^ Software. MusicXML. 19 March 2010 [19 December 2017]. (原始內容存檔於2020-11-07). 
  14. ^ File format. MuseScore. [27 June 2014]. (原始內容存檔於2016-04-04). 
  15. ^ HTML5 MusicXML Viewer. Musicxml-viewer.com. 2012-05-15 [2014-06-27]. (原始內容存檔於2016-04-03).  原始碼可從Google Code頁面存檔備份,存於互聯網檔案館)、Github頁面存檔備份,存於互聯網檔案館)和Bitbucket頁面存檔備份,存於互聯網檔案館)取得。
  16. ^ Juan Pablo Bello, Elaine Chew, Douglas Turnbull (2008) ISMIR 2008: Proceedings of the 9th International Conference p.365頁面存檔備份,存於互聯網檔案館
  17. ^ Hello World: A One-Bar Song with a Whole Note on Middle C in 4/4 time. Musicxml.com. [2014-06-27]. (原始內容存檔於2020-10-19). 
  18. ^ MusicXML FAQ. MusicXML. [13 December 2014]. (原始內容存檔於2020-10-21). 

外部連結[編輯]