The <transpose> element

Parent element: <attributes>

The <transpose> element represents what must be added to a written pitch to get a correct sounding pitch. It is used for encoding parts for transposing instruments that are in written vs. concert pitch.

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

Hierarchy

  • Transpose

Implements

Constructors

Properties

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 Diatonic;
    }, {
        type: "required";
        value: typeof Chromatic;
    }, {
        type: "optional";
        value: typeof OctaveChange;
    }, {
        type: "optional";
        value: typeof Double;
    }];
    name: "transpose";
} = Transpose.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 Diatonic;
    }, {
        type: "required";
        value: typeof Chromatic;
    }, {
        type: "optional";
        value: typeof OctaveChange;
    }, {
        type: "optional";
        value: typeof Double;
    }]
  • Readonly name: "transpose"
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 Diatonic;
    }, {
        type: "required";
        value: typeof Chromatic;
    }, {
        type: "optional";
        value: typeof OctaveChange;
    }, {
        type: "optional";
        value: typeof Double;
    }];
    name: "transpose";
} = ...

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 Diatonic;
    }, {
        type: "required";
        value: typeof Chromatic;
    }, {
        type: "optional";
        value: typeof OctaveChange;
    }, {
        type: "optional";
        value: typeof Double;
    }]
  • Readonly name: "transpose"

Methods

Generated using TypeDoc