lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re-aligning instrument names


From: David Kastrup
Subject: Re: Re-aligning instrument names
Date: Fri, 06 Apr 2018 16:09:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

David Sumbler <address@hidden> writes:

> I have spent a long time trying to find the answer to this, but without
> success.
>
> I have a piece with strings divided often into several parts; sometimes
> these may not be even divisions, for instance where a four-part section
> has instruments 3 and 4 playing the same music.  I therefore need to
> show which individual instruments are to play each line.
>
> \version "2.19.81"
>
> \new StaffGroup \with {
>   instrumentName = "Violins I" }
> <<
>   \new Staff \with {
>   instrumentName = "1."}
>   { c' }
>   \new Staff \with {
>   instrumentName = "2."}
>   { c' }
>>>
>
> In above minimal example, how do I get the Staff.instrumentName-s to be
> right-aligned to the system bracket, rather than centre-aligned as the
> StaffGroup name is?

\version "2.19.81"

\new StaffGroup \with {
  instrumentName = "Violins I" }
<<
  \new Staff \with {
    \override InstrumentName.self-alignment-X = #RIGHT
    instrumentName = "1."}
  { c' }
  \new Staff \with {
    \override InstrumentName.self-alignment-X = #RIGHT
    instrumentName = "2."}
  { c' }
>>

-- 
David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]