Open mikekirin opened 1 day ago
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.
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
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