The <midi-device> element

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

The <midi-device> element corresponds to the DeviceName meta event in Standard MIDI Files. Unlike the DeviceName meta event, there can be multiple <midi-device> elements per MusicXML part.

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

Hierarchy

  • MidiDevice

Implements

Constructors

Properties

schema: {
    attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        port: {
            type: "optional";
            value: {
                label: "midi16";
                type: "label";
                value: {
                    max: 16;
                    min: 1;
                    type: "int";
                };
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: {
            type: "string";
        };
    }];
    name: "midi-device";
} = MidiDevice.schema

Type declaration

  • Readonly attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        port: {
            type: "optional";
            value: {
                label: "midi16";
                type: "label";
                value: {
                    max: 16;
                    min: 1;
                    type: "int";
                };
            };
        };
    }
    • Readonly id: {
          type: "optional";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "_";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "_"
    • Readonly port: {
          type: "optional";
          value: {
              label: "midi16";
              type: "label";
              value: {
                  max: 16;
                  min: 1;
                  type: "int";
              };
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            label: "midi16";
            type: "label";
            value: {
                max: 16;
                min: 1;
                type: "int";
            };
        }
        • Readonly label: "midi16"
        • Readonly type: "label"
        • Readonly value: {
              max: 16;
              min: 1;
              type: "int";
          }
          • Readonly max: 16
          • Readonly min: 1
          • Readonly type: "int"
  • Readonly contents: readonly [{
        type: "required";
        value: {
            type: "string";
        };
    }]
  • Readonly name: "midi-device"
schema: {
    attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        port: {
            type: "optional";
            value: {
                label: "midi16";
                type: "label";
                value: {
                    max: 16;
                    min: 1;
                    type: "int";
                };
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: {
            type: "string";
        };
    }];
    name: "midi-device";
} = ...

Type declaration

  • Readonly attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        port: {
            type: "optional";
            value: {
                label: "midi16";
                type: "label";
                value: {
                    max: 16;
                    min: 1;
                    type: "int";
                };
            };
        };
    }
    • Readonly id: {
          type: "optional";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "_";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "_"
    • Readonly port: {
          type: "optional";
          value: {
              label: "midi16";
              type: "label";
              value: {
                  max: 16;
                  min: 1;
                  type: "int";
              };
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            label: "midi16";
            type: "label";
            value: {
                max: 16;
                min: 1;
                type: "int";
            };
        }
        • Readonly label: "midi16"
        • Readonly type: "label"
        • Readonly value: {
              max: 16;
              min: 1;
              type: "int";
          }
          • Readonly max: 16
          • Readonly min: 1
          • Readonly type: "int"
  • Readonly contents: readonly [{
        type: "required";
        value: {
            type: "string";
        };
    }]
  • Readonly name: "midi-device"

Methods

Generated using TypeDoc