The <staff> element

Parent elements: <direction>, <forward>, <harmony>, <note>

Staff assignment is only needed for music notated on multiple staves. Staff values are numbers, with 1 referring to the top-most staff in a part.

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

Hierarchy

  • Staff

Implements

Constructors

Properties

attributes: StaffAttributes
contents: StaffContents
schema: {
    attributes: {};
    contents: readonly [{
        label: "value";
        type: "label";
        value: {
            type: "required";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
    }];
    name: "staff";
} = Staff.schema

Type declaration

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

    Type declaration

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

      Methods

      Generated using TypeDoc