The part object | MNX specification

# The part object

Type: Dictionary

The part object represents a set of measures which describe a single part within the score — generally corresponding to a single instrument. The sequence of measures must match the measures found in the global data object.

## Attributes

Name | Type | Required? | Description
--- | --- | --- | ---
kit | An object with user-defined keys, where each value is a kit component | No | The definition of a kit of instruments (typically percussion) that are used by this part. Each event in this part can then refer to an individual kitComponent.
measures | An array of part measure objects | Yes | This array's length must match the length of the global data object's "measures" array.
name | part name | No | An optional name for this part. Notation software might use this in instrument-selection UI, and/or it might be rendered to the left of this part's staves (see the "staff" object).
shortName | part short name | No | An optional abbreviated name for this part. Notation software might use this in instrument-selection UI, and/or it might be rendered to the left of this part's staves (see the "staff" object). For example, the system in a piece of music might use the name "Guitar", while subsequent systems might use the abbreviated "Gtr." instead.
smuflFont | smufl font | No | The SMuFL-compliant font to be used to render notational objects in this part. Can be overridden by certain child elements.
staves | staff count | No | The number of staves that this part uses. For example, use the value 2 for a grand staff (as used in piano music). If not provided, the default is 1.
transposition | part transposition | No | The instrument's transposition (used for transposing instruments such as B-flat clarinet). Specifies the interval that transforms a sounding pitch into a written pitch. For example, a B-flat clarinet, which is written a major-second above sounded pitch, would use the interval {"staffDistance": 1, "halfSteps": 2}. A piccolo, which is written an octave lower than sounded pitch, would use the interval {"staffDistance": -7, "halfSteps": -12}. (Note for MusicXML users: the direction of transposition is the opposite of MusicXML.)

Plus globally available attributes: _c, _x, id

## Parent objects

This object is used by the following parent objects:

- __root__: "parts"

## Examples

This object is used in the following examples:

Accidentals, Articulations, Beams, Beams (across barlines), Beams (hooks), Beams (secondary beam breaks implied), Beams (secondary beam breaks), Beams (with inner grace notes), Clef changes, Dotted notes (augmentation dots), Dynamics, Full-measure rests, Grace note, Grace notes (beamed), Grand staff piano music, Jumps (D.S. al Fine), Jumps (Dal Segno), Key signatures, Lyric line metadata, Lyrics (basic), Lyrics (multi-line), Multimeasure rests, Multiple layouts, Multiple voices, Orchestral layout, Organ layout, Ottavas (8va), Parts, Repeats, Repeats (more than once repeated), Repeats (with alternate endings, advanced), Repeats (with alternate endings, simple), Repeats (with implied start repeat), Rest positions, Slurs, Slurs (for chords), Slurs (targeting specific notes), System layouts, Tempo markings, Three-note chord and half rest, Tie targets, Ties, Time signature glyphs, Time signatures, Tremolos (multi-note), Tremolos (single-note), Tuplets, Two-bar C major scale, “Hello world”