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

Merged
merged 1 commit into from
Oct 2, 2024
Merged

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
@mikekirin
Copy link
Contributor Author

mikekirin commented Oct 2, 2024

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

All this actually makes sense only if Volta bar needs to play more than once. Otherwise, the default behavior when Volta bar plays only once, this parameter does nothing.
measure + 1 or more
or more is the key here. The 100 is also a valid value according to the handbook.

@mikekirin mikekirin merged commit b125284 into musescore:master Oct 2, 2024
11 checks passed
@mikekirin mikekirin deleted the gp5-voltas-import-m branch October 2, 2024 09:38
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Oct 2, 2024
Backport of musescore#24981 and fix some clazy warnings, one of which revealed a memory leak
rpatters1 added a commit to rpatters1/MuseScore that referenced this pull request Oct 2, 2024
* master:
  fix: gp5 voltas import (musescore#24981)
  Fix switching voices from the middle of a tuplet
  Make entering a rest switch to input mode
  Don't attach grace notes aftrer to time tick segment
  Fix voice too long corruption
  Update musescore font file and add new filled playhead icon
  Add playhead icon
  Updated MusescoreIcon.ttf file
  Run `lupdate` with arguments `-no-obsolete`
  Update in-repo translations from Transifex
  Simplify FocusableControl.qml by removing unnecessary content wrapper
  Fix musescore#24723: Honor --score-transpose flag in CLI
Leo-Cal pushed a commit to Leo-Cal/MuseScore that referenced this pull request Oct 24, 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

Successfully merging this pull request may close these issues.

4 participants