Repository navigation
Conversation
7 tasks done
webern
marked this pull request as ready for review
October 29, 2026 07:08
<key print-object="no"> (a key signature that applies to the music but is not drawn) had no api home, so it was written back as a plain <key> and the signature became visible. KeyData gains printObject, a Bool that mirrors ClefData::printObject. The reader fills it for traditional and non-traditional keys, and the writer emits it when it is not unspecified. The default leaves output unchanged. musuite/testInvisibleElements.xml now round-trips and is pinned in the baseline.
webern
force-pushed
the
m/mxdev-keyprint
branch
from
October 30, 2026 08:15
3faf381 to
e6f9da7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<key print-object="no">(a key signature that applies to the music but is not drawn) had no apihome, so it was written back as a plain
<key>and the signature became visible.KeyDatagainsprintObject, a tri-stateBoolthat mirrorsClefData::printObject. The readerfills it for traditional and non-traditional keys;
PropertiesWriter::writeKey, the one place a<key>is built, emits it when it is not unspecified. The default leaves output unchanged.data/api.features.xmlmarks keyprint-objectas supported.musuite/testInvisibleElements.xmlnow round-trips and is pinned in the baseline.Not addressed here: the non-traditional key reader branch still does not set
staffIndexortickTimePosition, and other<key>attributes (color, position, font) are still dropped.Testing
PrintObject*cases inKeyDataTest.cpp: no, yes, unspecified (omitted), non-traditional,per-staff, and equality
make api-testpasses (6141 assertions in 710 test cases)make api-roundtrippasses, 442 of 442 pinned filesmake api-roundtrip-discover: 442 pass, no file that passed before now failsmake fmt-checkpassesReferences