Skip to content

Small changes from StreamStatus improvements#1870

Merged
mscuthbert merged 7 commits intomasterfrom
braille_updates
Apr 17, 2026
Merged

Small changes from StreamStatus improvements#1870
mscuthbert merged 7 commits intomasterfrom
braille_updates

Conversation

@mscuthbert
Copy link
Copy Markdown
Member

A failed attempt at making StreamStatus allow the skipping of makeBeams (requested on music21list and elsewhere) -- some salvaged improved testing etc.

Add musicxml supports:

              <supports element="beam" type="yes" />
              <supports element="stem" type="yes" />
              <supports element="accidental" type="yes" />

regularize order of attributes for musicXML getSupport() (backwards incompatible)

More tests.

mscuthbert and others added 7 commits March 7, 2026 21:54
…improvements

The streamStatusParent mechanism for skipping redundant makeBeams/makeAccidentals
calls is fundamentally broken without a corresponding invalidation signal when
stream elements change. Specifically, the per-measure `if m.streamStatus.beams:
continue` guard left stale orphaned beams on notes after offbeat notes were removed,
causing incorrect XML output. The incorrectly-anticipated self.e English braille
assertion was also removed.

Kept: bool type annotations, return None for inPlace paths, <supports> elements
in MusicXML encoding, type annotations on makeBeams params, improved testMakeBeams
coverage, testStreamExceptions measure fix, write-only property comments in braille
tests, inPlace=False style in test_example15_11, and the fromStream else-branch
bugfix (was returning unprocessed st instead of st2).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 17, 2026

Coverage Status

coverage: 93.063% (+0.001%) from 93.062% — braille_updates into master

@mscuthbert mscuthbert merged commit be2ce8e into master Apr 17, 2026
8 checks passed
@mscuthbert mscuthbert deleted the braille_updates branch April 17, 2026 08:11
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