controlling spacing of incomplete bars (or note opacity?)

0 views
Skip to first unread message

Iain Duncan

unread,
Apr 12, 2026, 6:33:00 PM (5 days ago) Apr 12
to vexflow

Hi, first off Vexflow is awesome, thanks to everyone who has worked on this!

I am a music and CS academic working on music training tools. I would like to draw notes on bar as they come in from student answers. This means I'm drawing the bar bit by bit. Right now this works fine by just redrawing the whole stave as each question is answered. The thing I have not figured out how to do is stop the note spacing from jumping around. If I draw two quarters only in a bar, or even two quarters plus two rests, they get more horizonal space than 4 quarters. I would like to either

a) force the quarters to have a specific horizontal spacing regardless of what else is in the bar
or
b) if there is a way to set opacity of notes to 0, I could draw the whole bar and simply have the unactivated notes be invisible.

I have tried to find this in the tutorials and docs, but they are (understandably!) dense...

thanks in advance

Reply all
Reply to author
Forward
0 new messages