abcjs icon indicating copy to clipboard operation
abcjs copied to clipboard

Separate parts in the same bar are aligned differently

Open ChorHizzle opened this issue 5 years ago • 2 comments

Separate parts in the same bar are aligned differently when preceded by triplet in the pickup measure.

E.g. X: 1 T: Unnamed C: M: 4/4 K: C Q: 80 L: 1/8 V:0 clef=treble [K:C] (3:2:3E'1/1D'1/1C'1/1| E'2/1 G'2/1x4/1 & "C"x8/1 |]

ChorHizzle avatar Nov 25 '19 22:11 ChorHizzle

Thanks for the bug report - it looks like the problem is an interaction between the triplet and the overlay. I will fix this soon. In the meantime, there is a work around - at least in your example it is not necessary to use the overlay:

(3edc| "C"e2 g2 |]

I can see that the ABC string is generated, so I'm sure that is a pain to do it like that.

Another work around is:

(3edc & y2 | e2 g2 & "C" x8 |]

paulrosen avatar Nov 28 '19 16:11 paulrosen

I see. Thanks for the suggestion.

ChorHizzle avatar Dec 04 '19 00:12 ChorHizzle