-
Notifications
You must be signed in to change notification settings - Fork 3k
Add option to always display pitch in SPN #30530
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
base: master
Are you sure you want to change the base?
Conversation
e8d461b
to
c4f8d4f
Compare
a6e1430
to
3911cee
Compare
Strings will be translated in code
b96728e
to
f7b65eb
Compare
Simplify logic by removing the spaces from the original pitch names.
f7b65eb
to
6e88dd8
Compare
In a discussion with the design team, we decided to put this PR on hold for this moment, because we want to do some research about how necessary a preference like this would be. If it turns out that many users would benefit from this setting, we might want to make it more discoverable, for example by including it in the "onboarding flow". Or if it turns out it would serve very few people, it might not be worth the complication. Anyway, until the design team makes a decision about this, I would recommend not investing more effort in this PR. Thanks for your work on this topic though! |
Yeah, this would be a great initial question in the onboarding flow if we think users will see value in it. Regarding the benefit of this, surely we must do reasearch somehow (don't really know how exactly myself) on non-English speaking users, as they will be the only ones that might need this option, and might come more in handy for them when importing or working with MIDI files. On the other side, maybe some non-English speaking users with no musical background might find that the pitch names in their local language does not make sense for them, and just change the localization to English to match what they found in their favourite DAW/other software that they are accustomed to without even letting us know what bothers them, so we might miss some feedback on this. I personally think this option would allow people with non-musical background to have an international notation and use their native laguange in the interface, or make the interface very familiar to those that have musical background and know the local pitch names, so to benefit both sides. Anyway, until the next decision, I will rebase with the latest changes and keep it as draft. I will be happy to help in other areas as well until then :) |
Bonjour, Some thoughts about this draft PR after have tested with OS: Windows 11 Version 24H2 or later, Arch.: x86_64, MuseScore Studio version (64-bit): 4.7.0-252932043, revision: github-musescore-musescore-4765606 and have lupdated musescore_fr.ts
In any case thanks to @SilverGreen93 , and all others, this is a long awaiting improvement since v1.x and even before. |
bool wantSPN = engravingConfiguration()->pitchNotationSPN(); | ||
|
||
// Populate table with localized pitch names and center them in cells | ||
static constexpr const char* noteName[] = {"C", "C♯", "D", "D♯", "E", "F", "F♯", "G", "G♯", "A", "A♯", "B", "C"}; |
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.
uncrustify seems inhappe you this line, too long I guess
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.
I split it on 2 lines, but still cannot figure out what it complains about.
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.
Yes, that output from GitHub CI is real crap and leaves us guessing, I've complained about it time and time again. It use to be much better
7a9e044
to
8ffd7ac
Compare
Better rebase using |
Partially resolves: #30167 (Part 4)
Add an option in Preferences dialog, under Note input to enable people that are accustomed with Scientific Pitch Notation to always display pitches like in DAWs, instead of localised, traditional names. For example, with the option unchecked, in Romanian, the middle C will be displayed as
do1
, but with the option checked, it will be displayed asC4
. Default will be language locale.Setting is called
pitchNotationSPN
, with the keySettings::Key PITCH_NOTATION_SPN("engraving", "score/pitchNotationSPN");
and is part ofmu::engraving::IEngravingConfiguration
, as this is easier to include and use in all the required locations.This display preference applies to:
Screenshot from the Preferences dialog with the new option under Note input group: