Wrong key signature(After setting drawFromMeasureNumber)
See original GitHub issueThe treble clef is displayed at the beginning of the score, and then there is a treble clef at the end of the 8th bar. Normally, the 9th bar should be the treble clef, but when I cut from the 9th bar, the treble and bass clef is still displayed.
correct performance:
osmd.setOptions({
drawFromMeasureNumber: 5,
drawUpToMeasureNumber: 0
})
You can see that in the 9th bar here, the left and right hands are all treble clefs.
Note: There is a treble clef at the end of bar 8
wrong performance:
osmd.setOptions({
drawFromMeasureNumber: 9,
drawUpToMeasureNumber: 0
})
The left and right hand display in section 9 here is incorrect.
I think it may be that after setting drawFromMeasureNumber
, the calculation of the clef did not consider the information of the previous section.
file: quanwu.xml.zip
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Wrong key signature - MuseScore
I have a piece of music I imported using the abc plugin. It is fine, except it has a D key signature when...
Read more >"Wrong" key signature for a score in F dorian? - Music
Upon listening to it, F minor is the tonic chord. It does have Dorian characteristics like you say, namely a major IV chord...
Read more >Lead sheet has wrong key signature - PG Music Forums
Two options present in BIAB when you change key signature ... The "Key" setting is located as shown below (if you have BIAB...
Read more >How to resolve the error: gpg: bad data signature from key ...
I'm seeing the same issue after upgrading to 2.2.9 on macOS. – nburr. Jul 25, 2018 at 4:18. 4. Also seeing this on...
Read more >Key signature doesn't match the chords shown - iReal Pro
In case (for example) you have a song in C but the default key signature shows D, you need to set the default...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the answer, now I have solved the problem! On the basis of the previous, I added a new method:
checkMiddleClefByMeasureIndex(measureIndex)
@rianlu In that case, the clef (ClefInstruction/AbstractNotationInstruction) is not in
FirstInstructionsStaffEntries
, but in another staffentry ->staffentry.Instructions
. So, you have to loop oversourceMeasure.VerticalSourceStaffEntryContainers
and then oververticalSourceStaffEntryContainer.StaffEntries
, which haveInstructions
, and check if one of these is aKeyInstruction
.