Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octave for Clef #316

Closed
AlbertHart opened this issue May 20, 2020 · 1 comment
Closed

Octave for Clef #316

AlbertHart opened this issue May 20, 2020 · 1 comment

Comments

@AlbertHart
Copy link

AlbertHart commented May 20, 2020

I have a score with this clef data:

       <staves>2</staves>
        <clef number="1">
          <sign>G</sign>
          <line>2</line>
          </clef>
        <clef number="2">
          <sign>F</sign>
          <line>4</line>
          </clef>

How do I know from this data that the "F" clef is an octave lower that the "G" clef?

I can hardwire this knowing the G/2 is the treble clef and F/4 is the bass clef. But I presume there are other possible values for than these two.

@adrianholovaty
Copy link
Contributor

Hi @AlbertHart — see here for the list of supported clefs in MusicXML. Also see here for the more general documentation on the clef element.

Generally, yes, your code will need to know what "G2" and "F4" mean, in terms of their visual look/position, effect on audio playback, etc.

(Marking as closed. You might be better off asking questions like this on our mailing list instead of GitHub. We try to reserve GitHub issues for ideas and bug reports as opposed to user support questions.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants