Skip to content

Fix xmlForward offset calculation - #318

Merged
mscuthbert merged 2 commits into
cuthbertLab:masterfrom
jacobtylerwalls:jtw/fix-xml-forward
Sep 2, 2026
Merged

Fix xmlForward offset calculation#318
mscuthbert merged 2 commits into
cuthbertLab:masterfrom
jacobtylerwalls:jtw/fix-xml-forward

Conversation

@jacobtylerwalls

@jacobtylerwalls jacobtylerwalls commented Jul 3, 2026

Copy link
Copy Markdown
Member

Finally debugged why I had funny ties in piano parts: I had incorrect offsets after a <forward>.

Looking again, I don't think these two .max() calls are even needed: I don't think we have to protect against negative values here. I can remove if you prefer. EDIT: I checked m21p and updated to match its behavior here (from cuthbertLab/music21#972)

@mscuthbert
mscuthbert merged commit 8cb5cf0 into cuthbertLab:master Sep 2, 2026
4 checks passed
@mscuthbert

Copy link
Copy Markdown
Member

Thanks Jacob -- wow -- yep a real error. and also an error on missing this PR.

@jacobtylerwalls
jacobtylerwalls deleted the jtw/fix-xml-forward branch September 2, 2026 13:51
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.

2 participants