The <degree> element

Parent element: <harmony>

The <degree> element is used to add, alter, or subtract individual notes in the chord. The print-object attribute can be used to keep the degree from printing separately when it has already taken into account in the text attribute of the <kind> element.

A harmony with a <kind> value of other can be spelled explicitly by using a series of <degree> elements together with a <root>, <numeral>, or <function> element.

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

Hierarchy

  • Degree

Implements

Constructors

Properties

attributes: DegreeAttributes
contents: DegreeContents
schema: {
    attributes: {
        print-object: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: typeof DegreeValue;
    }, {
        type: "required";
        value: typeof DegreeAlter;
    }, {
        type: "required";
        value: typeof DegreeType;
    }];
    name: "degree";
} = Degree.schema

Type declaration

  • Readonly attributes: {
        print-object: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    }
    • Readonly print-object: {
          type: "optional";
          value: {
              choices: readonly ["yes", "no"];
              type: "choices";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            choices: readonly ["yes", "no"];
            type: "choices";
        }
        • Readonly choices: readonly ["yes", "no"]
        • Readonly type: "choices"
  • Readonly contents: readonly [{
        type: "required";
        value: typeof DegreeValue;
    }, {
        type: "required";
        value: typeof DegreeAlter;
    }, {
        type: "required";
        value: typeof DegreeType;
    }]
  • Readonly name: "degree"
schema: {
    attributes: {
        print-object: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: typeof DegreeValue;
    }, {
        type: "required";
        value: typeof DegreeAlter;
    }, {
        type: "required";
        value: typeof DegreeType;
    }];
    name: "degree";
} = ...

Type declaration

  • Readonly attributes: {
        print-object: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    }
    • Readonly print-object: {
          type: "optional";
          value: {
              choices: readonly ["yes", "no"];
              type: "choices";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            choices: readonly ["yes", "no"];
            type: "choices";
        }
        • Readonly choices: readonly ["yes", "no"]
        • Readonly type: "choices"
  • Readonly contents: readonly [{
        type: "required";
        value: typeof DegreeValue;
    }, {
        type: "required";
        value: typeof DegreeAlter;
    }, {
        type: "required";
        value: typeof DegreeType;
    }]
  • Readonly name: "degree"

Methods

Generated using TypeDoc