vexflow icon indicating copy to clipboard operation
vexflow copied to clipboard

Notehead size

Open amitgur opened this issue 8 years ago • 3 comments

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

amitgur avatar Jul 24 '17 15:07 amitgur

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.

gristow avatar Jul 25 '17 03:07 gristow

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

deemaagog avatar May 04 '20 08:05 deemaagog

@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);

sschmidTU avatar May 12 '20 17:05 sschmidTU