The <staves> element

Parent element: <attributes>

The <staves> element is used if there is more than one staff represented in the given part (e.g., 2 staves for typical piano parts). If absent, a value of 1 is assumed. Staves are ordered from top to bottom in a part in numerical order, with staff 1 above staff 2.

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

Hierarchy

  • Staves

Implements

Constructors

Properties

attributes: StavesAttributes
contents: StavesContents
schema: {
    attributes: {};
    contents: readonly [{
        label: "value";
        type: "label";
        value: {
            type: "required";
            value: {
                max: number;
                min: 0;
                type: "int";
            };
        };
    }];
    name: "staves";
} = Staves.schema

Type declaration

  • Readonly attributes: {}
    • Readonly contents: readonly [{
          label: "value";
          type: "label";
          value: {
              type: "required";
              value: {
                  max: number;
                  min: 0;
                  type: "int";
              };
          };
      }]
    • Readonly name: "staves"
    schema: {
        attributes: {};
        contents: readonly [{
            label: "value";
            type: "label";
            value: {
                type: "required";
                value: {
                    max: number;
                    min: 0;
                    type: "int";
                };
            };
        }];
        name: "staves";
    } = ...

    Type declaration

    • Readonly attributes: {}
      • Readonly contents: readonly [{
            label: "value";
            type: "label";
            value: {
                type: "required";
                value: {
                    max: number;
                    min: 0;
                    type: "int";
                };
            };
        }]
      • Readonly name: "staves"

      Methods

      Generated using TypeDoc