Skip to content

Commit

Permalink
Merge pull request #26819 from mike-spa/portStuff
Browse files Browse the repository at this point in the history
Port stuff
  • Loading branch information
RomanPudashkin authored Feb 28, 2025
2 parents 0398ca8 + c55184b commit 7c19778
Show file tree
Hide file tree
Showing 52 changed files with 98 additions and 92 deletions.
2 changes: 1 addition & 1 deletion share/templates/01-General/01-Treble_Clef/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/01-General/02-Bass_Clef/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/01-General/03-Grand_Staff/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/02-Choral/01-SATB/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/02-Choral/02-SATB_+_Organ/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/02-Choral/03-SATB_+_Piano/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/02-Choral/07-Voice_+_Piano/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/04-Solo/01-Guitar/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/04-Solo/04-Piano/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/05-Jazz/01-Jazz_Lead_Sheet/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/05-Jazz/02-Big_Band/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/05-Jazz/03-Jazz_Combo/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/06-Popular/01-Rock_Band/score_style.mss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Style>
<pageWidth>8.26772</pageWidth>
<pageHeight>11.6929</pageHeight>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/Marching_Bass_Drums.drm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Drum pitch="37">
<head>normal</head>
<line>9</line>
Expand Down
2 changes: 1 addition & 1 deletion share/templates/Marching_Snare_Drums.drm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<museScore version="4.40">
<museScore version="4.50">
<Drum pitch="55">
<head>plus</head>
<line>-1</line>
Expand Down
10 changes: 8 additions & 2 deletions src/engraving/rendering/score/horizontalspacing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,17 @@ void HorizontalSpacing::spaceAgainstPreviousSegments(Segment* segment, std::vect
}

bool timeSigAboveBarlineCase = segmentHasTimeSigAboveStaff && prevSeg->isEndBarLineType() && prevSeg->tick() == segment->tick();
bool timeSigAboveKeySigCase = segmentHasTimeSigAboveStaff && prevSeg->isType(SegmentType::KeySigType)
bool timeSigAboveKeySigCase = segmentHasTimeSigAboveStaff && prevSeg->isType(SegmentType::KeySig)
&& prevSeg->tick() == segment->tick();
bool timeSigAboveRepeatKeySigCase = segmentHasTimeSigAboveStaff && prevSeg->isType(SegmentType::KeySigRepeatAnnounce)
&& prevSeg->tick() == segment->tick();

if (timeSigAboveBarlineCase) {
x = xPrevSeg + prevSeg->minRight() - 0.5 * prevSeg->style().styleMM(Sid::barWidth); // align to the preceding barline
} else if (timeSigAboveKeySigCase) {
x = xPrevSeg + segment->minLeft(); // align to the preceding keySig
} else if (timeSigAboveRepeatKeySigCase) {
x = xPrevSeg + prevSeg->minRight();
} else {
double minHorDist = minHorizontalDistance(prevSeg, segment, ctx.squeezeFactor);
minHorDist = std::max(minHorDist, spaceLyricsAgainstBarlines(prevSeg, segment, ctx));
Expand Down Expand Up @@ -390,7 +394,7 @@ bool HorizontalSpacing::stopCheckingPreviousSegments(const SegmentPosition& prev
Fraction prevSegEndTick = prevSeg->tick() + prevSeg->ticks();
Fraction curSegTick = curSeg->tick();

if (prevSegEndTick >= curSegTick) {
if (prevSegEndTick >= curSegTick || curSeg->hasTimeSigAboveStaves()) {
return false;
}

Expand Down Expand Up @@ -1544,6 +1548,8 @@ KerningType HorizontalSpacing::doComputeKerningType(const EngravingItem* item1,
return computeNoteKerningType(toNote(item1), item2);
case ElementType::STEM_SLASH:
return computeStemSlashKerningType(toStemSlash(item1), item2);
case ElementType::PARENTHESIS:
return item2->isBarLine() ? KerningType::NON_KERNING : KerningType::KERNING;
default:
return KerningType::KERNING;
}
Expand Down
1 change: 1 addition & 0 deletions src/engraving/rendering/score/masklayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ void MaskLayout::maskBarlineForText(BarLine* barline, const std::vector<TextBase
}

if (mask.empty()) {
barline->mutldata()->setMask(mask);
return;
}

Expand Down
Loading

0 comments on commit 7c19778

Please sign in to comment.