Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect bar numbering when using multi-bar rests #1039

Open
AGBrown opened this issue Aug 13, 2024 · 1 comment
Open

Incorrect bar numbering when using multi-bar rests #1039

AGBrown opened this issue Aug 13, 2024 · 1 comment

Comments

@AGBrown
Copy link

AGBrown commented Aug 13, 2024

Thank you for the software, it's really fun to build with.

I've stumbled across this issue. Bar numbering is counted incorrectly if both staves in the grand staff use a multi-bar rest at the start - at least I think it's incorrect?

let me know if you need more info

%abc-2.1

X:0
T:Multi-bar rest test fail
%%barnumbers 1 % bar number every 1 bar, if bar no. is shown
%%measurenb 0 % measure numbers at first measure
%%score {R|L} % draw continued bar lines in a grand staff
M:4/4
L:1/4
V:R clef=treble
V:L clef=bass octave=-1
K:Cmaj
[V:R] Z2 | c4 | c4 |
[V:L] Z2 | c4 | c4 |
%
%%vskip 40
[V:R] "^<-- annotated as bar 4, but its bar 5"c4 | c4 | c4 | c4 |]
[V:L] c4 | c4 | c4 | c4 |]

X:1
T:Multi-bar rest test pass
%%barnumbers 1 % bar number every 1 bar, if bar no. is shown
%%measurenb 0 % measure numbers at first measure
%%score {R|L} % draw continued bar lines in a grand staff
M:4/4
L:1/4
V:R clef=treble
V:L clef=bass octave=-1
K:Cmaj
[V:R] z4 | z4 | c4 | c4 |
[V:L] z4 | z4 | c4 | c4 |
%
%%vskip 40
[V:R] "^<-- annotated correctly as bar 5"c4 | c4 | c4 | c4 |]
[V:L] c4 | c4 | c4 | c4 |]

image

image

@paulrosen
Copy link
Owner

Yes, definitely a bug. Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants