lilypond-user
[Top][All Lists]
Advanced

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

Re: Incipit: horizontal alignment of instrument names


From: Jean Abou Samra
Subject: Re: Incipit: horizontal alignment of instrument names
Date: Tue, 20 Sep 2022 11:20:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1

Le 20/09/2022 à 10:35, Johannes Roeßler a écrit :

Hi Group,

I've got issues with aligning the instrument names when using incipits.

A solution discribed here https://lilypondforum.de/index.php/topic,894.0.html help to some degree,
but my piano staff still doesn't fit.

[...]

Any advice?





Instead of using \override Staff.InstrumentName.self-alignment-X = #LEFT
in the \layout block, try only setting it for the staves that need it,
and fine-tuning the value in others.


\version "2.22.2"


altinc={ \clef "alto" \time 2/2 \key g\major b4 }

\score {
  <<
    \new ChoirStaff
    <<
      \new Staff = Soprano
      \with {
        instrumentName = "Soprano"      shortInstrumentName = "S"
        \override InstrumentName.self-alignment-X = #LEFT
      }
      {
        \incipit { \clef "soprano" \omit Staff.TimeSignature s1 }
        \repeat unfold 12 { c''4 c'' c'' c''}
      }

      \new Staff = Alto
      \with {
        instrumentName = "Alto"
        shortInstrumentName = "A"
        \override InstrumentName.self-alignment-X = #LEFT
      }
      {
        \incipit \altinc
        \repeat unfold 12 { c''4 c'' c'' c''}
      }

      \new Staff = Tenore
      \with {
        instrumentName = "Tenore"
        shortInstrumentName = "T"
        \override InstrumentName.self-alignment-X = #LEFT
      }
      {
        \incipit { \clef "tenor" \omit Staff.TimeSignature s1 }
        \clef "treble_8"
        \repeat unfold 12 { c'4 c' c' c' }
      }

      \new Staff = Basso
      \with {
        instrumentName = "Basso"
        shortInstrumentName = "B"
        \override InstrumentName.self-alignment-X = #0.8
      }
      {
        \repeat unfold 12 { c''4 c'' c'' c'' }
      }
    >>
    \new PianoStaff
    \with {
      instrumentName = "Orgel"
      shortInstrumentName = "Org"
      \override InstrumentName.self-alignment-X = #0.8
    } <<
      \new Staff = "right"

      {
        \repeat unfold 12 { c''4 c'' c'' c'' }
      }


      \new Staff = "left"

      {
        \repeat unfold 12 { c''4 c'' c'' c'' }
      }

    >>
  >>
}
\layout {
  indent = 5\cm
  short-indent = 1\cm
  incipit-width = 3\cm
}



Best,
Jean




reply via email to

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