The <duration> element

Parent elements: <backup>, <figured-bass>, <forward>, <note>

Duration is a positive number specified in division units. The <duration> element represents the intended duration vs. the notated duration (for instance, differences in dotted notes in Baroque-era music). Differences in duration specific to an interpretation or performance should be represented using the <note> element's attack and release attributes.

The <duration> element moves the musical position when used in <backup> elements, <forward> elements, and <note> elements that do not contain a <chord> child element.

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

Hierarchy

  • Duration

Implements

Constructors

Properties

attributes: DurationAttributes
schema: {
    attributes: {};
    contents: readonly [{
        type: "required";
        value: {
            label: "positive-divisions";
            type: "label";
            value: {
                max: number;
                min: 1;
                type: "float";
            };
        };
    }];
    name: "duration";
} = Duration.schema

Type declaration

  • Readonly attributes: {}
    • Readonly contents: readonly [{
          type: "required";
          value: {
              label: "positive-divisions";
              type: "label";
              value: {
                  max: number;
                  min: 1;
                  type: "float";
              };
          };
      }]
    • Readonly name: "duration"
    schema: {
        attributes: {};
        contents: readonly [{
            type: "required";
            value: {
                label: "positive-divisions";
                type: "label";
                value: {
                    max: number;
                    min: 1;
                    type: "float";
                };
            };
        }];
        name: "duration";
    } = ...

    Type declaration

    • Readonly attributes: {}
      • Readonly contents: readonly [{
            type: "required";
            value: {
                label: "positive-divisions";
                type: "label";
                value: {
                    max: number;
                    min: 1;
                    type: "float";
                };
            };
        }]
      • Readonly name: "duration"

      Methods

      Generated using TypeDoc