-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Partially fix #294768: tremolos don't have cue size #6265
Conversation
3ce34b5
to
6df6e65
Compare
This is because the `mag()` factor isn't taken into consideration. Along with multiplying `mag()` in some places, I also created a new member function `minHeight()` for `Tremolo` class to calculate the effective height of tremolo strokes, that is, the height the strokes spread across a given vertical line, without multiplying `spatium()`, to resolve an issue of stem length (a bit longer than intended when direction is down and has single-note tremolo on it) which is not obvious in normal size but obvious in cue size. Several places are already using this effective height, so a separate function for calculating it is really convenient to use.
vtest failures are intended. |
For some strange reason a couple mtests crash |
|
||
//--------------------------------------------------------- | ||
// layout | ||
//--------------------------------------------------------- | ||
|
||
void Tremolo::layout() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason you moved this whole function? This makes the diff larger, obscures what has actually changed, and reduces the benefit of git blame
, all for no purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because I want to make the two functions for single-note and double-note tremolos respectively be adjacent, rather than having this main layout()
function in the way.
Partially resolves: https://musescore.org/node/294768.
This is because the
mag()
factor isn't taken into consideration.Along with multiplying
mag()
in some places, I also created a new member functionminHeight()
forTremolo
class to calculate the effective height of tremolo strokes, that is, the height the strokes spread across a given vertical line, without multiplyingspatium()
, to resolve an issue of stem length (a bit longer than intended when direction is down and has single-note tremolo on it) which is not obvious in normal size but obvious in cue size. Several places are already using this effective height, so a separate function for calculating it is really convenient to use.Commit #2: (resolves https://musescore.org/en/node/286504#comment-1011220)
![image](https://user-images.githubusercontent.com/46259489/86789751-3aaaf380-c09a-11ea-88f7-a844dd153d57.png)
![image](https://user-images.githubusercontent.com/46259489/86789522-fae40c00-c099-11ea-86db-d2b0b1e09513.png)
Before:
After: