abcjs
abcjs copied to clipboard
Spacing
Beginning of a tune
The beginning of a tune gets pretty crowded with the part, instrument, chord, and potentially other markings jamming all at the same place, while leaving the rest of the row empty. The crowding in itself is not a problem but a lot of useful space remains empty. I'll add a sample screenshot later but I think it is obvious what I mean. A better layout would need to be calculated dynamically. Perhaps the tempo marking could go above the stave. That would already help.
If all the text is used (instrument, part), it looks like this:

Segno
pushes the other text up

Parts
are pushed by the text

Score Lines
are not evenly spaced as a result of the above.
Bar numbers (text)

Perhaps it would make sense to not add the spacing if the notes don't touch the text above? Both A3 and (4) are too far off.
Suggestions
Perhaps the absolute positioning could be relied on. Users could position the text manually, but not the parts, tempo, segno, etc. Ideally, though, this would be automatic.
All items above the score line might be aligned the same (in Y-axis). Then only positioning along the X-axis would be required by the user. Or the text could be just rendered in sequence if there are overlaps.
I think %%staffsep 0 might help with this.
I think it would be more practical to have all the text in the same line. It would need to be positioned manually horizontally but the spacing would not be that much affected.

Lots of useful space :)

The parts spacing also depends on the font characteristics. The boxes get quite large.

For comparison,
ABC, different fonts

Lilypond (left)

The accent marks also take the full line.
