The <defautls> 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

  • Defaults

Implements

Constructors

Properties

attributes: DefaultsAttributes
schema: {
    attributes: {};
    contents: readonly [{
        type: "optional";
        value: typeof Scaling;
    }, {
        type: "optional";
        value: typeof ConcertScore;
    }, {
        type: "optional";
        value: typeof PageLayout;
    }, {
        type: "optional";
        value: typeof SystemLayout;
    }, {
        label: "staff-layouts";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof StaffLayout;
        };
    }, {
        type: "optional";
        value: typeof Appearance;
    }, {
        type: "optional";
        value: typeof MusicFont;
    }, {
        type: "optional";
        value: typeof WordFont;
    }, {
        label: "lyric-fonts";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof LyricFont;
        };
    }, {
        label: "lyric-languages";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof LyricLanguage;
        };
    }];
    name: "defaults";
} = Defaults.schema

Type declaration

  • Readonly attributes: {}
    • Readonly contents: readonly [{
          type: "optional";
          value: typeof Scaling;
      }, {
          type: "optional";
          value: typeof ConcertScore;
      }, {
          type: "optional";
          value: typeof PageLayout;
      }, {
          type: "optional";
          value: typeof SystemLayout;
      }, {
          label: "staff-layouts";
          type: "label";
          value: {
              type: "zeroOrMore";
              value: typeof StaffLayout;
          };
      }, {
          type: "optional";
          value: typeof Appearance;
      }, {
          type: "optional";
          value: typeof MusicFont;
      }, {
          type: "optional";
          value: typeof WordFont;
      }, {
          label: "lyric-fonts";
          type: "label";
          value: {
              type: "zeroOrMore";
              value: typeof LyricFont;
          };
      }, {
          label: "lyric-languages";
          type: "label";
          value: {
              type: "zeroOrMore";
              value: typeof LyricLanguage;
          };
      }]
    • Readonly name: "defaults"
    schema: {
        attributes: {};
        contents: readonly [{
            type: "optional";
            value: typeof Scaling;
        }, {
            type: "optional";
            value: typeof ConcertScore;
        }, {
            type: "optional";
            value: typeof PageLayout;
        }, {
            type: "optional";
            value: typeof SystemLayout;
        }, {
            label: "staff-layouts";
            type: "label";
            value: {
                type: "zeroOrMore";
                value: typeof StaffLayout;
            };
        }, {
            type: "optional";
            value: typeof Appearance;
        }, {
            type: "optional";
            value: typeof MusicFont;
        }, {
            type: "optional";
            value: typeof WordFont;
        }, {
            label: "lyric-fonts";
            type: "label";
            value: {
                type: "zeroOrMore";
                value: typeof LyricFont;
            };
        }, {
            label: "lyric-languages";
            type: "label";
            value: {
                type: "zeroOrMore";
                value: typeof LyricLanguage;
            };
        }];
        name: "defaults";
    } = ...

    Type declaration

    • Readonly attributes: {}
      • Readonly contents: readonly [{
            type: "optional";
            value: typeof Scaling;
        }, {
            type: "optional";
            value: typeof ConcertScore;
        }, {
            type: "optional";
            value: typeof PageLayout;
        }, {
            type: "optional";
            value: typeof SystemLayout;
        }, {
            label: "staff-layouts";
            type: "label";
            value: {
                type: "zeroOrMore";
                value: typeof StaffLayout;
            };
        }, {
            type: "optional";
            value: typeof Appearance;
        }, {
            type: "optional";
            value: typeof MusicFont;
        }, {
            type: "optional";
            value: typeof WordFont;
        }, {
            label: "lyric-fonts";
            type: "label";
            value: {
                type: "zeroOrMore";
                value: typeof LyricFont;
            };
        }, {
            label: "lyric-languages";
            type: "label";
            value: {
                type: "zeroOrMore";
                value: typeof LyricLanguage;
            };
        }]
      • Readonly name: "defaults"

      Methods

      Generated using TypeDoc