Tuplet stem length
When adding tuplets at some pitches, the note stem is artificially shortened for no apparent reason. See attached - the stem length of the second triplet should be the same as the following quavers. (I know I can manually adjust this, and have done, but I think it should not do this by default.)
Attachment | Size |
---|---|
Tuplet_problem.mscz | 3.56 KB |
Comments
Looks like it depends on the orientation (select and press 'X' to check)
In reply to Looks like it depends on the… by Shoichi
Hmm - that makes it even more bizarre!
Rules for stem lengths of beamed notes are extremely complex and subjective, depending on the relative pitches of the notes, the number of notes, and more. You'll see the same shortening with four eighth notes as with triplets, because our algorithm special-cases two-note beams according to some specific rules suggested by engraving experts, but uses more general rules for longer beams.
That's not to say this isn't room for improvement in our algorithms, but still, it is important to keep in mind there is no single "correct" result about any of this.
In reply to Rules for stem lengths of… by Marc Sabatella
Thanks - I appreciate the comment. I was just prompted to post this as the "level" triplet followed by two beamed notes at identical pitch looked quite odd. But I can imagine the complexities of the associated algorithms!
In reply to Thanks - I appreciate the… by tim.uk
By far the ugliest / hardest to maintain part of the code, I think. For anyone curious:
https://github.com/musescore/MuseScore/blob/3.0.5/libmscore/beam.cpp#L1…
Oh yeah, and this data structure:
https://github.com/musescore/MuseScore/blob/3.0.5/libmscore/beam.cpp#L6…
In reply to By far the ugliest / hardest… by Marc Sabatella
OMG! Well, I'm just grateful that it works at all!! Thanks for all your inputs.