Skip to content

Wrap is causing last bar of the line behaving incorrectly #1125

@cryfrogg

Description

@cryfrogg

I have this abc notation snippet:

X: 43
T: Piano Sonata No. 11 in A major, K 331 (300i), mvmt. 1a
C: Wolfgang Amadeus Mozart
L: 1/8
M: 6/8
Q: "Thema: Andante grazioso" 1/8=144
%%staves {1 2}
V: 1 clef=treble
V: 2 clef=bass
K: A
[V:1] c>dce2e | 
[V:2] E2EE2E & A,>B,A,C2C | 
[V:1] B>cBd2d | 
[V:2] E2EE2E & G,>A,G,B,2B, | 
[V:1] A2AB2B | 
[V:2] E2EE2E & F,2F,G,2G, | 
[V:1] c2e/d/c2B & E2BA2G | 
[V:2] A,2D,E,3 | 
[V:1] c>dce2e | 
[V:2] E2EE2E & A,>B,A,C2C | 

If rendered without any wrap option, behaves correctly:
Image

Rendered with option { minSpacing: 1.8, maxSpacing: 2.7, preferredMeasuresPerLine: 4 }: bar 5 of V2 is somehow rendered into bar 4
Image

Now rendered with option { minSpacing: 1.8, maxSpacing: 2.7, preferredMeasuresPerLine: 3 }: again bar 5 of V2 is somehow rendered into bar 4, and V1 is also having problems
Image

So is this a wrap problem, or am I using incompatible syntax with abcjs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions