LinkAttributes: {
    default-x: number | null;
    default-y: number | null;
    element: string | null;
    name: string | null;
    position: number | null;
    relative-x: number | null;
    relative-y: number | null;
    xlink:actuate: "none" | "onRequest" | "onLoad" | "other" | null;
    xlink:href: string;
    xlink:role: string | null;
    xlink:show: "none" | "new" | "replace" | "embed" | "other" | null;
    xlink:title: string | null;
    xlink:type: "simple" | null;
}

Type declaration

  • default-x: number | null

    Changes the computation of the default horizontal position. The origin is changed relative to the start of the entire current measure, at either the left barline or the start of the system. Positive x is right and negative x is left.

    This attribute provides higher-resolution positioning data than the <offset> element. Applications reading a MusicXML file that can understand both features should generally rely on this attribute for its greater accuracy.

  • default-y: number | null

    Changes the computation of the default vertical position. The origin is changed relative to the top line of the staff. Positive y is up and negative y is down.

    This attribute provides higher-resolution positioning data than the placement attribute. Applications reading a MusicXML file that can understand both attributes should generally rely on this attribute for its greater accuracy.

  • element: string | null

    The element attribute specifies an element type for a descendant of the next sibling element that is not a <link> or <bookmark> element. When not present, the <bookmark> or <link> element refers to the next sibling element in the MusicXML file.

  • name: string | null

    The name of this link.

  • position: number | null

    The position attribute specifies the position of the descendant element specified by the element attribute, where the first position is 1. The position attribute is ignored if the element attribute is not present.

    For instance, an element value of "beam" and a position value of "2" defines the <link> or <bookmark> to refer to the second beam descendant of the next sibling element that is not a <link> or <bookmark> element. This is equivalent to an XPath test of [.//beam[2]] done in the context of the sibling element.

  • relative-x: number | null

    Changes the horizontal position relative to the default position, either as computed by the individual program, or as overridden by the default-x attribute. Positive x is right and negative x is left. It should be interpreted in the context of the element or directive attribute if those are present.

  • relative-y: number | null

    Changes the vertical position relative to the default position, either as computed by the individual program, or as overridden by the default-y attribute. Positive y is up and negative y is down. It should be interpreted in the context of the placement attribute if that is present.

  • xlink:actuate: "none" | "onRequest" | "onLoad" | "other" | null

    The actuate attribute is used to communicate the desired timing of traversal from the starting resource to the ending resource. The default value is onRequest. See the definition in the XML Linking Language recommendation.

  • xlink:href: string

    The href attribute provides the data that allows an application to find a remote resource or resource fragment. See the definition in the XML Linking Language recommendation.

  • xlink:role: string | null

    The role attribute indicates a property of the link. See the definition in the XML Linking Language recommendation.

  • xlink:show: "none" | "new" | "replace" | "embed" | "other" | null

    The show attribute is used to communicate the desired presentation of the ending resource on traversal from the starting resource. The default value is replace. See the definition in the XML Linking Language recommendation.

  • xlink:title: string | null

    The title attribute describes the meaning of a link or resource in a human-readable fashion. See the definition in the XML Linking Language recommendation.

  • xlink:type: "simple" | null

    The type attribute identifies XLink element types. In MusicXML, the value is always simple. See the definition in the XML Linking Language recommendation.

Generated using TypeDoc