-
Notifications
You must be signed in to change notification settings - Fork 76
Adjust horizontal centering spacing for rest #542
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
base: master
Are you sure you want to change the base?
Conversation
|
Yeah, there should ideally be some adjustments depending on the symbol I recall it being hard to get accurate information about the width of each symbol from the Qt font info classes, which is why there are a lot of hardcoded scale factors in the layout code. |
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.
Pull request overview
This PR adjusts the horizontal centering spacing for rest symbols in the music notation renderer to fix issue #540. The change reduces the width allocation for rest centering from 1.25× to 1× the position spacing.
Changes:
- Modified the horizontal centering width calculation for rest symbols to use exactly the position spacing width instead of 1.25× the width
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I made some changes :
|
|
|
||
| if (symbolGroup.getSymbolType() == SymbolGroup::TremoloPicking) | ||
| { | ||
| renderedSymbol->setY(yPos); |
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.
I'm not clear how these changes affect the layout
The tremolo picking symbol does this in the case statement above
renderedSymbol->setX(layout.getPositionX(symbolGroup.getLeftPosition()));
which looks equivalent to how the X position is set below in the generic case for other symbols?




Description of Change(s)
Adjust horizontal centering spacing for rest
Fixes Issue(s)
Fix #540