Repeats (with alternate endings, advanced)

See also: This same example in MusicXML

{ "mnx": { "version": 1 }, "global": { "measures": [ { "repeat-start": {}, "time": { "count": 3, "unit": 4 } }, { "ending": { "duration": 2, "numbers": [ 1, 2 ] } }, { "repeat-end": {} }, { "ending": { "duration": 2, "numbers": [ 3 ], "open": true } }, {}, {} ] }, "parts": [ { "measures": [ { "clefs": [ { "clef": { "sign": "G", "staffPosition": -2 } } ], "sequences": [ { "content": [ { "type": "event", "duration": { "base": "half", "dots": 1 }, "notes": [ { "pitch": { "octave": 5, "step": "C" } } ] } ] } ] }, { "sequences": [ { "content": [ { "type": "event", "duration": { "base": "half", "dots": 1 }, "notes": [ { "pitch": { "octave": 5, "step": "E" } } ] } ] } ] }, { "sequences": [ { "content": [ { "type": "event", "duration": { "base": "half" }, "notes": [ { "pitch": { "octave": 5, "step": "E" } } ] }, { "type": "event", "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "D" } } ] } ] } ] }, { "sequences": [ { "content": [ { "type": "event", "duration": { "base": "half", "dots": 1 }, "notes": [ { "pitch": { "octave": 5, "step": "G" } } ] } ] } ] }, { "sequences": [ { "content": [ { "type": "event", "duration": { "base": "half" }, "notes": [ { "pitch": { "octave": 5, "step": "G" } } ] }, { "type": "event", "duration": { "base": "quarter" }, "notes": [ { "pitch": { "octave": 5, "step": "F" } } ] } ] } ] }, { "sequences": [ { "content": [ { "type": "event", "duration": { "base": "half", "dots": 1 }, "notes": [ { "pitch": { "octave": 5, "step": "E" } } ] } ] } ] } ] } ] }