-
Notifications
You must be signed in to change notification settings - Fork 3k
Implement chord brackets #31419
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?
Implement chord brackets #31419
Conversation
miiizen
left a comment
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.
Lovely stuff, very neat!
| default: | ||
| LOGE() << "Not handled: " << item->typeName(); | ||
| IF_ASSERT_FAILED(false) { | ||
| /*IF_ASSERT_FAILED(false) { |
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.
Should we keep some sort of assert here?
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.
Oops that was committed by mistake, good catch
| const double y1 = ldata->bbox().top() + halfLineWidth; | ||
| const double y2 = ldata->bbox().bottom() - halfLineWidth; | ||
|
|
||
| double w = item->hookLength().toMM(item->spatium()); |
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.
Wherever we want a spatium value to scale with staff size, we should use absoluteFromSpatium. eg. item->absoluteFromSpatium(item->hookLength()).
(All uses of toMM are due an audit anyway)
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.
Excellent point, thanks
eb52c43 to
014933b
Compare
Resolves: #17368