Skip to content

Fix inline key changes leaking between voices#1150

Open
Juemuren wants to merge 1 commit into
paulrosen:mainfrom
Juemuren:fix/1109
Open

Fix inline key changes leaking between voices#1150
Juemuren wants to merge 1 commit into
paulrosen:mainfrom
Juemuren:fix/1109

Conversation

@Juemuren

@Juemuren Juemuren commented Apr 26, 2026

Copy link
Copy Markdown

fixes #1109

Description

Inline [K:] changes were being stored only in the shared parser key state. When parsing switched from one voice to another, a key change from the previous voice could leak into the next voice’s initial staff key.

This change stores the running key per voice and restores it when switching voices. New voices still start from the global key, while existing voices resume from their own last key state.

Testing

  • Added a regression test for inline key changes across multiple voices.
  • Verified the issue example keeps V:2 starting in EDor after V:1 changes inline to C.
  • Ran npm run build:basic locally for syntax/build validation.

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.

Inline key signature changes in one voice of a multivoice tune breaks the key signature other voices that follow

1 participant