The <direction> element

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

A direction is a musical indication that is not necessarily attached to a specific note. Two or more may be combined to indicate words followed by the start of a dashed line, the end of a wedge followed by dynamics, etc. For applications where a specific direction is indeed attached to a specific note, the <direction> element can be associated with the first <note> element that follows it in score order that is not in a different voice.

By default, a series of <direction-type> elements and a series of child elements of a <direction-type> within a single <direction> element follow one another in sequence visually. For a series of <direction-type> children, non-positional formatting attributes are carried over from the previous element by default.

Content

In this order

Attributes

Name Type Required? Description
directive yes-no No Changes the default-x position of a direction. It indicates that the left-hand side of the direction is aligned with the left-hand side of the time signature. If no time signature is present, the direction is aligned with the left-hand side of the first music notational element in the measure. If a default-x, justify, or halign attribute is present, it overrides this attribute.
id ID No Specifies an ID that is unique to the entire document.
placement above-below No Indicates whether something is above or below another element, such as a note or a notation.
system system-relation No Distinguishes elements that are associated with a system rather than the particular part where the element appears.

Examples

This element is used in the following examples:

<accordion-registration>, <attributes>, <bookmark>, <bracket>, <coda>, <damp-all>, <damp>, <dashes>, <double>, <effect>, <f>, <ff>, <fff>, <ffff>, <fffff>, <ffffff>, <footnote>, <forward>, <glass>, <grouping>, <humming>, <image>, <instrument-change>, <link>, <measure-distance>, <membrane>, <metal>, <metronome-note>, <metronome>, <mf>, <mp>, <n>, <octave-shift>, <p>, <pan> and <elevation>, <pedal> (Lines), <pedal> (Symbols), <per-minute>, <pf>, <pitched>, <pp>, <ppp>, <pppp>, <ppppp>, <pppppp>, <principal-voice>, <rehearsal>, <segno>, <sfzp>, <staff-divide>, <stick-location>, <straight>, <string-mute> (Off), <string-mute> (On), <swing>, <sync>, <timpani>, <wait>, <wedge>, <with-bar>, <wood>, system attribute (also-top), system attribute (only-top), Tutorial: Après un rêve, Tutorial: Chopin Prelude