Incorrect spacing of grace notes with accidentals
Windows 7, GIT commit: ef4c692
1) new score, flute, C major
2) measure 2, add quarter note Bb
3) drag grace note to this note
Result: too much space before note
I plan to fix this along with #25341: Chord with accidental and offset downstem note too close to barline and #25342: too much space after time signature if first chord has accidental; it's all the same chunk of code, and testing my fixes for that code is I discovered this problem.
Attachment | Size |
---|---|
bgd.png | 1.3 KB |
Comments
Seems not as related as I think. As far as I can tell, the code in Measure::layoutX() is assigning the correct amount of leading space. It may the code in Chord::layoutPitched() that is miscalculating something. One clue is that the effect actually gets worse depending on what else is going on in the chord. For example, if there are two grace notes and they both have accidentals, there is too much room in front of each. Also, the effect isn't limited to the beginning of the bar:
https://github.com/musescore/MuseScore/pull/852
Turns out there were a couple of other grace note spacing issues I was able to fix along the way.
Fixed in a99b32f0b1
Automatically closed -- issue fixed for 2 weeks with no activity.