Skip to content
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

Notehead size #564

Open
amitgur opened this issue Jul 24, 2017 · 3 comments
Open

Notehead size #564

amitgur opened this issue Jul 24, 2017 · 3 comments

Comments

@amitgur
Copy link

amitgur commented Jul 24, 2017

Any way I can change the size of the note heads?

@gristow
Copy link
Collaborator

gristow commented Jul 25, 2017

There is not an easy way to size noteheads right now -- though certainly for things like cue notes it would be very useful. (Technically, I believe it is not just the noteheads but in fact also beams & stems whose proportion is meant to be reduced in cue notes. This reminds me of Cyril's comment from #407 about ossias, that VexFlow doesn't yet support them well.)

TLDR: there's not an easy way to do this now; there should be. I'm flagging this as a feature request. It may be a while before anyone gets to it since it's still somewhat of an edge case compared to other features in the works.

@deemaagog
Copy link
Contributor

Hi, any updates on this? Is it currently possible to draw cue notes?

@sschmidTU
Copy link
Contributor

sschmidTU commented May 12, 2020

@deemaagog it is. you can even set the scale.

this is how we do it in OSMD:

if (firstNote.IsCueNote) {
    vfnoteStruct.glyph_font_scale = Vex.Flow.DEFAULT_NOTATION_FONT_SCALE * Vex.Flow.GraceNote.SCALE;
    vfnoteStruct.stroke_px = Vex.Flow.GraceNote.LEDGER_LINE_OFFSET;
}

if (gve.parentVoiceEntry.IsGrace || gve.notes[0].sourceNote.IsCueNote) {
    vfnote = new Vex.Flow.GraceNote(vfnoteStruct);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants