-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
base: master
Are you sure you want to change the base?
Conversation
ce708e0
to
cc5935f
Compare
cc5935f
to
e27e157
Compare
@@ -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 |
There was a problem hiding this comment.
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.
e27e157
to
63ae717
Compare
@@ -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 |
There was a problem hiding this comment.
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.
As much as possible
63ae717
to
f1bbb01
Compare
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