Exact horizontal layout (measure width and note positions) #3907
Unanswered
samuelbradshaw
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've used the Verovio JavaScript toolkit to render MusicXML sheet music for a few years, but I've always used the default flexible layout options that allow the score to shrink/expand and wrap according to the width of the window.
I now have a use case – calculating the position of a moving cursor on top of a PDF score – that requires aligning the Verovio-rendered score with the PDF score (the PDF score and MusicXML score are both exported from the same Finale source).
Is it possible to tell Verovio to render the score with the exact measure widths and note positions specified in the MusicXML? If so, which options do I need to pass into Verovio? (example MusicXML:
<measure width="306">
,<note default-x="112">
)For my use case, the only things I really need to align are the bar lines and the note heads. Other elements on the page, like slurs, beams, stems, vertical height, etc. aren't vital.
Beta Was this translation helpful? Give feedback.
All reactions