-
Notifications
You must be signed in to change notification settings - Fork 19
JSON_accidentals_example
Adrian Holovaty edited this page Feb 16, 2023
·
4 revisions
Proposed JSON encoding of our Accidentals example document:
{
"global": {
"measures": [
{
"key": {"fifths": -2},
"time": {"signature": "4/4"}
},
{},
{}
]
},
"parts": {
"p1": {
"name": "Music",
"measures": [
{
"content": [
{"type": "clef", "sign": "G", "line": 2},
{
"type": "sequence",
"content": [
{
"type": "event",
"value": "/4",
"notes": [
{"pitch": "F4"}
]
},
{
"type": "event",
"value": "/4",
"notes": [
{"pitch": "G4"}
]
},
{
"type": "event",
"value": "/4",
"notes": [
{"pitch": "G#4", "accidental": "sharp"}
]
},
{
"type": "event",
"value": "/4",
"notes": [
{"pitch": "A4"}
]
}
]
}
]
},
{
"content": [
{
"type": "sequence",
"content": [
{
"type": "event",
"value": "/2",
"notes": [
{"pitch": "B4"}
]
},
{
"type": "event",
"value": "/4",
"notes": [
{"pitch": "Db5", "accidental": "flat"}
]
},
{
"type": "event",
"value": "/4",
"notes": [
{"pitch": "Db5"}
]
}
]
}
]
},
{
"content": [
{
"type": "sequence",
"content": [
{
"type": "event",
"value": "/1",
"notes": [
{"pitch": "D5", "accidental": "natural"}
]
}
]
}
]
}
]
}
}
}