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

fix: gp5 voltas import #24981

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikekirin
Copy link
Contributor

Measure with the end repeat barline must have a Play count value that is equal to, the total number of times of playback of this measure + 1 or more
https://musescore.org/en/handbook/4/voltas#change-playback

@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Sep 30, 2024

That + 1 is present in importgtp.cpp and importgtp-gp4.cpp too

It doesn't make sense though, and the failing unit test seems to prove it. There there repeat cound would need to be much higher, 8, as there are that many voltas (ignoring the missing of a volta for the 4th, 5th and 7th round)

a 2 is actually enough there, but that last measure neeeds a play count of at least 4 and an end repeat barline.

@Jojo-Schmitz
Copy link
Contributor

play count needs to be one more that the 1st volta's repeat list length... here (in that unit test) a 2, the default, is perfectly correct

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 30, 2024
Backport of musescore#24981 and fix some clazy warnings, one of which revealed a memory leak
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

Successfully merging this pull request may close these issues.

4 participants