The <rest> element

Parent element: `

The <rest> element indicates notated rests or silences. A element is usually empty, but placement on the staff can be specified using <display-step> and <display-octave> elements.

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

Hierarchy

  • Rest

Implements

Constructors

Properties

attributes: RestAttributes
contents: RestContents
schema: {
    attributes: {
        measure: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: {
            label: "value";
            type: "label";
            value: readonly [{
                type: "required";
                value: typeof DisplayStep;
            }, {
                type: "required";
                value: typeof DisplayOctave;
            }];
        };
    }];
    name: "rest";
} = Rest.schema

Type declaration

  • Readonly attributes: {
        measure: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    }
    • Readonly measure: {
          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: "optional";
        value: {
            label: "value";
            type: "label";
            value: readonly [{
                type: "required";
                value: typeof DisplayStep;
            }, {
                type: "required";
                value: typeof DisplayOctave;
            }];
        };
    }]
  • Readonly name: "rest"
schema: {
    attributes: {
        measure: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: {
            label: "value";
            type: "label";
            value: readonly [{
                type: "required";
                value: typeof DisplayStep;
            }, {
                type: "required";
                value: typeof DisplayOctave;
            }];
        };
    }];
    name: "rest";
} = ...

Type declaration

  • Readonly attributes: {
        measure: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    }
    • Readonly measure: {
          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: "optional";
        value: {
            label: "value";
            type: "label";
            value: readonly [{
                type: "required";
                value: typeof DisplayStep;
            }, {
                type: "required";
                value: typeof DisplayOctave;
            }];
        };
    }]
  • Readonly name: "rest"

Methods

Generated using TypeDoc