You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some JSON serializers only generate JSON array notation if multiple objects are to be contained, whereas they output object notation if only a single object is handled. This leads to inconsistent data structures that require more logic on the processing than necessary. If a consistent notation in arrays is the only allowed option both these problems are solved.
E.G.
measures: [{note1}] vs measures: [{notes: [{note1}]}]
Hochschule für Musik Detmold
Zentrum für Musik - Edition - Medien
Benjamin W. Bohl
Hornsche-str. 44
D-32756 Detmold
Tel. +49 5231 975-874
---- Jakob Miland schrieb ----
I'm not sure I understand what the issue is?
—
Reply to this email directly or view it on GitHub.
If a single note in a measure it uses and object.
{"score-partwise":{
"$":{
"version":"3.0"
},
"part-list":{
"score-part":{
"$":{
"id":"P1"
},
"part-name":"Music"
}
},
"part":{
"$":{
"id":"P1"
},
"measure":{
"$":{
"number":"1"
},
"attributes":{
"divisions":"1",
"key":{
"fifths":"0"
},
"time":{
"beats":"4",
"beat-type":"4"
},
"clef":{
"sign":"G",
"line":"2"
}
},
"note":{
"pitch":{
"step":"C",
"octave":"4"
},
"duration":"4",
"type":"whole"
}
}
}
}
}
The text was updated successfully, but these errors were encountered: