The <instrument> element

Parent element: <note>

The <instrument> element distinguishes between <score-instrument> elements in a <score-part>. If multiple <score-instrument> elements are specified in a <score-part>, there should be an <instrument> element for each note in the <part>. Notes that are shared between multiple <score-instrument>s can have more than one <instrument> element.

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

Hierarchy

  • Instrument

Implements

Constructors

Properties

Methods

Constructors

Properties

contents: []
schema: {
    attributes: {
        id: {
            type: "required";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    };
    contents: readonly [];
    name: "instrument";
} = Instrument.schema

Type declaration

  • Readonly attributes: {
        id: {
            type: "required";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    }
    • Readonly id: {
          type: "required";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "_";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "_"
  • Readonly contents: readonly []
  • Readonly name: "instrument"
schema: {
    attributes: {
        id: {
            type: "required";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    };
    contents: readonly [];
    name: "instrument";
} = ...

Type declaration

  • Readonly attributes: {
        id: {
            type: "required";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    }
    • Readonly id: {
          type: "required";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "_";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "_"
  • Readonly contents: readonly []
  • Readonly name: "instrument"

Methods

Generated using TypeDoc