Skip to content

Play count text parts refinements #29280

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 6 commits into from
Aug 18, 2025

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Aug 15, 2025

Resolves: #29158
Resolves: #29268
Resolves: #29236 & its cause
Resolves: increasing repeat count in parts had no effect in other parts & main score

@miiizen miiizen requested a review from zacjansheski August 15, 2025 15:10
@zacjansheski
Copy link
Contributor

zacjansheski commented Aug 15, 2025

Sorry meant to post this here:

#29158 (comment)

#29158 (comment)

@miiizen miiizen requested a review from mike-spa August 18, 2025 09:13
@@ -7204,7 +7214,7 @@ void Score::undoAddElement(EngravingItem* element, bool addToLinkedStaves, bool
nbreath->setTrack(linkedTrack);
nbreath->setParent(seg);
doUndoAddElement(nbreath);
} else if (element->isPlayCountText()) {
} /*else if (element->isPlayCountText() && staff->shouldShowPlayCount()) {
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 just remove this code?

@@ -1024,8 +1024,13 @@ static MeasureBase* cloneMeasure(MeasureBase* mb, Score* score, const Score* osc
}
}

if (oe && !oe->generated() && !oe->excludeFromOtherParts()) {
bool cloneBarLine = oe && oe->isBarLine() && toBarLine(oe)->barLineType() == BarLineType::END_REPEAT
&& toBarLine(oseg->element(0))->playCountText();
Copy link
Contributor

Choose a reason for hiding this comment

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

toBarLine(oseg->element(0)) -- can this be null? because you check it for null in other places

@miiizen miiizen force-pushed the 29158-play-cout-parts branch 2 times, most recently from 149aea1 to c0d6f23 Compare August 18, 2025 09:31
@miiizen miiizen force-pushed the 29158-play-cout-parts branch from c0d6f23 to 00d2be9 Compare August 18, 2025 09:48
@miiizen miiizen merged commit e501396 into musescore:master Aug 18, 2025
13 checks passed
@miiizen miiizen mentioned this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants