The part measure object
Type: Dictionary
The part measure object is the place to encode the musical information for a given measure in a given part. This constitutes the majority of musical content in an MNX document.
Attributes
| Name | Type | Required? | Description |
|---|---|---|---|
| An array of arpeggio objects | No | All arpeggios in this part-measure. | |
| An array of beam objects | No | All beams that begin within this part-measure. Beams that are rendered in multiple measures (i.e., beams that cross barlines) are encoded in the first measure in which they appear. |
|
| An array of positioned clef objects | No | ||
| An array of immediate dynamic objects, gradual dynamic objects, relative dynamic objects, accent dynamic objects | No | All dynamics in this part-measure. Four types of dynamics are supported: immediate, gradual, relative and accent. Each object in this list has a "type" attribute that distinguishes between different types of dynamics. This can be "immediate" (such as a notated "p"), "gradual" (such as a crescendo hairpin), "accent" (such as "sfz") or "relative" (such as a notated "più p", meaning "quieter"). |
|
| measure repeat | No | If this part measure is a measure repeat, this includes data about that repeat. | |
| An array of non-arpeggio objects | No | All non-arpeggios in this part-measure. | |
| An array of ottava objects | No | All ottavas that begin within this part-measure. Ottavas that are rendered across multiple measures (i.e., ottavas that cross barlines) are encoded in the first measure in which they appear. |
|
| An array of sequence objects | Yes | ||
| An array of positioned staff config objects | No | Encodes information about the staff changes that begin in this part measure. This is the number of staff lines and (in the future) other metadata about the staff itself. For example: a part that uses a single-line staff should use {"staffConfigs": [{"config": {"lines": 1}}]} in the very first measure. This "staffConfigs" value should be considered active until it's overridden by another one in a subsequent measure. In other words, it only needs to be encoded at the beginning. In the vast majority of music, a part will only encode "staffConfigs" in its very first part measure. The only situation in which subsequent measures would change this value is music in which a part's staff changes (for example, from a five-line staff to a single-line staff). If a part doesn't provide "staffConfigs" in any of its part measures, or there is no positioned staff config for a given staff number, consuming applications should assume the staff uses a standard five lines: {"lines": 5}. Note: this value is an array in order to support multi-staff parts. |
Plus globally available attributes: _c, _x, id
Parent objects
This object is used by the following parent objects:
- part: "measures"
Examples
This object is used in the following examples: