MNX example: Multimeasure rests | MNX specification

# Multimeasure rests

This example document contains three views of the same underlying music: a "full score" plus two parts as intended for individual musicians. In MNX, these are represented by three separate score objects.
Multimeasure rests are tied to a particular score. They live within the "multimeasureRests" object, and each rest defines its starting measure number and how long the rest lasts.

{ "mnx": { "version": 1 }, "global": { "measures": [ { "id": "m1", "barline": { "type": "regular" }, "time": { "count": 4, "unit": 4 } }, { "id": "m2" }, { "id": "m3" }, { "id": "m4" }, { "id": "m5" }, { "id": "m6" }, { "id": "m7" } ] }, "layouts": [ { "id": "PartAAlone", "content": [ { "type": "staff", "sources": [ { "part": "PartA" } ] } ] }, { "id": "PartBAlone", "content": [ { "type": "staff", "sources": [ { "part": "PartB" } ] } ] } ], "parts": [ { "id": "PartA", "measures": [ { "clefs": [ { "clef": { "sign": "G", "staffPosition": -2 } } ], "sequences": [ { "content": [ { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "C" } } ] }, { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "E" } } ] }, { "duration": { "base": "half" }, "notes": [ { "pitch": { "octave": 5, "step": "G" } } ] } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "C" } } ] }, { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "E" } } ] }, { "duration": { "base": "half" }, "notes": [ { "pitch": { "octave": 5, "step": "G" } } ] } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "whole" }, "rest": {} } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "whole" }, "rest": {} } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "C" } } ] }, { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "E" } } ] }, { "duration": { "base": "half" }, "notes": [ { "pitch": { "octave": 5, "step": "G" } } ] } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "C" } } ] }, { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "E" } } ] }, { "duration": { "base": "half" }, "notes": [ { "pitch": { "octave": 5, "step": "G" } } ] } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "whole" }, "notes": [ { "pitch": { "octave": 5, "step": "E" } } ] } ] } ] } ] }, { "id": "PartB", "measures": [ { "clefs": [ { "clef": { "sign": "G", "staffPosition": -2 } } ], "sequences": [ { "content": [ { "duration": { "base": "whole" }, "rest": {} } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "whole" }, "rest": {} } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "E" } } ] }, { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "D" } } ] }, { "duration": { "base": "half" }, "notes": [ { "pitch": { "octave": 5, "step": "C" } } ] } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "E" } } ] }, { "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "D" } } ] }, { "duration": { "base": "half" }, "notes": [ { "pitch": { "octave": 5, "step": "C" } } ] } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "whole" }, "rest": {} } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "whole" }, "rest": {} } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "whole" }, "notes": [ { "pitch": { "octave": 5, "step": "C" } } ] } ] } ] } ] } ], "scores": [ { "name": "Full score", "pages": [ { "systems": [ { "measure": "m1" }, { "measure": "m5" } ] } ] }, { "layout": "PartAAlone", "multimeasureRests": [ { "duration": 2, "start": "m3" } ], "name": "Part A" }, { "layout": "PartBAlone", "multimeasureRests": [ { "duration": 2, "start": "m1" }, { "duration": 2, "start": "m5" } ], "name": "Part B" } ] }