Measure repeats

Measure repeats (aka "simile" markings) are encoded on the part-measure object, as a "measureRepeat" attribute.

In a part-measure that contains a measureRepeat, the sequence content is usually empty. (Occasionally, published music uses a measure-repeat marking with notation in the same bar. In that case, use "measureRepeat" and populate the sequence content.)

For a multi-measure repeat, such as the two-bar repeat at the end of this example, the measureRepeat is encoded on the first of the bars, and nothing is encoded in the remaining bars.

{ "mnx": { "version": 1 }, "global": { "measures": [ { "time": { "count": 4, "unit": 4 } }, {}, {}, { "barline": { "type": "double" } }, {}, {}, {}, {} ] }, "parts": [ { "measures": [ { "clefs": [ { "clef": { "sign": "G", "staffPosition": -2 } } ], "sequences": [ { "content": [ { "duration": { "base": "whole" }, "notes": [ { "pitch": { "octave": 5, "step": "C" } } ] } ] } ] }, { "measureRepeat": { "number": 1 }, "sequences": [ { "content": [] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "whole" }, "notes": [ { "pitch": { "octave": 4, "step": "G" } } ] } ] } ] }, { "measureRepeat": { "number": 1 }, "sequences": [ { "content": [] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "whole" }, "notes": [ { "pitch": { "octave": 5, "step": "C" } } ] } ] } ] }, { "sequences": [ { "content": [ { "duration": { "base": "whole" }, "notes": [ { "pitch": { "octave": 4, "step": "G" } } ] } ] } ] }, { "measureRepeat": { "number": 2 }, "sequences": [ { "content": [] } ] }, { "sequences": [ { "content": [] } ] } ] } ] }