TAB: scale change in staff properties shows wrong stems length of unbeamed notes
Nightly 1d8a874/ Windows7
First reported: https://musescore.org/en/node/79401
1) New "Guitar Tablature" template (so, common type) -> Finish -> Add some notes with different note values (half notes, quarter notes, 8th, etc.), or open this file: test file.mscz
2) Right-click -> Staff Properties -> In "Scale" box, change the default value (100,0%) for eg 250,0%
- Expected result: the stems of the beamed notes and unbeamed notes remains aligned, on the same "basis"
- Current result: the unbeamed notes (quarter notes, half notes) have an unexpected length by extending to the bottom.
(of course, same related result with a scale eg 50,0%)
Comments
After checking, I note the same result simply since the implementation of the feature "new scaling of staff size", so, on August 14, 2014:
https://github.com/musescore/MuseScore/commit/c78951ba3c57cc6ad172913e2…
- Image below produced with this Nightly: 3d19d74
How about simply setting the staff to "small"?
Indeed, setting the staff to "small" don't works also with the same Nightly of August 14. 3d19d74
Result:
... and don't works in the same manner on May 19: 56177c3
Thanks for the investigation!
FWIW, I have an outstanding PR that deals, among other things, with stem lengths of staves with non-standard line spacing. I went out of my way in the PR to not change anything about how tab stem lengths were calculated, but that was based on assuming we like how they are calculated already. It seems then there might be some reason to revisit this, but maybe it could be done in conjunction with my PR. Here it is:
https://github.com/musescore/MuseScore/pull/2159
PR with fix pushed to github: https://github.com/musescore/MuseScore/pull/2234
The feature "new scaling of staff size" you quote possibly revealed a pre-existent but latent bug, introduced by an old commit of mines (2013) which used the chord scale to scale grace note stems in "stems-beside-staff" TABs; apparently this chord scale is a multiple (usually 1 for normal chords) of the staff scale. Eventually, this resulted in the scale being applied twice to the stem, once as chord scale and once as staff scale.
I changed the stem length scaling to reflect this.
@Marc in #4: I think this issue has nothing to do with staff line spacing (either standard or non-standard); tab stems beside staff are independent from line spacing and are managed independently as they have very different constrains.
So, I believe my PR and your PR can go no independently.
Cool!
Fixed in branch master, commit 87a90a78b6
Fix #79716 - TAB: staff scale and length of unbeamed stems beside staff
__References__:
Original issue: https://musescore.org/en/node/79716
Forum thread: https://musescore.org/en/node/79401
Changing the scale of a staff affects the length of unbeamed stems beside staff twice.
Fixed in branch master, commit 7885dafe68
Merge pull request #2234 from mgavioli/Fix_79716_TAB_staff_scale_and_unbeamed_stem_lengths
Fix #79716 - TAB: staff scale and length of unbeamed stems beside staff
Fixed in branch 2.0.3, commit be16ef317d
Fix #79716 - TAB: staff scale and length of unbeamed stems beside staff
__References__:
Original issue: https://musescore.org/en/node/79716
Forum thread: https://musescore.org/en/node/79401
Changing the scale of a staff affects the length of unbeamed stems beside staff twice.
Automatically closed -- issue fixed for 2 weeks with no activity.