The <midi-instrument> element

Parent elements: <score-part>, <sound>

The <midi-instrument> element defines MIDI 1.0 instrument playback. The <midi-instrument> element can be a part of either the <score-instrument> element at the start of a part, or the ` element within a part.

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

Hierarchy

  • MidiInstrument

Implements

Constructors

Properties

schema: {
    attributes: {
        id: {
            type: "required";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof MidiChannel;
    }, {
        type: "optional";
        value: typeof MidiName;
    }, {
        type: "optional";
        value: typeof MidiBank;
    }, {
        type: "optional";
        value: typeof MidiProgram;
    }, {
        type: "optional";
        value: typeof MidiUnpitched;
    }, {
        type: "optional";
        value: typeof Volume;
    }, {
        type: "optional";
        value: typeof Pan;
    }, {
        type: "optional";
        value: typeof Elevation;
    }];
    name: "midi-instrument";
} = MidiInstrument.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 MidiChannel;
    }, {
        type: "optional";
        value: typeof MidiName;
    }, {
        type: "optional";
        value: typeof MidiBank;
    }, {
        type: "optional";
        value: typeof MidiProgram;
    }, {
        type: "optional";
        value: typeof MidiUnpitched;
    }, {
        type: "optional";
        value: typeof Volume;
    }, {
        type: "optional";
        value: typeof Pan;
    }, {
        type: "optional";
        value: typeof Elevation;
    }]
  • Readonly name: "midi-instrument"
schema: {
    attributes: {
        id: {
            type: "required";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof MidiChannel;
    }, {
        type: "optional";
        value: typeof MidiName;
    }, {
        type: "optional";
        value: typeof MidiBank;
    }, {
        type: "optional";
        value: typeof MidiProgram;
    }, {
        type: "optional";
        value: typeof MidiUnpitched;
    }, {
        type: "optional";
        value: typeof Volume;
    }, {
        type: "optional";
        value: typeof Pan;
    }, {
        type: "optional";
        value: typeof Elevation;
    }];
    name: "midi-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 [{
        type: "optional";
        value: typeof MidiChannel;
    }, {
        type: "optional";
        value: typeof MidiName;
    }, {
        type: "optional";
        value: typeof MidiBank;
    }, {
        type: "optional";
        value: typeof MidiProgram;
    }, {
        type: "optional";
        value: typeof MidiUnpitched;
    }, {
        type: "optional";
        value: typeof Volume;
    }, {
        type: "optional";
        value: typeof Pan;
    }, {
        type: "optional";
        value: typeof Elevation;
    }]
  • Readonly name: "midi-instrument"

Methods

Generated using TypeDoc