MNX example: Organ layout | MNX specification

# Organ layout

Note only the music in the first measure is encoded here.

{ "mnx": { "support": { "useAccidentalDisplay": true }, "version": 1 }, "global": { "measures": [ { "id": "m1", "key": { "fifths": -3 }, "time": { "count": 3, "unit": 4 } } ] }, "layouts": [ { "id": "organ3Staff", "content": [ { "type": "group", "content": [ { "type": "staff", "sources": [ { "part": "organ", "staff": 1 } ] }, { "type": "staff", "sources": [ { "part": "organ", "staff": 2 } ] } ], "symbol": "brace" }, { "type": "staff", "sources": [ { "part": "organ", "staff": 3 } ] } ] }, { "id": "organ3StaffSplitOber", "content": [ { "type": "group", "content": [ { "type": "staff", "sources": [ { "part": "organ", "stem": "up", "voice": "Main" }, { "part": "organ", "stem": "down", "voice": "Oberwerk" } ] }, { "type": "staff", "sources": [ { "part": "organ", "voice": "Hauptwerk" } ] } ] }, { "type": "staff", "sources": [ { "part": "organ", "staff": 3 } ] } ] } ], "parts": [ { "id": "organ", "measures": [ { "clefs": [ { "clef": { "sign": "G", "staffPosition": -2 } } ], "sequences": [ { "content": [ { "duration": { "base": "quarter" }, "rest": {} }, { "duration": { "base": "eighth" }, "rest": {} }, { "id": "main1", "duration": { "base": "eighth" }, "notes": [ { "pitch": { "octave": 4, "step": "G" } } ] }, { "id": "main2", "duration": { "base": "eighth" }, "notes": [ { "accidentalDisplay": { "show": true }, "pitch": { "alter": 1, "octave": 4, "step": "F" } } ] }, { "id": "main3", "duration": { "base": "eighth" }, "notes": [ { "accidentalDisplay": { "show": true }, "pitch": { "octave": 4, "step": "A" } } ] } ], "staff": 1, "voice": "Main" }, { "content": [ { "duration": { "base": "quarter" }, "rest": {} }, { "duration": { "base": "eighth" }, "rest": {} }, { "id": "ober1", "duration": { "base": "eighth" }, "notes": [ { "pitch": { "alter": -1, "octave": 3, "step": "B" } } ] }, { "id": "ober2", "duration": { "base": "eighth" }, "notes": [ { "accidentalDisplay": { "show": true }, "pitch": { "octave": 3, "step": "A" } } ] }, { "id": "ober3", "duration": { "base": "eighth" }, "notes": [ { "pitch": { "octave": 4, "step": "C" } } ] } ], "staff": 1, "voice": "Oberwerk" }, { "content": [ { "duration": { "base": "half", "dots": 1 }, "rest": {} } ], "staff": 2, "voice": "Hauptwerk" }, { "content": [ { "duration": { "base": "half", "dots": 1 }, "notes": [ { "pitch": { "alter": -1, "octave": 3, "step": "E" }, "ties": [ { "target": "pedNote2" } ] } ] } ], "staff": 3, "voice": "Pedal" } ] } ], "staves": 3 } ], "scores": [ { "name": "defaultScore", "pages": [ { "systems": [ { "layout": "organ3Staff", "layoutChanges": [ { "layout": "organ3StaffSplitOber", "location": { "measure": "m1", "position": { "fraction": [ 3, 8 ] } } } ], "measure": "m1" }, { "layout": "organ3StaffSplitOber", "measure": "m6" } ] } ] } ] }