The <root> element

Parent element: <harmony>

The <root> element indicates a pitch like C, D, E vs. a scale degree like 1, 2, 3. It is used with chord symbols in popular music. The <root> element has a <root-step> and optional <root-alter> element similar to the <step> and <alter> elements, but renamed to distinguish the different musical meanings.

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

Hierarchy

  • Root

Implements

Constructors

Properties

attributes: RootAttributes
contents: RootContents
schema: {
    attributes: {};
    contents: readonly [{
        type: "required";
        value: typeof RootStep;
    }, {
        type: "optional";
        value: typeof RootAlter;
    }];
    name: "root";
} = Root.schema

Type declaration

  • Readonly attributes: {}
    • Readonly contents: readonly [{
          type: "required";
          value: typeof RootStep;
      }, {
          type: "optional";
          value: typeof RootAlter;
      }]
    • Readonly name: "root"
    schema: {
        attributes: {};
        contents: readonly [{
            type: "required";
            value: typeof RootStep;
        }, {
            type: "optional";
            value: typeof RootAlter;
        }];
        name: "root";
    } = ...

    Type declaration

    • Readonly attributes: {}
      • Readonly contents: readonly [{
            type: "required";
            value: typeof RootStep;
        }, {
            type: "optional";
            value: typeof RootAlter;
        }]
      • Readonly name: "root"

      Methods

      Generated using TypeDoc