The <staff-details> element

Parent element: <attributes>

The <staff-details> element is used to indicate different types of staves.

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

Hierarchy

  • StaffDetails

Implements

Constructors

Properties

schema: {
    attributes: {
        number: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
        print-object: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        print-spacing: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        show-frets: {
            type: "optional";
            value: {
                choices: readonly ["letters", "numbers"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof StaffType;
    }, {
        label: "lines";
        type: "label";
        value: {
            type: "optional";
            value: readonly [{
                type: "required";
                value: typeof StaffLines;
            }, {
                type: "zeroOrMore";
                value: typeof LineDetail;
            }];
        };
    }, {
        label: "staff-tunings";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof StaffTuning;
        };
    }, {
        type: "optional";
        value: typeof Capo;
    }, {
        type: "optional";
        value: typeof StaffSize;
    }];
    name: "staff-details";
} = StaffDetails.schema

Type declaration

  • Readonly attributes: {
        number: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
        print-object: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        print-spacing: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        show-frets: {
            type: "optional";
            value: {
                choices: readonly ["letters", "numbers"];
                type: "choices";
            };
        };
    }
    • Readonly number: {
          type: "optional";
          value: {
              max: number;
              min: 1;
              type: "int";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            max: number;
            min: 1;
            type: "int";
        }
        • Readonly max: number
        • Readonly min: 1
        • Readonly type: "int"
    • Readonly print-object: {
          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 print-spacing: {
          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 show-frets: {
          type: "optional";
          value: {
              choices: readonly ["letters", "numbers"];
              type: "choices";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            choices: readonly ["letters", "numbers"];
            type: "choices";
        }
        • Readonly choices: readonly ["letters", "numbers"]
        • Readonly type: "choices"
  • Readonly contents: readonly [{
        type: "optional";
        value: typeof StaffType;
    }, {
        label: "lines";
        type: "label";
        value: {
            type: "optional";
            value: readonly [{
                type: "required";
                value: typeof StaffLines;
            }, {
                type: "zeroOrMore";
                value: typeof LineDetail;
            }];
        };
    }, {
        label: "staff-tunings";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof StaffTuning;
        };
    }, {
        type: "optional";
        value: typeof Capo;
    }, {
        type: "optional";
        value: typeof StaffSize;
    }]
  • Readonly name: "staff-details"
schema: {
    attributes: {
        number: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
        print-object: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        print-spacing: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        show-frets: {
            type: "optional";
            value: {
                choices: readonly ["letters", "numbers"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof StaffType;
    }, {
        label: "lines";
        type: "label";
        value: {
            type: "optional";
            value: readonly [{
                type: "required";
                value: typeof StaffLines;
            }, {
                type: "zeroOrMore";
                value: typeof LineDetail;
            }];
        };
    }, {
        label: "staff-tunings";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof StaffTuning;
        };
    }, {
        type: "optional";
        value: typeof Capo;
    }, {
        type: "optional";
        value: typeof StaffSize;
    }];
    name: "staff-details";
} = ...

Type declaration

  • Readonly attributes: {
        number: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
        print-object: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        print-spacing: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        show-frets: {
            type: "optional";
            value: {
                choices: readonly ["letters", "numbers"];
                type: "choices";
            };
        };
    }
    • Readonly number: {
          type: "optional";
          value: {
              max: number;
              min: 1;
              type: "int";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            max: number;
            min: 1;
            type: "int";
        }
        • Readonly max: number
        • Readonly min: 1
        • Readonly type: "int"
    • Readonly print-object: {
          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 print-spacing: {
          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 show-frets: {
          type: "optional";
          value: {
              choices: readonly ["letters", "numbers"];
              type: "choices";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            choices: readonly ["letters", "numbers"];
            type: "choices";
        }
        • Readonly choices: readonly ["letters", "numbers"]
        • Readonly type: "choices"
  • Readonly contents: readonly [{
        type: "optional";
        value: typeof StaffType;
    }, {
        label: "lines";
        type: "label";
        value: {
            type: "optional";
            value: readonly [{
                type: "required";
                value: typeof StaffLines;
            }, {
                type: "zeroOrMore";
                value: typeof LineDetail;
            }];
        };
    }, {
        label: "staff-tunings";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof StaffTuning;
        };
    }, {
        type: "optional";
        value: typeof Capo;
    }, {
        type: "optional";
        value: typeof StaffSize;
    }]
  • Readonly name: "staff-details"

Methods

Generated using TypeDoc