-
Notifications
You must be signed in to change notification settings - Fork 433
Ottava transposition fixes #1486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mscuthbert
merged 59 commits into
cuthbertLab:master
from
gregchapman-dev:gregc/ottavaTransposeFix
Feb 25, 2023
Merged
Changes from 56 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
aae9de0
Ottava transposition fixes.
gregchapman-dev 53ee607
Fix test failures by returning 'unknown' from _treatAtSoundingPitch i…
gregchapman-dev c4c0c02
Initial implementation of Spanner.fillIntermediateElements. Doesn't …
gregchapman-dev 085cf29
Make sure you append the last element afterward, not during the loop.
gregchapman-dev a2522a0
Default fill type to Music21Object, Ottava overrides to NotRest. Som…
gregchapman-dev 8fd6ad8
Take a first (crude) shot at filling in Ottavas during MusicXML parse.
gregchapman-dev d609478
Fix failing test by being careful not to fill too far into the future.
gregchapman-dev 0d4b916
Implement fill appropriately for all spanners.
gregchapman-dev f2b5c5f
Don't crash if searchStream is the wrong stream, just don't fill the …
gregchapman-dev 1ff1328
Make pylint happy (bare-exception).
gregchapman-dev 45d4d71
Never fill a TremoloSpanner. A few fixes in fillIntermediateSpannedE…
gregchapman-dev 5f40922
Less lint. Also, forgot to mention in previous checkin: stop hiding/…
gregchapman-dev 31c42f0
Only fill Ottavas during MusicXML parse. All other spanners are left…
gregchapman-dev 58ad46a
When transposing, there is now an option to inheritAccidentalDisplay.…
gregchapman-dev 0550262
Oops, missed a couple transpose functions.
gregchapman-dev 34c6d57
More inheritance interface tweaks.
gregchapman-dev 2efa95d
Did mypy just get pickier? Add a couple type hints.
gregchapman-dev 3b4248f
Fix inheritsAccidentalDisplay crash.
gregchapman-dev 4eea546
Missed a few Interval transposePitch routines that needed inheritAcci…
gregchapman-dev c16dd7d
Fix a place where 'natural' could turn to None, losing all accidental…
gregchapman-dev bb53483
Merge remote-tracking branch 'origin/master' into gregc/ottavaTranspo…
gregchapman-dev 25f859e
Fix testSpannerAnchor expected results to include 'implicit="no"'.
gregchapman-dev b94e6eb
mypy fixes.
gregchapman-dev 6ea5ad4
Merge branch 'gregc/spannerAnchor' into gregc/ottavaTransposeFix
gregchapman-dev c619df1
Make mypy happy again.
gregchapman-dev 55a53c8
Some comment cleanup.
gregchapman-dev 2168e21
Merge branch 'master' into gregc/ottavaTransposeFix
gregchapman-dev beb9a33
Merge branch 'master' into gregc/ottavaTransposeFix
gregchapman-dev d0c0d53
Get rid of inheritAccidentalDisplay options, and just fix the bug whe…
gregchapman-dev ad52399
Clean up accidental display inheritance in Interval._diatonicTranspos…
gregchapman-dev 5b024e8
Make displayStatus inheritance an option in Interval._diatonicTranspo…
gregchapman-dev c38dedd
Set treatAsKeySignature (which means it's safe to inherit accidental …
gregchapman-dev d64a7be
Rename fillIntermediateSpannerElements -> fill. Default behavior for…
gregchapman-dev 6ede867
Rework Ottava handling in XmlToM21.py for speed and readability.
gregchapman-dev 0bf2263
Allow Spanner.fill to be called with searchStream=None; use startElem…
gregchapman-dev 9495eb1
Improve Spanner fill algorithm (spanner.py) as well as SpannerAnchor …
gregchapman-dev 7f63e7a
Move stripInnerSpaces to top of test_m21ToXml.py module.
gregchapman-dev 49d3e56
SpannerAnchor fixes: allow duration != 0, implement _reprInternal, im…
gregchapman-dev e464afa
Add v9 comment (and bump version twice to get past my failed attempt …
gregchapman-dev 6aea4d7
Make toSoundingPitch test a bit more meaningful when s.atSoundingPitc…
gregchapman-dev 908159d
Don't import stream within Stream class. More doc/test tweaks.
gregchapman-dev 75cf322
If necessary jump to end of measure after emitting spanners in a seco…
gregchapman-dev 58cd39d
Add tests for moveForward and moveBackward in m21ToXml.py.
gregchapman-dev ffc97c3
Added a few tests for Spanner.fill (more to come) and found a bug.
gregchapman-dev 6c95326
Spanner.fill doctest tweaks.
gregchapman-dev 4141a06
Merge branch 'master' into pr/1486
mscuthbert ed21c88
Merge branch 'master' into gregc/ottavaTransposeFix
mscuthbert 937aec9
More SpannerAnchor tests.
gregchapman-dev 1e9f099
pylint/flake8
gregchapman-dev 4f9d0d2
Get rid of treatAsKeyChange, and instead, in _transposeByInstrument s…
gregchapman-dev d072f0b
Be pickier in Interval._diatonicTransposeFix when deciding if an Inte…
gregchapman-dev 012a728
pylint
gregchapman-dev cfa4987
A better fix for unison/octave detection.
gregchapman-dev 6854ce8
Test more code paths in Spanner.fill().
gregchapman-dev a52bc13
Actually test that accid.displayStatus is maintained across _transpos…
gregchapman-dev 9468436
Some testing of MusicXML import and then tranposition of <octave-shif…
gregchapman-dev 61166b1
More review responses.
gregchapman-dev 986bdda
Don't name the check I need to do; just do the check.
gregchapman-dev 498a2a9
Merge branch 'master' into gregc/ottavaTransposeFix
gregchapman-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.