lilypond-user
[Top][All Lists]
Advanced

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

Re: Multi-line instrument names


From: Kieren MacMillan
Subject: Re: Multi-line instrument names
Date: Wed, 31 May 2006 15:40:43 -0400

Hi, Robert:

I'm very frustrated because I still can't get proper alignment
of my multi-line instrument names.

There definitely seems to be an issue (bug?) there...  =(
The attached workaround isn't perfect, but the output is closer to what you want (I think).

Best wishes,
Kieren.

_________________________

%% CODE SNIPPET BEGINS
\version "2.9.6"

\paper
{
        indent = 40\mm
}

\layout
{
        \context
        {
                \Score
                \override InstrumentName #'padding = #-4
                \override InstrumentName #'extra-offset = #'( 0 . -1.8 )
        }
}

bassNotes = \relative c'
{
        \clef bass c4 c c c
}

inPad = \markup { \hspace #14 }

\score
{
        <<
                \new StaffGroup = "wholestaff"
                <<
                        \new Staff
                        \with
                        {
instrument = \markup { \center-align { "Superius" "(Soprano/ Alto)" \inPad } }
                    }
                        << \bassNotes >>
                        \new Staff
                        \with
                        {
instrument = \markup { \center-align { "Quinta Pars" "(Soprano/ Alto)" \inPad } }
                    }
                        << \bassNotes >>
                        \new Staff
                        \with
                        {
instrument = \markup { \center-align { "Contratenor" "(Tenore)" \inPad } }
                    }
                        << \bassNotes >>
                        \new Staff
                        \with
                        {
                                instrument = \markup { \center-align { "Tenor" 
"(Tenore)" \inPad } }
                    }
                        << \bassNotes >>
                        \new Staff
                        \with
                        {
instrument = \markup { \center-align { "Sexta Pars" "(Basso)" \inPad } }
                    }
                        << \bassNotes >>
                        \new Staff
                        \with
                        {
instrument = \markup { \center-align { "Bassus [I]" "(Basso)" \inPad } }
                    }
                        << \bassNotes >>
                >>
        >>
}
%% CODE SNIPPET ENDS




reply via email to

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