The <key-alter> element

Parent element: <key>

Non-traditional key signatures are represented using a list of altered tones. The <key-alter> element represents the alteration for a given pitch step, represented with semitones in the same manner as the <alter> element. The different element names indicate the different meaning of altering notes in a scale versus altering a sounding pitch.

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

Hierarchy

  • KeyAlter

Implements

Constructors

Properties

attributes: KeyAlterAttributes
schema: {
    attributes: {};
    contents: readonly [{
        type: "required";
        value: {
            label: "semitones";
            type: "label";
            value: {
                max: number;
                min: number;
                type: "float";
            };
        };
    }];
    name: "key-alter";
} = KeyAlter.schema

Type declaration

  • Readonly attributes: {}
    • Readonly contents: readonly [{
          type: "required";
          value: {
              label: "semitones";
              type: "label";
              value: {
                  max: number;
                  min: number;
                  type: "float";
              };
          };
      }]
    • Readonly name: "key-alter"
    schema: {
        attributes: {};
        contents: readonly [{
            type: "required";
            value: {
                label: "semitones";
                type: "label";
                value: {
                    max: number;
                    min: number;
                    type: "float";
                };
            };
        }];
        name: "key-alter";
    } = ...

    Type declaration

    • Readonly attributes: {}
      • Readonly contents: readonly [{
            type: "required";
            value: {
                label: "semitones";
                type: "label";
                value: {
                    max: number;
                    min: number;
                    type: "float";
                };
            };
        }]
      • Readonly name: "key-alter"

      Methods

      Generated using TypeDoc