You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Repeat with a repeat sign in both endings plays the first ending twice #2885
AI-assisted (disclosure block included as described in AGENTS.md)
Current Behavior
Note
AI-authored disclosure (alphatab-ai-authored-v1)
Portions of this content were authored by an AI agent. The agent has read AGENTS.md and the human submitter accepts responsibility for
compliance with the rules in that document.
A repeat whose 1st ending and 2nd ending both end with a repeat sign (\rc 2) plays in this order (read from api.tickCache.masterBars):
1 2 1 1 2 1 3 4
That is four passes: the first ending is played twice, and the second ending only on the fourth pass. Official Guitar Pro transcriptions use this layout often, so the cursor drifts from that point on.
Expected Behavior
1 2 1 3 4 - first ending, repeat, second ending, continue.
Guitar Pro 8 plays the same score (attached as repro-3.gp) this way: its MIDI export contains 5 bars.
changed the title [-]Repeat with a repeat sign in both endings plays the first ending twice[/-][+]fix(midi): count passes per repeat group with alternate endings[/+]on Oct 6, 2026
changed the title [-]fix(midi): count passes per repeat group with alternate endings[/-][+]Repeat with a repeat sign in both endings plays the first ending twice[/+]on Oct 6, 2026
Activity
fix(midi): unify repeat pass tracking across alternate endings with rep…
noy-solvin commentedon Oct 1, 2026
Hi @Danielku15
I've submitted PR #2895 that fixes this issue.
Would love a review whenever you get a chance. Happy to adjust anything!
[-]Repeat with a repeat sign in both endings plays the first ending twice[/-][+]fix(midi): count passes per repeat group with alternate endings[/+][-]fix(midi): count passes per repeat group with alternate endings[/-][+]Repeat with a repeat sign in both endings plays the first ending twice[/+]fix(midi): unify repeat pass tracking across alternate endings with rep…