-
Notifications
You must be signed in to change notification settings - Fork 183
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
Humdrum: Improve element visibility for suppressed tokens #3436
Humdrum: Improve element visibility for suppressed tokens #3436
Conversation
beam->SetType("invisible"); | ||
beam->SetColor("transparent"); |
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 ideas how to improve this?
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 think this is the best way. This is equivalent to visibility: none
in CSS: space will be allocated to the beams but they will not be shown. This should be sufficient as long as you don't mind the extra vertical space between staves that this may create.
the !!!verovio: svgCss g.invisible { fill: transparent; stroke: transparent; } Or perhaps equivalently: !!!verovio: svgCss g.invisible { visibility: none; } I notice that ledger lines are still visible when notes are set to transparent. Is there also a way to control the color of ledger lines @lpugin? Maybe by adding a verovio option such as Click to view MEI data for above example
I think it would be good to to create
Yes, that would be good (otherwise there will be unattached grace beams like there were with regular beams). If the purpose of making the music invisible is for students to composite the missing music, then there is a question of security since the notes are still present in the MEI/SVG data and they might eventually figure that out... In that case maybe add |
@craigsapp could you review this and the other one? Thanks |
Commit 47616c3 fixes the same bug for grace notes Before: After: Data:
|
Having something like (Maybe we should add a new filter that allows adding new tandem interpretations.) |
Demo data:
Before:
After:
Questions:
HumdrumInput::insertGBeam
as well?HumdrumInput::insertBeamSpan
beam->SetType("invisible");
does not seem to have any effect for the element visibility and there is nobeam::SetVisible
member for beams. I fixed this for now withbeam->SetColor("transparent")
but I'm sure there must be a better solution. Any suggestions?