Skip to content

Stave labelling improvements#32605

Merged
mike-spa merged 5 commits intomusescore:masterfrom
mike-spa:staveLabellingImprovements
Mar 24, 2026
Merged

Stave labelling improvements#32605
mike-spa merged 5 commits intomusescore:masterfrom
mike-spa:staveLabellingImprovements

Conversation

@mike-spa
Copy link
Contributor

No description provided.

@mike-spa mike-spa force-pushed the staveLabellingImprovements branch 6 times, most recently from 244f278 to 73da0dc Compare March 20, 2026 12:57
@mike-spa mike-spa requested a review from miiizen March 20, 2026 12:57

staff_idx_t effectiveStaffIdx() const override;

staff_idx_t endIdxOfGroup() const { return m_endIdxOfGroup; }
Copy link
Contributor

Choose a reason for hiding this comment

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

This could also be in ldata

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point


const String& transp = i->transposition();
if (!transp.empty()) {
fullName += u" " + muse::mtrc("notation", "in") + u" " + transp;
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps leave some context for translators with a //: comment above, saying that this is for instrument transpositions

sysStaff->individualStaffName = nullptr;
}
toInstrumentName(el)->setSysStaff(0);
n->setSysStaff(0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick while we're here: I prefer nullptr

return result;
}

std::vector<mu::engraving::Part*> mu::engraving::System::visiblePartsOfGroup(staff_idx_t start, staff_idx_t end) const
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
std::vector<mu::engraving::Part*> mu::engraving::System::visiblePartsOfGroup(staff_idx_t start, staff_idx_t end) const
std::vector<Part*> System::visiblePartsOfGroup(staff_idx_t start, staff_idx_t end) const

InstrumentNamesFormat nameFormat
= style.styleV(longNames ? Sid::instrumentNamesFormatLong : Sid::instrumentNamesFormatShort).value<InstrumentNamesFormat>();

String in = TranslatableString("notation", "in").translated();
Copy link
Contributor

Choose a reason for hiding this comment

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

Some //: context here and in formattedGroupName could be useful too

@mike-spa mike-spa force-pushed the staveLabellingImprovements branch from 73da0dc to 7e0c231 Compare March 24, 2026 12:37
@mike-spa mike-spa force-pushed the staveLabellingImprovements branch from 7e0c231 to 5a7a437 Compare March 24, 2026 12:40
@mike-spa mike-spa force-pushed the staveLabellingImprovements branch from 5a7a437 to 95a63a6 Compare March 24, 2026 13:48
@mike-spa mike-spa merged commit 383af2f into musescore:master Mar 24, 2026
12 checks passed
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.

2 participants