Fixed width for all beats

23 views
Skip to first unread message

Gilad Gotman

unread,
Aug 21, 2024, 6:53:28 AM8/21/24
to vexflow
Hey Vexflow developers,

Thanks for this amazing library.

I am using the library to generate svg images for drum scores.

I am using the svg image and on top of it I am displaying a cursor that shows the current position in the score.
The problem I am facing is that not all beats are with the same width, some are shorter and some longer. for example when using a a beat of only a quarter rest note and then a beat of 16tns . the rest note's width is shorter then the next beat's width.

I went through all the formatting tests and formatter code but I couldn't make this to work.
Is there a way to tell the formatter to use the same width for all beats? that means shrinking down beats with more notes I suppose, and letting beats with rests take the same beat width as other beats.

Thank you,
Gilad from Upbeat Studio



Reply all
Reply to author
Forward
0 new messages