The <defaults> element

Parent elements: <score-partwise version="4.0">, <score-timewise>

The <defaults> element specifies score-wide defaults for scaling; whether or not the file is a concert score; layout; and default values for the music font, word font, lyric font, and lyric language. Except for the <concert-score> element, if any defaults are missing, the choice of what to use is determined by the application.

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

Hierarchy

  • StaffLayout

Implements

Constructors

Properties

schema: {
    attributes: {
        number: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof StaffDistance;
    }];
    name: "staff-layout";
} = StaffLayout.schema

Type declaration

  • Readonly attributes: {
        number: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    }
    • Readonly number: {
          type: "optional";
          value: {
              max: number;
              min: 1;
              type: "int";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            max: number;
            min: 1;
            type: "int";
        }
        • Readonly max: number
        • Readonly min: 1
        • Readonly type: "int"
  • Readonly contents: readonly [{
        type: "optional";
        value: typeof StaffDistance;
    }]
  • Readonly name: "staff-layout"
schema: {
    attributes: {
        number: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof StaffDistance;
    }];
    name: "staff-layout";
} = ...

Type declaration

  • Readonly attributes: {
        number: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    }
    • Readonly number: {
          type: "optional";
          value: {
              max: number;
              min: 1;
              type: "int";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            max: number;
            min: 1;
            type: "int";
        }
        • Readonly max: number
        • Readonly min: 1
        • Readonly type: "int"
  • Readonly contents: readonly [{
        type: "optional";
        value: typeof StaffDistance;
    }]
  • Readonly name: "staff-layout"

Methods

Generated using TypeDoc