The <credit> element

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

The <credit> element represents the appearance of the title, composer, arranger, lyricist, copyright, dedication, and other text, symbols, and graphics that commonly appear on the first page of a score. The <credit-words>, <credit-symbol>, and <credit-image> elements are similar to the <words>, <symbol>, and <image> elements for directions. However, since the credit is not part of a measure, the default-x and default-y attributes adjust the origin relative to the bottom left-hand corner of the page. The enclosure for <credit-words> and <credit-symbol> is none if not specified.

By default, a series of <credit-words> and <credit-symbol> elements within a single <credit> element follow one another in sequence visually. Non-positional formatting attributes are carried over from the previous element by default.

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

Hierarchy

  • Credit

Implements

Constructors

Properties

attributes: CreditAttributes
contents: CreditContents
schema: {
    attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        page: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    };
    contents: readonly [{
        label: "credit-types";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof CreditType;
        };
    }, {
        label: "links";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Link;
        };
    }, {
        label: "bookmarks";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Bookmark;
        };
    }, {
        label: "value";
        type: "label";
        value: {
            choices: readonly [typeof CreditImage, {
                label: "credit-token";
                type: "label";
                value: readonly [{
                    choices: readonly [typeof CreditWords, typeof CreditSymbol];
                    type: "choices";
                }, {
                    type: "zeroOrMore";
                    value: readonly [{
                        type: "zeroOrMore";
                        value: typeof Link;
                    }, {
                        type: "zeroOrMore";
                        value: typeof Bookmark;
                    }, {
                        choices: readonly [typeof CreditWords, typeof CreditSymbol];
                        type: "choices";
                    }];
                }];
            }];
            type: "choices";
        };
    }];
    name: "credit";
} = Credit.schema

Type declaration

  • Readonly attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        page: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    }
    • Readonly id: {
          type: "optional";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "_";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "_"
    • Readonly page: {
          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 [{
        label: "credit-types";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof CreditType;
        };
    }, {
        label: "links";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Link;
        };
    }, {
        label: "bookmarks";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Bookmark;
        };
    }, {
        label: "value";
        type: "label";
        value: {
            choices: readonly [typeof CreditImage, {
                label: "credit-token";
                type: "label";
                value: readonly [{
                    choices: readonly [typeof CreditWords, typeof CreditSymbol];
                    type: "choices";
                }, {
                    type: "zeroOrMore";
                    value: readonly [{
                        type: "zeroOrMore";
                        value: typeof Link;
                    }, {
                        type: "zeroOrMore";
                        value: typeof Bookmark;
                    }, {
                        choices: readonly [typeof CreditWords, typeof CreditSymbol];
                        type: "choices";
                    }];
                }];
            }];
            type: "choices";
        };
    }]
  • Readonly name: "credit"
schema: {
    attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        page: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    };
    contents: readonly [{
        label: "credit-types";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof CreditType;
        };
    }, {
        label: "links";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Link;
        };
    }, {
        label: "bookmarks";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Bookmark;
        };
    }, {
        label: "value";
        type: "label";
        value: {
            choices: readonly [typeof CreditImage, {
                label: "credit-token";
                type: "label";
                value: readonly [{
                    choices: readonly [typeof CreditWords, typeof CreditSymbol];
                    type: "choices";
                }, {
                    type: "zeroOrMore";
                    value: readonly [{
                        type: "zeroOrMore";
                        value: typeof Link;
                    }, {
                        type: "zeroOrMore";
                        value: typeof Bookmark;
                    }, {
                        choices: readonly [typeof CreditWords, typeof CreditSymbol];
                        type: "choices";
                    }];
                }];
            }];
            type: "choices";
        };
    }];
    name: "credit";
} = ...

Type declaration

  • Readonly attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        page: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    }
    • Readonly id: {
          type: "optional";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "_";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "_"
    • Readonly page: {
          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 [{
        label: "credit-types";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof CreditType;
        };
    }, {
        label: "links";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Link;
        };
    }, {
        label: "bookmarks";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Bookmark;
        };
    }, {
        label: "value";
        type: "label";
        value: {
            choices: readonly [typeof CreditImage, {
                label: "credit-token";
                type: "label";
                value: readonly [{
                    choices: readonly [typeof CreditWords, typeof CreditSymbol];
                    type: "choices";
                }, {
                    type: "zeroOrMore";
                    value: readonly [{
                        type: "zeroOrMore";
                        value: typeof Link;
                    }, {
                        type: "zeroOrMore";
                        value: typeof Bookmark;
                    }, {
                        choices: readonly [typeof CreditWords, typeof CreditSymbol];
                        type: "choices";
                    }];
                }];
            }];
            type: "choices";
        };
    }]
  • Readonly name: "credit"

Methods

Generated using TypeDoc