w3c / mnx

Music Notation CG next-generation music markup proposal.
179 stars 18 forks source link

Barline object type ambiguity #326

Closed GeorgeTailor closed 7 months ago

GeorgeTailor commented 7 months ago

Hello,

Global measure docs mention that one of the possible children is barline, which is marked as optional, however there are instructions on how to draw barline when it is not present in the spec.

When we go to barline docs it also mentiones that type is optional, which does not make any sense, since:

  1. it's the only property of this object
  2. as mentioned in global measure docs it's either light-heavy or regular

IMO, specification is not a good place for logic, it should provide structure, otherwise we will end up with same problems as with MusicXML. I propose to mark barline as required in global measure object, also mark type of the barline object as required as well.

adrianholovaty commented 7 months ago

Thanks for the report — nicely spotted! Based on your comments, I think we need to change the following: