[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatically change staff instrument name
From: |
David Wright |
Subject: |
Re: Automatically change staff instrument name |
Date: |
Tue, 10 May 2016 09:13:07 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue 10 May 2016 at 13:21:36 (+0200), Davide Liessi wrote:
> In the following code, the two short instrument names "A" and "B" of
> the second system are put one on top of the other (as I expected).
> I can solve the collision manually, e.g. with something similar to the
> three commented lines.
>
> Is there a way to automatically change the short instrument names (or
> any other property) based on the visible staves?
I expect you need the schemers. Funnily enough, this works:
\new StaffGroup \with {
shortInstrumentName = "A "
\RemoveEmptyStaves
} <<
\new Staff { c'1 \break R1 \break c'1 }
\new Staff \with { shortInstrumentName = "(B)" } {
c'1 c'1 c'1
}
>>
Cheers,
David.