Creating an empty staff #3747
Answered
by
craigsapp
adamspagge
asked this question in
Q&A
-
Hi, I am building a music theory application that is using Verovio to render musical examples. The issue that I've run into is not being able to control the width of staff that is empty. Is it possible to render an empty staff that spans the whole width of the page? Or is it possible only with hacks like hidden placeholder notes? |
Beta Was this translation helpful? Give feedback.
Answered by
craigsapp
Aug 26, 2024
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lpugin
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can add
<space>
elements on the staff, with enough duration to fill the desired width of the system with one measure. You also need to setspacingNonLinear
andspacingLinear
options to the maximum value of 1.0 to have the measure spread as wide as possible.Here I have created measures with half-note invisible rests which force the measure to fill the system with the maximum spacing parameters:
[View in VHV]
Note that I also made the barlines invisible if you want it totally blank.
Click to view MEI data for above example