The <line> element

Parent elements: <clef>, <part-clef>

Line numbers are counted from the bottom of the staff. They are only needed with the G, F, and C signs in order to position a pitch correctly on the staff. Standard values are 2 for the G sign (treble clef), 4 for the F sign (bass clef), and 3 for the C sign (alto clef). Line values can be used to specify positions outside the staff, such as a C clef positioned in the middle of a grand staff.

https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/line/

Hierarchy

  • Line

Implements

Constructors

Properties

attributes: LineAttributes
contents: LineContents
schema: {
    attributes: {};
    contents: readonly [{
        type: "required";
        value: {
            label: "staff-line-position";
            type: "label";
            value: {
                max: number;
                min: number;
                type: "int";
            };
        };
    }];
    name: "line";
} = Line.schema

Type declaration

  • Readonly attributes: {}
    • Readonly contents: readonly [{
          type: "required";
          value: {
              label: "staff-line-position";
              type: "label";
              value: {
                  max: number;
                  min: number;
                  type: "int";
              };
          };
      }]
    • Readonly name: "line"
    schema: {
        attributes: {};
        contents: readonly [{
            type: "required";
            value: {
                label: "staff-line-position";
                type: "label";
                value: {
                    max: number;
                    min: number;
                    type: "int";
                };
            };
        }];
        name: "line";
    } = ...

    Type declaration

    • Readonly attributes: {}
      • Readonly contents: readonly [{
            type: "required";
            value: {
                label: "staff-line-position";
                type: "label";
                value: {
                    max: number;
                    min: number;
                    type: "int";
                };
            };
        }]
      • Readonly name: "line"

      Methods

      Generated using TypeDoc