The <instrument-change> element

Parent element: <sound>

The <instrument-change> element type represents a change to the virtual instrument sound for a given <score-instrument>. All <instrument-change> child elements can also be initially specified within the <score-instrument> element.

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

Hierarchy

  • InstrumentChange

Implements

Constructors

Properties

schema: {
    attributes: {
        id: {
            type: "required";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof InstrumentSound;
    }, {
        label: "instrument-types";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof Solo, typeof Ensemble];
                type: "choices";
            };
        };
    }, {
        type: "optional";
        value: typeof VirtualInstrument;
    }];
    name: "instrument-change";
} = InstrumentChange.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 [{
        type: "optional";
        value: typeof InstrumentSound;
    }, {
        label: "instrument-types";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof Solo, typeof Ensemble];
                type: "choices";
            };
        };
    }, {
        type: "optional";
        value: typeof VirtualInstrument;
    }]
  • Readonly name: "instrument-change"
schema: {
    attributes: {
        id: {
            type: "required";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof InstrumentSound;
    }, {
        label: "instrument-types";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof Solo, typeof Ensemble];
                type: "choices";
            };
        };
    }, {
        type: "optional";
        value: typeof VirtualInstrument;
    }];
    name: "instrument-change";
} = ...

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 [{
        type: "optional";
        value: typeof InstrumentSound;
    }, {
        label: "instrument-types";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof Solo, typeof Ensemble];
                type: "choices";
            };
        };
    }, {
        type: "optional";
        value: typeof VirtualInstrument;
    }]
  • Readonly name: "instrument-change"

Methods

Generated using TypeDoc