forked from musescore/MuseScore
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-85: Improve tuplet rounding error correction
MusicXML exporters tend to have a fixed maximum <divisions> value, meaning more complex tuplets (5's, 7's) have incorrect duration values. These were already handled for tuplets, but sometimes not handled for <backup> elements within or after a tuplet. This commit adds a more thorough system for rounding durations off to more sensible values. In doing so, it unifies the conversion process from <duration> to Fraction (which previously existed almost identically in three separate places) to pass1.calcTicks(). Duplicate of musescore#8766, part 2, plus resolving a merge conflict with musescore#8282 (resp. 8429, for master) and fixing 2 compiler warnings.
- Loading branch information
1 parent
ea4ad1d
commit e25fa58
Showing
11 changed files
with
4,675 additions
and
54 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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.