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

Implement #17037: Replacement of 'b' and '#' with '♭' and '♯' for staff names imported from mxml #17118

Closed

Conversation

asattely
Copy link
Contributor

@asattely asattely commented Apr 3, 2023

Resolves: #17037

This replaces b and # with their unicode equivalents during musicxml import iff:

  • It is a capital or lowercase letter A-G, OR a valid note name in Italian or French followed by one of those two characters
  • That note name is its own token (i.e. surrounded by whitespace or at the end or beginning of the name)

As is pointed out in a comment on the original issue, there is an import option available to replace (or not replace) fonts. This PR does not override that setting, and doesn't touch font stuff at all.

@asattely asattely force-pushed the mxml-accidentals-in-staff-names branch 4 times, most recently from 3d2a40a to 484f0d6 Compare April 3, 2023 16:48
@asattely
Copy link
Contributor Author

asattely commented Apr 3, 2023

Updated to add transpositions in non-english languages, such as Si♭, in addition to the note name. Also made it non-case sensitive (though the b is still case-sensitive)

@asattely asattely force-pushed the mxml-accidentals-in-staff-names branch from 484f0d6 to 3f2f8ff Compare April 3, 2023 16:58
@asattely asattely force-pushed the mxml-accidentals-in-staff-names branch from 3f2f8ff to dc3dd9d Compare April 12, 2023 14:16
@asattely asattely force-pushed the mxml-accidentals-in-staff-names branch 2 times, most recently from a4e4a16 to c876eda Compare May 3, 2023 17:38
@asattely asattely force-pushed the mxml-accidentals-in-staff-names branch from c876eda to 91e5b14 Compare June 13, 2023 13:22
@asattely asattely force-pushed the mxml-accidentals-in-staff-names branch from 91e5b14 to 5bf7ca1 Compare July 10, 2023 23:52
@@ -425,6 +425,7 @@ class Instrument
void setIsPrimary(bool isPrimary);

void updateInstrumentId();
void updateNamesForAccidentals();
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this line (it is not needed)

@@ -53,6 +53,34 @@ static int musicXMLImportErrorDialog(QString text, QString detailedText)
return errorDialog.exec();
}

void updateNamesForAccidentals(Instrument* inst)
Copy link
Contributor

Choose a reason for hiding this comment

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

static void updateNamesForAccidentals(Instrument* inst)

@RomanPudashkin RomanPudashkin mentioned this pull request Jul 12, 2023
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 7, 2023
…t in insrt names

Backport of musescore#18556, part 4, resp. musescore#17118

Disabled for now, needs more work
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 7, 2023
…t in insrt names

Backport of musescore#18556, part 4, resp. musescore#17118

Disabled for now, needs more work
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 7, 2023
…t in insrt names

Backport of musescore#18556, part 4, resp. musescore#17118

Disabled for now, needs more work
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 7, 2023
…t in insrt names

Backport of musescore#18556, part 4, resp. musescore#17118

Disabled for now, needs more work
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 7, 2023
…t in insrt names

Backport of musescore#18556, part 4, resp. musescore#17118

Disabled for now, needs more work
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 8, 2023
…t in insrt names

Backport of musescore#18556, part 4, resp. musescore#17118

Disabled for now, needs more work
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 8, 2023
…t in insrt names

Backport of musescore#18556, part 4, resp. musescore#17118

Disabled for now, needs more work
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 14, 2023
…t in insrt names

Backport of musescore#18556, part 4, resp. musescore#17118

Disabled for now, needs more work
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.

Flats and Text Fonts in MusicXML Import
3 participants