Open freetomik opened 7 years ago
Recommended solution: Add into object staveAttributes in parse.js item "width", which will represent stave(measure) width. When key/time signature is changed, alter that width accordingly - probably in editor.add.keySignature method. Then set that width to stave in editor.draw.measure by calling stave.setWidth(...);
Hey @freetomik, I know it's been a while, but I did a quick fix to the issue. I've been really busy with work, but I hope to be able to work on this with you again. 😊 👍
Hi @james-r-smith, thanks for the fix. I took a quick look on it, and it seems reasonable. :-) I will test it when I will find time and then merge.
I wish I could able to bring this project to some reasonable state, but I am still failing in this. Maybe good New Year’s resolution for me to find time for it.
@freetomik I like that resolution. I'll also pitch in on it. :blush::+1:
How to reproduce: Try to open e.g. Saltarello example, select first measure and set key signature to C#. Result: Measure does not extend and some notes are shifted into the next measure. Expected result: Measure width is extended properly to contain all the notes.