The <for-part> element

Parent element: <attributes>

The <for-part> element is used in a concert score to indicate the transposition for a transposed part created from that score. It is only used in score files that contain a <concert-score> element in the <defaults> element. This allows concert scores with transposed parts to be represented in a single uncompressed MusicXML file.

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

Hierarchy

  • ForPart

Implements

Constructors

Properties

attributes: ForPartAttributes
contents: ForPartContents
schema: {
    attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        number: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof PartClef;
    }, {
        type: "required";
        value: typeof PartTranspose;
    }];
    name: "for-part";
} = ForPart.schema

Type declaration

  • Readonly attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        number: {
            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 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 PartClef;
    }, {
        type: "required";
        value: typeof PartTranspose;
    }]
  • Readonly name: "for-part"
schema: {
    attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        number: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof PartClef;
    }, {
        type: "required";
        value: typeof PartTranspose;
    }];
    name: "for-part";
} = ...

Type declaration

  • Readonly attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        number: {
            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 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 PartClef;
    }, {
        type: "required";
        value: typeof PartTranspose;
    }]
  • Readonly name: "for-part"

Methods

Generated using TypeDoc