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
[MU3 Backend] ENG-55: Infer tempo text #8412
Merged
vpereverzev
merged 7 commits into
musescore:3.6.2_backend
from
iveshenry18:ENG-55-infer-tempo
Jul 22, 2021
Merged
[MU3 Backend] ENG-55: Infer tempo text #8412
vpereverzev
merged 7 commits into
musescore:3.6.2_backend
from
iveshenry18:ENG-55-infer-tempo
Jul 22, 2021
Conversation
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
oktophonie
approved these changes
Jun 24, 2021
rebase needed |
iveshenry18
force-pushed
the
ENG-55-infer-tempo
branch
from
June 28, 2021 23:52
292788c
to
9cf09a4
Compare
Rebased! |
one more time, pls :) |
wizofaus
reviewed
Jul 5, 2021
wizofaus
reviewed
Jul 5, 2021
wizofaus
reviewed
Jul 5, 2021
iveshenry18
force-pushed
the
ENG-55-infer-tempo
branch
2 times, most recently
from
July 7, 2021 00:46
c319258
to
fc9bc32
Compare
wizofaus
reviewed
Jul 7, 2021
Jojo-Schmitz
reviewed
Jul 7, 2021
Sometimes tempo text is incorrectly exported as staff text, often in the form "q = 60". This commit adds regex-based inferencing for this case, converting the left side of the equals sign to the proper symbol, and calculating the resulting tempo from the resulting symbol and the value of the right side.
Sometimes tempo text with additional instructions is exported as two separate directions. Previously, this was imported as a Tempo Text element and a separate Staff Text element. This commit adds a function to infer these cases and merge the text from the Staff Text element into the Tempo Text.
This now adds inferencing based on common tempo text words such as "rit" and "accel". In the case that one of these is inferenced, the underlying tempo remains the same.
This commit adds another case of tempo inference, which handles staff text on beat 1 of a score (tick 0/1) that is above the staff and bold, regardless of the presence of keywords. NOTE: in doing so, it was highlighted in the testing that there is some existing unreliable behavior with exporting hidden tempo markings. This test has been temporarily disabled.
This commit changes the method by which Staff Text is checked for boldness, using a slightly more robust regex.
Rather than looking for <b> in the XML text, this commit pulls isBold directly from the MusicXML, future-proofing the tempo text inference from potential changes to MuseScore's internal XMLText representation.
iveshenry18
force-pushed
the
ENG-55-infer-tempo
branch
from
July 20, 2021 21:08
256d4d2
to
b7edab2
Compare
vpereverzev
approved these changes
Jul 22, 2021
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 22, 2021
Sometimes tempo text is incorrectly exported as staff text, often in the form "q = 60". This commit adds regex-based inferencing for this case, converting the left side of the equals sign to the proper symbol, and calculating the resulting tempo from the resulting symbol and the value of the right side. Duplicate of musescore#8412, part 1
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 22, 2021
Sometimes tempo text with additional instructions is exported as two separate directions. Previously, this was imported as a Tempo Text element and a separate Staff Text element. This commit adds a function to infer these cases and merge the text from the Staff Text element into the Tempo Text. Duplicate of musescore#8412, part 2
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 22, 2021
This now adds inferencing based on common tempo text words such as "rit" and "accel". In the case that one of these is inferenced, the underlying tempo remains the same. Duplicate of musescore#8412, part 3
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 22, 2021
This commit adds another case of tempo inference, which handles staff text on beat 1 of a score (tick 0/1) that is above the staff and bold, regardless of the presence of keywords. NOTE: in doing so, it was highlighted in the testing that there is some existing unreliable behavior with exporting hidden tempo markings. This test has been temporarily disabled. Duplicate of musescore#8412, part 4
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 22, 2021
This commit changes the method by which Staff Text is checked for boldness, using a slightly more robust regex. Duplicate of musescore#8412, part 5
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 22, 2021
Rather than looking for <b> in the XML text, this commit pulls isBold directly from the MusicXML, future-proofing the tempo text inference from potential changes to MuseScore's internal XMLText representation. Duplicate of musescore#8412, part 6
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 22, 2021
Duplicate of musescore#8412, part 7
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 2, 2021
Duplicate of musescore#8412, part 7
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 10, 2021
Sometimes tempo text is incorrectly exported as staff text, often in the form "q = 60". This commit adds regex-based inferencing for this case, converting the left side of the equals sign to the proper symbol, and calculating the resulting tempo from the resulting symbol and the value of the right side. Duplicate of musescore#8412, part 1
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 10, 2021
Sometimes tempo text with additional instructions is exported as two separate directions. Previously, this was imported as a Tempo Text element and a separate Staff Text element. This commit adds a function to infer these cases and merge the text from the Staff Text element into the Tempo Text. Duplicate of musescore#8412, part 2
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 10, 2021
This now adds inferencing based on common tempo text words such as "rit" and "accel". In the case that one of these is inferenced, the underlying tempo remains the same. Duplicate of musescore#8412, part 3
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 10, 2021
This commit adds another case of tempo inference, which handles staff text on beat 1 of a score (tick 0/1) that is above the staff and bold, regardless of the presence of keywords. NOTE: in doing so, it was highlighted in the testing that there is some existing unreliable behavior with exporting hidden tempo markings. This test has been temporarily disabled. Duplicate of musescore#8412, part 4
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 10, 2021
This commit changes the method by which Staff Text is checked for boldness, using a slightly more robust regex. Duplicate of musescore#8412, part 5
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 10, 2021
Rather than looking for <b> in the XML text, this commit pulls isBold directly from the MusicXML, future-proofing the tempo text inference from potential changes to MuseScore's internal XMLText representation. Duplicate of musescore#8412, part 6
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 10, 2021
Duplicate of musescore#8412, part 7
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 23, 2021
Sometimes tempo text is incorrectly exported as staff text, often in the form "q = 60". This commit adds regex-based inferencing for this case, converting the left side of the equals sign to the proper symbol, and calculating the resulting tempo from the resulting symbol and the value of the right side. Duplicate of musescore#8412, part 1
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 23, 2021
Sometimes tempo text with additional instructions is exported as two separate directions. Previously, this was imported as a Tempo Text element and a separate Staff Text element. This commit adds a function to infer these cases and merge the text from the Staff Text element into the Tempo Text. Duplicate of musescore#8412, part 2
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 23, 2021
This now adds inferencing based on common tempo text words such as "rit" and "accel". In the case that one of these is inferenced, the underlying tempo remains the same. Duplicate of musescore#8412, part 3
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 23, 2021
This commit adds another case of tempo inference, which handles staff text on beat 1 of a score (tick 0/1) that is above the staff and bold, regardless of the presence of keywords. NOTE: in doing so, it was highlighted in the testing that there is some existing unreliable behavior with exporting hidden tempo markings. This test has been temporarily disabled. Duplicate of musescore#8412, part 4
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 23, 2021
This commit changes the method by which Staff Text is checked for boldness, using a slightly more robust regex. Duplicate of musescore#8412, part 5
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 23, 2021
Rather than looking for <b> in the XML text, this commit pulls isBold directly from the MusicXML, future-proofing the tempo text inference from potential changes to MuseScore's internal XMLText representation. Duplicate of musescore#8412, part 6
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 23, 2021
Duplicate of musescore#8412, part 7
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
Sometimes tempo text is incorrectly exported as staff text, often in the form "q = 60". This commit adds regex-based inferencing for this case, converting the left side of the equals sign to the proper symbol, and calculating the resulting tempo from the resulting symbol and the value of the right side. Duplicate of musescore#8412, part 1
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
Sometimes tempo text with additional instructions is exported as two separate directions. Previously, this was imported as a Tempo Text element and a separate Staff Text element. This commit adds a function to infer these cases and merge the text from the Staff Text element into the Tempo Text. Duplicate of musescore#8412, part 2
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
This now adds inferencing based on common tempo text words such as "rit" and "accel". In the case that one of these is inferenced, the underlying tempo remains the same. Duplicate of musescore#8412, part 3
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
This commit adds another case of tempo inference, which handles staff text on beat 1 of a score (tick 0/1) that is above the staff and bold, regardless of the presence of keywords. NOTE: in doing so, it was highlighted in the testing that there is some existing unreliable behavior with exporting hidden tempo markings. This test has been temporarily disabled. Duplicate of musescore#8412, part 4
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
This commit changes the method by which Staff Text is checked for boldness, using a slightly more robust regex. Duplicate of musescore#8412, part 5
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
Rather than looking for <b> in the XML text, this commit pulls isBold directly from the MusicXML, future-proofing the tempo text inference from potential changes to MuseScore's internal XMLText representation. Duplicate of musescore#8412, part 6
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
Duplicate of musescore#8412, part 7
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
Sometimes tempo text is incorrectly exported as staff text, often in the form "q = 60". This commit adds regex-based inferencing for this case, converting the left side of the equals sign to the proper symbol, and calculating the resulting tempo from the resulting symbol and the value of the right side. Duplicate of musescore#8412, part 1
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
Sometimes tempo text with additional instructions is exported as two separate directions. Previously, this was imported as a Tempo Text element and a separate Staff Text element. This commit adds a function to infer these cases and merge the text from the Staff Text element into the Tempo Text. Duplicate of musescore#8412, part 2
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
This now adds inferencing based on common tempo text words such as "rit" and "accel". In the case that one of these is inferenced, the underlying tempo remains the same. Duplicate of musescore#8412, part 3
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
This commit adds another case of tempo inference, which handles staff text on beat 1 of a score (tick 0/1) that is above the staff and bold, regardless of the presence of keywords. NOTE: in doing so, it was highlighted in the testing that there is some existing unreliable behavior with exporting hidden tempo markings. This test has been temporarily disabled. Duplicate of musescore#8412, part 4
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
This commit changes the method by which Staff Text is checked for boldness, using a slightly more robust regex. Duplicate of musescore#8412, part 5
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
Rather than looking for <b> in the XML text, this commit pulls isBold directly from the MusicXML, future-proofing the tempo text inference from potential changes to MuseScore's internal XMLText representation. Duplicate of musescore#8412, part 6
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
Duplicate of musescore#8412, part 7
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.
Resolves: ENG-55: Tempi incorrectly rendered as Stave Text
This PR includes commits for inferring tempo text that is incorrectly exported as staff text.
Sometimes tempo text is incorrectly exported as staff text, often in the
form "q = 60". This commit adds regex-based inferencing for this case,
converting the left side of the equals sign to the proper symbol, and
calculating the resulting tempo from the resulting symbol and the value
of the right side.
Sometimes tempo text with additional instructions is exported as two
separate directions. Previously, this was imported as a Tempo Text
element and a separate Staff Text element. This commit adds a function
to infer these cases and merge the text from the Staff Text element
into the Tempo Text.
This now adds inferring based on common tempo text words such as "rit"
and "accel". In the case that one of these is inferred, the underlying
tempo remains the same.