XML
Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing arbitrary data. It defines a set of rules for encoding documents in a format that is both human-readable and machine-readable ...
-based
file format
A file format is a standard way that information is encoded for storage in a computer file. It specifies how bits are used to encode information in a digital storage medium. File formats may be either proprietary or free.
Some file formats ...
for representing Western
musical notation
Music notation or musical notation is any system used to visually represent aurally perceived music played with instruments or sung by the human voice through the use of written, printed, or otherwise-produced symbols, including notation fo ...
. The format i open fully documented, and can be freely used under the
W3C
The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web. Founded in 1994 and led by Tim Berners-Lee, the consortium is made up of member organizations that maintain full-time staff working to ...
Community Final Specification Agreement.
History
MusicXML was invented by Michael Good and initially developed by Recordare LLC. It derived several key concepts from existing academic formats (such as Walter Hewlett's ASCII-based MuseData and David Huron's Humdrum). It is designed for the interchange of scores, particularly between different
scorewriter
A scorewriter, or music notation program is software for creating, editing and printing sheet music. A scorewriter is to music notation what a word processor is to text, in that they typically provide flexible editing and automatic layout, and p ...
s. MusicXML development was managed by MakeMusic following the company's acquisition of Recordare in 2011. MusicXML development was transferred to the W3C Music Notation Community Group in July 2015.
Version 1.0 was released in January 2004. Version 1.1 was released in May 2005 with improved formatting support. Version 2.0 was released in June 2007 and included a standard compressed format. All of these versions were defined by a series of
document type definition
A document type definition (DTD) is a set of ''markup declarations'' that define a ''document type'' for an SGML-family markup language ( GML, SGML, XML, HTML).
A DTD defines the valid building blocks of an XML document. It defines the document ...
s (DTDs). An
XML Schema Definition
XSD (XML Schema Definition), a recommendation of the World Wide Web Consortium (W3C), specifies how to formally describe the elements in an Extensible Markup Language (XML) document. It can be used by programmers to verify each piece of item cont ...
(XSD) implementation of Version 2.0 was released in September 2008. Version 3.0 was released in August 2011 with improved virtual instrument support, in both DTD and XSD versions. Version 3.1 was released in December 2017 with improved support for the Standard Music Font Layout (
SMuFL
Standard Music Font Layout, or SMuFL, is an open standard for music font mapping.
The standard was originally developed by Daniel Spreadbury of Steinberg for its scorewriter software Dorico, but is now developed and maintained by the W3C Music N ...
). Version 4.0 was released in June 2021 and resolved multiple issues.
The MusicXML DTDs and XSDs are each freely redistributable under the W3C Community Final Specification Agreement.
Support
, MusicXML is supported to varying degrees by over 260 notation programs. These programs include:
* Most scorewriting programs, including Finale,
Dorico
Dorico () is a scorewriter software; along with Finale and Sibelius, it is one of the three leading professional-level music notation programs.
Dorico's development team consists of most of the former core developers of a rival software, Sibe ...
,
Sibelius
Jean Sibelius ( ; ; born Johan Julius Christian Sibelius; 8 December 186520 September 1957) was a Finnish composer of the late Romantic and early-modern periods. He is widely regarded as his country's greatest composer, and his music is often ...
optical music recognition
Optical music recognition (OMR) is a field of research that investigates how to computationally read musical notation in documents. The goal of OMR is to teach the computer to read and interpret sheet music and produce a machine-readable version o ...
programs, including
SmartScore
SmartScore 64 is a music OCR and scorewriter program, developed, published and distributed by Musitek Corporation based in Ojai, California.
History
SmartScore was originally released in 1991 as MIDISCAN for Windows. The product line was later ...
Audiveris
Audiveris is an open source tool for optical music recognition (OMR).
It allows a user to import scanned music scores and export them to MusicXML format for use in other applications, e.g. music notation programs or page turning software for ...
* Most
music sequencer
A music sequencer (or audio sequencer or simply sequencer) is a device or application software that can record, edit, or play back music, by handling note and performance information in several forms, typically CV/Gate, MIDI, or Open Sound Cont ...
programs, including
Cubase
Cubase is a digital audio workstation (DAW) developed by Steinberg for music and MIDI recording, arranging and editing. The first version, which was originally only a MIDI sequencer and ran on the Atari ST computer, was released in 1989. Cut-dow ...
,
Logic Pro
Logic Pro is a digital audio workstation (DAW) and MIDI music sequencer, sequencer software application for the macOS platform. It was originally created in the early 1990s as Notator Logic, or Logic, by German software developer C-Lab which ...
,
Digital Performer
Digital Performer is a digital audio workstation and music sequencer software package published by Mark of the Unicorn (MOTU) of Cambridge, Massachusetts for the Apple Macintosh and Microsoft Windows platforms.
Ancestry
In 1984, Mark of the Un ...
, and
SONAR
Sonar (sound navigation and ranging or sonic navigation and ranging) is a technique that uses sound propagation (usually underwater, as in submarine navigation) to navigation, navigate, measure distances (ranging), communicate with or detect o ...
Additionally, web support is possible through the use of the
HTML5
HTML5 is a markup language used for structuring and presenting content on the World Wide Web. It is the fifth and final major HTML version that is a World Wide Web Consortium (W3C) recommendation. The current specification is known as the HTML ...
canvas element
The canvas element is part of HTML5 and allows for dynamic, scriptable rendering of 2D shapes and bitmap images. It is a low level, procedural model that updates a bitmap. HTML5 Canvas also helps in making 2D games.
While the HTML5 canvas off ...
and
JavaScript
JavaScript (), often abbreviated as JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS. As of 2022, 98% of Website, websites use JavaScript on the Client (computing), client side ...
resulting in the rendering of legible music within a
web browser
A web browser is application software for accessing websites. When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's screen. Browsers are used on ...
.
Features include
key
Key or The Key may refer to:
Common meanings
* Key (cryptography), a piece of information that controls the operation of a cryptography algorithm
* Key (lock), device used to control access to places or facilities restricted by a lock
* Key (map ...
and
time signature
The time signature (also known as meter signature, metre signature, or measure signature) is a notational convention used in Western musical notation to specify how many beats (pulses) are contained in each measure (bar), and which note value ...
s,
clef
A clef (from French: 'key') is a Musical notation, musical symbol used to indicate which Musical note, notes are represented by the lines and spaces on a musical staff (music), stave. Placing a clef on a stave assigns a particular pitch to ...
s, beaming information,
stem
Stem or STEM may refer to:
Plant structures
* Plant stem, a plant's aboveground axis, made of vascular tissue, off which leaves and flowers hang
* Stipe (botany), a stalk to support some other structure
* Stipe (mycology), the stem of a mushro ...
ornaments
An ornament is something used for decoration.
Ornament may also refer to:
Decoration
*Ornament (art), any purely decorative element in architecture and the decorative arts
*Biological ornament, a characteristic of animals that appear to serve on ...
,
barlines
In musical notation, a bar (or measure) is a segment of time corresponding to a specific number of beats in which each beat is represented by a particular note value and the boundaries of the bar are indicated by vertical bar lines. Dividing mu ...
, and written repeats.
Example
Like all XML-based formats, MusicXML is intended to be easy for automated tools to
parse
Parsing, syntax analysis, or syntactic analysis is the process of analyzing a string of symbols, either in natural language, computer languages or data structures, conforming to the rules of a formal grammar. The term ''parsing'' comes from Lati ...
and manipulate. Though it is possible to create MusicXML by hand, interactive score writing programs like Finale and MuseScore greatly simplify the reading, writing, and modifying of MusicXML files.
The following example is a score consisting of a single
whole note
A whole note (American) or semibreve (British) in musical notation is a single note equivalent to or lasting as long as two half notes or four quarter notes. Description
The whole note or semibreve has a note head in the shape of a hollow o ...
middle C
C or Do is the first note and semitone of the C major scale, the third note of the A minor scale (the relative minor of C major), and the fourth note (G, A, B, C) of the Guidonian hand, commonly pitched around 261.63 Hz. The actual frequen ...
in the key of
C major
C major (or the key of C) is a major scale based on C, consisting of the pitches C, D, E, F, G, A, and B. C major is one of the most common keys used in music. Its key signature has no flats or sharps. Its relative minor is A minor and ...
on the
treble clef
A clef (from French: 'key') is a Musical notation, musical symbol used to indicate which Musical note, notes are represented by the lines and spaces on a musical staff (music), stave. Placing a clef on a stave assigns a particular pitch to ...
.Music10G2C44whole
The textual representation listed above is verbose; MusicXML v2.0 addresses this by adding a compressedzip format with a suffix that can make files roughly one-twentieth the size of the uncompressed version.
See also
*
List of document markup languages
The following is a list of document markup languages. You may also find the List of markup languages of interest.
Well-known document markup languages
* HyperText Markup Language (HTML) – the original markup language that was defined as a part o ...
*
Comparison of document markup languages The following tables compare general and technical information for a number of document markup languages. Please see the individual markup languages' articles for further information.
General information
Basic general information about the marku ...
*
MIDI
MIDI (; Musical Instrument Digital Interface) is a technical standard that describes a communications protocol, digital interface, and electrical connectors that connect a wide variety of electronic musical instruments, computers, and re ...
*
Music Encoding Initiative The Music Encoding Initiative (MEI) is an open-source effort to create a system for representation of musical documents in a machine-readable structure. MEI closely mirrors work done by text scholars in the Text Encoding Initiative (TEI) and while t ...
(MEI)
*
Music Markup Language
Music Markup Language (MML) was an early application of XML to describe music objects and events. MML pioneered features commonly used in later music markup formalisms, such as the IEEE 1599 standard. These features included the use of XML as a f ...
*
Notation Interchange File Format Notation Interchange File Format (NIFF) is a music notation file format used primarily for transferring music notation between different scorewriters.
The NIFF project was started in February 1994 to create an open format that would allow exchange ...
(NIFF)
*
Scorewriter
A scorewriter, or music notation program is software for creating, editing and printing sheet music. A scorewriter is to music notation what a word processor is to text, in that they typically provide flexible editing and automatic layout, and p ...