Skip to content

Two Repeat sections with alternate endings causes the second one to skip its main part #1046

@jonaro00

Description

@jonaro00

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

image

In the piece above, the first bars play in the correct order: 1, 2, 1, 3.
But after that, the player jumps to bar 5 (skipping the first play of bar 4), to then continues to correctly play 4, 6, 4, 6, 4, 6, 7...

Happens in both 1.2.3 and on develop branch.
Unsure if this issue is AlphaTex specific or global...

Expected Behavior

Bar 4 should not be skipped in the first repeat lap.

Steps To Reproduce

\tempo 175
.
\ro :1 r | \ae 1 r | \ae 2 \rc 2 r | \ro r | \ae 1 r | \ae (2 3 4) \rc 4 r | 

Link to jsFiddle, CodePen, Project

No response

Found in Version

1.2

Platform

Web

Environment

- **OS**: Windows 10
- **Browser**: Latest Brave (Chromium)

Anything else?

This surprised me a lot. I wrote a piece in AlphaTex using many alternate endings while AE had been implemented but not yet released. At that time it worked as expected. When I played the piece again today I noticed this bug.

Metadata

Metadata

Assignees

Labels

area-playerRelated to the audio playback engine.platform-allAffects all platformsstate-acceptedThis is a valid topic to work on.

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions