opensheetmusicdisplay
opensheetmusicdisplay copied to clipboard
Missing ledger line on rest
I am filing a few bugs referencing this sheet.
This is bug 2 on the OSMD screenshot. 
The leger line is missing on the rest.

Relevant passage from Gould - Behind Bars (p. 37 - Rest symbols):

Fixed in #1463.
After:
Before:
before the commit below we had the positioning of whole and half rest ledger line mixed up:
test_ledger_line_rest.musicxml
After:
Before:
Take_These_Broken_Wings.musicxml
The approach is very close to https://github.com/0xfe/vexflow/pull/1418, adding a new glyph for whole and half notes with ledger lines.
I initially went for a more complex approach drawing ledger lines using vexflow's standard ledger line system, but first off, it was more complex (only drawing the last ledger line for rests), and secondly the rest positioning in Vexflow/OSMD is quite fickle under certain circumstances, making it difficult to make sure that the note is always under/above the ledger line etc.
You can find that apprach on the branch fix/ledger-lines-rest.
The current approach is on fix/ledger-lines-rest-glyph-approach / PR #1463.