Skip to content

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
@its-not-nice its-not-nice added the vtests This PR produces approved changes to vtest results label Apr 29, 2024
@its-not-nice its-not-nice requested a review from bkunda April 29, 2024 09:41
@miiizen miiizen force-pushed the 18289-instr-names branch from da7dae3 to 26b06f0 Compare April 29, 2024 10:52
@miiizen miiizen force-pushed the 18289-instr-names branch from 26b06f0 to 46d45c5 Compare May 21, 2024 13:08
|| (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

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