Skip to content
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

Change Decrescendo to Diminuendo #26522

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jojo-Schmitz
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz commented Feb 15, 2025

As much as possible, variable names and comments as well as (transatable) texts

While both, "Decrescendo" and "Diminuendo", are valid terms for the same thing, "Diminuendo" is a better match for "dim." (like "Crescendo" and "cresc."), isn't based on just forming the opposite (of "Crescendo") by prefixing a "De" and also is (slightly) shorter

@Jojo-Schmitz Jojo-Schmitz changed the title Change Decrescendo to Diminiendo Change Decrescendo to Diminuendo Feb 15, 2025
@Jojo-Schmitz Jojo-Schmitz force-pushed the decrescendo2diminuendo branch 2 times, most recently from ce708e0 to cc5935f Compare February 15, 2025 13:25
@Jojo-Schmitz Jojo-Schmitz force-pushed the decrescendo2diminuendo branch from cc5935f to e27e157 Compare February 15, 2025 13:31
@@ -557,8 +557,8 @@ std::pair<int, std::shared_ptr<GPBeat> > GP67DomBuilder::createGPBeat(XmlDomNode
auto hairpinType = [](const String& str) {
if (str == u"Crescendo") {
return GPBeat::Hairpin::Crescendo;
} else if (str == u"Decrescendo") {
return GPBeat::Hairpin::Decrescendo;
} else if (str == u"Decrescendo") { // this is what GTP calls it internally
Copy link
Contributor Author

@Jojo-Schmitz Jojo-Schmitz Feb 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seem here we need to keep the string, for GTP import to work.
Else some (well, 3) unit tests fail.

@Jojo-Schmitz Jojo-Schmitz force-pushed the decrescendo2diminuendo branch from e27e157 to 63ae717 Compare February 15, 2025 13:38
@@ -669,7 +669,7 @@ void TrillObj::readCapx(XmlReader& e)
void WedgeObj::readCapx(XmlReader& e)
{
// TODO: read LineObj properties
decresc = e.asciiAttribute("decrescendo", "false") == "true";
dim = e.asciiAttribute("decrescendo", "false") == "true"; // this is what Capella calls it internally
Copy link
Contributor Author

@Jojo-Schmitz Jojo-Schmitz Feb 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seem here we need to keep the string, for Capella import to work.
This case doesn't seem to be covered by any unit tests though.

@Jojo-Schmitz Jojo-Schmitz marked this pull request as ready for review February 15, 2025 13:43
@Jojo-Schmitz Jojo-Schmitz force-pushed the decrescendo2diminuendo branch from 63ae717 to f1bbb01 Compare February 15, 2025 18:09
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.

3 participants