paulrosen / abcjs

javascript for rendering abc music notation
Other
1.89k stars 281 forks source link

First rest should be aligned with first note. #387

Open rualark opened 4 years ago

rualark commented 4 years ago
%%barnumbers 0
K:C
L:1/16
V: V0 clef=treble name=""
V: V1 clef=treble name=""
[V: V0]z16|z16|z16|z16|z16|z16|z16|z16|z16|
[V: V1]C16|A16|G16|E16|F16|G16|E16|D16|C16|

Currently: image

It gets more problematic with other key signatures:

%%barnumbers 0
K:C#
L:1/16
V: V0 clef=treble name=""
V: V1 clef=bass name=""
[V: V0]z16|z16|z16|z16|z16|z16|z16|z16|z16|
[V: V1]C16|A16|G16|E16|F16|G16|E16|D16|C16|

Currently: image

rualark commented 4 years ago

Workaround: add time signature, although alignment is still different: image