Skip to content

XML fixes #29197

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

Merged
merged 10 commits into from
Aug 18, 2025
Merged

XML fixes #29197

merged 10 commits into from
Aug 18, 2025

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Aug 12, 2025

Resolves: Sibelius & finale xml import issues:

  • Only apply word-font font-size to all elements when "Apply default typeface" is unchecked
  • Resize title box to avoid collisions between the title and composer/lyricist text
  • Don't apply offsets included in the XML to text in the title box as these are inaccurate.
  • Ignore "pedal" chords
  • Correct import of <staff-size> tags. This now applies to line distance, and the scaling attribute applies to the scale of the notation
  • Fix copyright text scaling - use new copyright text type instead of generic footer text

@its-not-nice its-not-nice requested a review from mike-spa August 12, 2025 15:04
Comment on lines +3168 to +3169
m_score->staff(staffIdx)->setProperty(Pid::MAG, scale);
m_score->staff(staffIdx)->setProperty(Pid::LINE_DISTANCE, val);
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this then also be adjusted in the export?

Copy link
Contributor

@mike-spa mike-spa left a comment

Choose a reason for hiding this comment

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

Looks good to me, apart from the unit test failure

@miiizen miiizen merged commit f20facf into musescore:master Aug 18, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Needs porting in MuseScore Studio 4.6 Aug 18, 2025
@@ -1810,7 +1811,7 @@ static void updateStyles(Score* score,
continue;
}

bool needUseDefaultSize = tid == TextStyleType::HARMONY_ROMAN
bool needUseDefaultSize = configuration()->needUseDefaultFont() || tid == TextStyleType::HARMONY_ROMAN
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz Aug 18, 2025

Choose a reason for hiding this comment

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

Why not using `this?

        bool needUseDefaultSize = needUseDefaultFont || tid == TextStyleType::HARMONY_ROMAN

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
These values are incredibly unreliable

Backport from musescore#29197, commit 5
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
}
}

double heightInSp = calculatedVBoxHeight / vbox->spatium();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not this?

    double heightInSp = calculatedVBoxHeight / padding;

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
These values are incredibly unreliable

Backport from musescore#29197, commit 5
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
These values are incredibly unreliable

Backport from musescore#29197, commit 5 plus (the relevant) part of commit 8

x
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Backport of musescore#29197, commit 1, plus (the relevant) part of commit 8 and some other mtest fixes (order and names)
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
These values are incredibly unreliable

Backport from musescore#29197, commit 5 plus (the relevant) part of commit 8
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
These values are incredibly unreliable

Backport from musescore#29197, commit 5 plus (the relevant) part of commit 8
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
These values are incredibly unreliable

Backport from musescore#29197, commit 5 plus (the relevant) part of commit 8
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Backport of musescore#29197, commit 1, plus (the relevant) part of commit 8 and some other mtest fixes (order and names)
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
These values are incredibly unreliable

Backport from musescore#29197, commit 5 plus (the relevant) part of commit 8
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 20, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 20, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 20, 2025
These values are incredibly unreliable

Backport from musescore#29197, commit 5 plus (the relevant) part of commit 8
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 20, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 20, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 20, 2025
These values are incredibly unreliable

Backport from musescore#29197, commit 5 plus (the relevant) part of commit 8
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 20, 2025
Backport of musescore#29197, commit 1, plus (the relevant) part of commit 8 and some other mtest fixes (order and names)
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 20, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 20, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 20, 2025
These values are incredibly unreliable

Backport from musescore#29197, commit 5 plus (the relevant) part of commit 8
mike-spa pushed a commit to mike-spa/MuseScore that referenced this pull request Aug 20, 2025
@mike-spa mike-spa mentioned this pull request Aug 20, 2025
@RomanPudashkin RomanPudashkin moved this from Needs porting to Done in MuseScore Studio 4.6 Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants