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

Add option to have long, short or hidden instrument names #22550

Merged
merged 6 commits into from May 21, 2024

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Apr 24, 2024

Resolves: #18289
Resolves: #22345

This PR adds style options which allow instrument names to be long, short, or hidden, with separate options for the first system of a section and subsequent systems.
Screenshot 2024-04-24 at 08 47 06

Screenshot 2024-04-19 at 17 21 22

This also contains updates to the templates to make use of this change (eg. reinstating instrument names to the voice & piano template) and additional updates to instrument names to more closely follow the information in instruments.xml

@miiizen miiizen force-pushed the 18289-instr-names branch 2 times, most recently from 1cc5e41 to da7dae3 Compare April 29, 2024 08:53
@oktophonie oktophonie added the vtests This PR produces approved changes to vtest results label Apr 29, 2024
@oktophonie oktophonie requested a review from bkunda April 29, 2024 09:41
|| (ctx.conf().styleB(Sid::hideInstrumentNameIfOneInstrument) && ctx.dom().visiblePartCount() <= 1)) {
|| (ctx.conf().styleB(Sid::hideInstrumentNameIfOneInstrument) && ctx.dom().visiblePartCount() <= 1)
|| (ctx.state().firstSystem()
&& ctx.conf().styleV(Sid::firstSystemInstNameVisibility).value<InstrumentLabelVisibility>() == InstrumentLabelVisibility::HIDE)
Copy link
Contributor

Choose a reason for hiding this comment

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

The only suggestion I have is to try to simplify this (for example, by adding temp bool variables). You can do this in your next PR

@RomanPudashkin RomanPudashkin merged commit c6b2cf3 into musescore:master May 21, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vtests This PR produces approved changes to vtest results
Projects
None yet
3 participants