The <score-part> element

Parent element: <part-list>

The <score-part> element collects part-wide information for each part in a score. Often each MusicXML part corresponds to a track in a Standard MIDI Format 1 file. In this case, the <midi-device> element is used to make a MIDI device or port assignment for the given track or specific MIDI instruments. Initial <midi-instrument> assignments may be made here as well.

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

Hierarchy

  • ScorePart

Implements

Constructors

Properties

schema: {
    attributes: {
        id: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof Identification;
    }, {
        label: "part-links";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof PartLink;
        };
    }, {
        type: "required";
        value: typeof PartName;
    }, {
        type: "optional";
        value: typeof PartNameDisplay;
    }, {
        type: "optional";
        value: typeof PartAbbreviation;
    }, {
        type: "optional";
        value: typeof PartAbbreviationDisplay;
    }, {
        label: "groups";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Group;
        };
    }, {
        label: "score-instruments";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof ScoreInstrument;
        };
    }, {
        label: "players";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Player;
        };
    }, {
        label: "midis";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof MidiDevice, typeof MidiInstrument];
                type: "choices";
            };
        };
    }];
    name: "score-part";
} = ScorePart.schema

Type declaration

  • Readonly attributes: {
        id: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        };
    }
    • Readonly id: {
          pattern: RegExp;
          type: "regex";
          zero: "_";
      }
      • Readonly pattern: RegExp
      • Readonly type: "regex"
      • Readonly zero: "_"
  • Readonly contents: readonly [{
        type: "optional";
        value: typeof Identification;
    }, {
        label: "part-links";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof PartLink;
        };
    }, {
        type: "required";
        value: typeof PartName;
    }, {
        type: "optional";
        value: typeof PartNameDisplay;
    }, {
        type: "optional";
        value: typeof PartAbbreviation;
    }, {
        type: "optional";
        value: typeof PartAbbreviationDisplay;
    }, {
        label: "groups";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Group;
        };
    }, {
        label: "score-instruments";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof ScoreInstrument;
        };
    }, {
        label: "players";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Player;
        };
    }, {
        label: "midis";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof MidiDevice, typeof MidiInstrument];
                type: "choices";
            };
        };
    }]
  • Readonly name: "score-part"
schema: {
    attributes: {
        id: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof Identification;
    }, {
        label: "part-links";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof PartLink;
        };
    }, {
        type: "required";
        value: typeof PartName;
    }, {
        type: "optional";
        value: typeof PartNameDisplay;
    }, {
        type: "optional";
        value: typeof PartAbbreviation;
    }, {
        type: "optional";
        value: typeof PartAbbreviationDisplay;
    }, {
        label: "groups";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Group;
        };
    }, {
        label: "score-instruments";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof ScoreInstrument;
        };
    }, {
        label: "players";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Player;
        };
    }, {
        label: "midis";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof MidiDevice, typeof MidiInstrument];
                type: "choices";
            };
        };
    }];
    name: "score-part";
} = ...

Type declaration

  • Readonly attributes: {
        id: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        };
    }
    • Readonly id: {
          pattern: RegExp;
          type: "regex";
          zero: "_";
      }
      • Readonly pattern: RegExp
      • Readonly type: "regex"
      • Readonly zero: "_"
  • Readonly contents: readonly [{
        type: "optional";
        value: typeof Identification;
    }, {
        label: "part-links";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof PartLink;
        };
    }, {
        type: "required";
        value: typeof PartName;
    }, {
        type: "optional";
        value: typeof PartNameDisplay;
    }, {
        type: "optional";
        value: typeof PartAbbreviation;
    }, {
        type: "optional";
        value: typeof PartAbbreviationDisplay;
    }, {
        label: "groups";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Group;
        };
    }, {
        label: "score-instruments";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof ScoreInstrument;
        };
    }, {
        label: "players";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: typeof Player;
        };
    }, {
        label: "midis";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof MidiDevice, typeof MidiInstrument];
                type: "choices";
            };
        };
    }]
  • Readonly name: "score-part"

Methods

Generated using TypeDoc