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

Multi-measure rests don't contribute to bar number incrementing (may be same as 1039) #1053

Open
seisiuneer opened this issue Sep 26, 2024 · 1 comment

Comments

@seisiuneer
Copy link
Contributor

This ignores the Z24 in the measure count and puts the bar 5 marker on the 5th bar indicated with a |

X:1
T:song
C:composer
L:1/4
M:2/4
K:BbMaj
%%barnumbers 5
Z24 | !p! F2- | F2- | F2- | F2 | B2- | B2- | !>(!B2-!>)! | B2- |

Workaround is to manually set the bar number when required:

X:1
T:song
C:composer
L:1/4
M:2/4
K:BbMaj
%%barnumbers 5
%%setbarnb 24
Z24 | !p! F2- | F2- | F2- | F2 | B2- | B2- | !>(!B2-!>)! | B2- |

@seisiuneer
Copy link
Contributor Author

seisiuneer commented Sep 26, 2024

Interestingly, if you stick a second T: tag at the top of that, it crashes the renderer:

X:1
T:song
T:subtitle
C:composer
L:1/4
M:2/4
K:BbMaj
%%barnumbers 5
%%setbarnb 24
Z24 | !p! F2- | F2- | F2- | F2 | B2- | B2- | !>(!B2-!>)! | B2- |

but not if you remove the %%setbarnb (but the bar numbers are wrong):

X:1
T:song
T:subtitle
C:composer
L:1/4
M:2/4
K:BbMaj
%%barnumbers 5
Z24 | !p! F2- | F2- | F2- | F2 | B2- | B2- | !>(!B2-!>)! | B2- |

and it works if you move the second T: tag down:

X:1
T:song
L:1/4
M:2/4
K:BbMaj
%%barnumbers 5
%%setbarnb 24
T:subtitle
Z24 | !p! F2- | F2- | F2- | F2 | B2- | B2- | !>(!B2-!>)! | B2- |

@seisiuneer seisiuneer changed the title Multi-measure rests don't contribute to bar number incrementing Multi-measure rests don't contribute to bar number incrementing (may be same as 1039) Sep 26, 2024
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

1 participant