What's the purpose of clefs
array in the beginning of the measures array?
#343
-
I'm having a hard time understanding the logic behind such structure. Can clef sign change in the middle of the score? If a clef sign can be only one at the beginning of the part and there can be only one clef sign for a part why it's not under |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Hello — please see the example document called "Clef changes": That Yes, it is indeed possible for the clef to change in the middle of a score, even in the middle of a measure. Our lives would be much easier if this weren't the case. We haven't yet specified how to encode clefs for multi-stave instruments, such as a piano grand staff. MusicXML does this via the "number" attribute on the clef object, and I imagine MNX will do something similar. (I'm going to convert this to a GitHub discussion thread, since it's more of a question as opposed to a specific to-do.) |
Beta Was this translation helpful? Give feedback.
-
I wish there was some kind of |
Beta Was this translation helpful? Give feedback.
Hello — please see the example document called "Clef changes":
https://w3c.github.io/mnx/docs/mnx-reference/examples/clef-changes/
That
"clefs"
array is a list of clefs with their rhythmic positions — positioned clef objects.Yes, it is indeed possible for the clef to change in the middle of a score, even in the middle of a measure. Our lives would be much easier if this weren't the case.
We haven't yet specified how to encode clefs for multi-stave instruments, such as a piano grand staff. MusicXML does this via the "number" attribute on the clef object, and I imagine MNX will do something similar.
(I'm going to convert this to a GitHub discussion thread, since it's more of a question as …