The <alter> element

Parent element: <pitch>

The ` element represents chromatic alteration in number of semitones (e.g., -1 for flat, 1 for sharp). Decimal values like 0.5 (quarter tone sharp) are used for microtones.

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

Hierarchy

  • Alter

Implements

Constructors

Properties

attributes: AlterAttributes
contents: AlterContents
schema: {
    attributes: {};
    contents: readonly [{
        type: "required";
        value: {
            label: "semitones";
            type: "label";
            value: {
                max: number;
                min: number;
                type: "float";
            };
        };
    }];
    name: "alter";
} = Alter.schema

Type declaration

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

    Type declaration

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

      Methods

      Generated using TypeDoc