musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.33k stars 2.66k forks source link

horizontal spacing incorrect in upscaled staves #21253

Open sammik opened 9 months ago

sammik commented 9 months ago

Issue type

Engraving bug (incorrect score rendering)

Bug description

In upscaled staves, horizontal spacing between notes with oposite stem direction is wrong

Steps to reproduce

see attached Staff-scale-spacing-bug.zip

Screenshots/Screen recordings

Staff-scale-spacing-bug-1

MuseScore Version

master

Regression

I don't know

Operating system

Ubuntu 22.04

Additional context

Looks like magnitude taken into account multiple times somewhere in count (or not taken?)

MarcSabatella commented 9 months ago

Interesting! See also https://github.com/musescore/MuseScore/issues/17556 and https://github.com/musescore/MuseScore/issues/18643. These problems have existed since MU3 at least. The fact that it's only on upscale not downscale makes me assume there is some incorrect use of min or max somewhere.