MusicXML 4.1 Draft
MusicXML 4.1 Draft > MusicXML Reference > Elements > The <note> element

The <note> element

Parent elements: <measure> (partwise)<part> (timewise)

Notes are the most common type of MusicXML data. The MusicXML format distinguishes between elements used for sound information and elements used for notation information (e.g., tie is used for sound, tied for notation). Thus grace notes do not have a duration element. Cue notes have a duration element, as do forward elements, but no tie elements. Having these two types of information available can make interchange easier, as some programs handle one type of information more readily than the other.

The print-leger attribute is used to indicate whether leger lines are printed. Notes without leger lines are used to indicate indeterminate high and low notes. By default, it is set to yes. If print-object is set to no, print-leger is interpreted to also be set to no if not present. This attribute is ignored for rests.

The dynamics and end-dynamics attributes correspond to MIDI 1.0’s Note On and Note Off velocities, respectively. They are expressed in terms of percentages of the default forte value (90 for MIDI 1.0).

The attack and release attributes are used to alter the starting and stopping time of the note from when it would otherwise occur based on the flow of durations - information that is specific to a performance. They are expressed in terms of divisions, either positive or negative. A note that starts a tie should not have a release attribute, and a note that stops a tie should not have an attack attribute. The attack and release attributes are independent of each other. The attack attribute only changes the starting time of a note, and the release attribute only changes the stopping time of a note.

If a note is played only particular times through a repeat, the time-only attribute shows which times to play the note.

The pizzicato attribute is used when just this note is sounded pizzicato, vs. the pizzicato element which changes overall playback between pizzicato and arco.

Content

In this order

Attributes

Name Type Required? Description
attack divisions No
color color No
default-x tenths No
default-y tenths No
dynamics non-negative-decimal No
end-dynamics non-negative-decimal No
font-family font-family No
font-size font-size No
font-style font-style No
font-weight font-weight No
id xs:ID No
pizzicato yes-no No
print-dot yes-no No
print-leger yes-no No
print-lyric yes-no No
print-object yes-no No
print-spacing yes-no No
relative-x tenths No
relative-y tenths No
release divisions No
time-only time-only No

Examples

This element is used in the following examples:

<accent><accidental-mark> (Notation)<accidental-mark> (Ornament)<accidental><alter> (Semitones)<arpeggiate><artificial><assess> and <player><attributes><backup><barline><beam><beat-repeat><bookmark><bracket><chord><chord> (Multiple Stop)<concert-score> and <for-part><cue><damp-all><damp><divisions> and <duration><dot><double><end-line><end-paragraph><ending><except-voice><extend> (Figured Bass)<extend> (Lyric)<forward><glissando> (Multiple)<glissando> (Single)<grace><grace> (Appoggiatura)<grouping><humming><instrument-change><ipa><laughing><level><line-detail><link><lyric><measure-distance><measure-repeat><multiple-rest><n><non-arpeggiate><normal-dot><octave><pedal> (Lines)<pedal> (Symbols)<pitch><plop><pluck><pre-bend><principal-voice><release><rest><schleifer><score-timewise><slash><slide><slur><staff><step><stopped><strong-accent><syllabic><sync><tap><technical> (Tablature)<tied><time-modification><tremolo> (Double)<tremolo> (Single)<trill-mark><tuplet-dot><tuplet> (Nested)<tuplet> (Regular)<turn><unpitched><voice><wait><wavy-line><wedge><with-bar>Tutorial: Après un rêveTutorial: Chopin PreludeTutorial: Chord SymbolsTutorial: Hello, WorldTutorial: PercussionTutorial: Tablature