lilypond-user
[Top][All Lists]
Advanced

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

Aligning instrument names - another try


From: Michael Käppler
Subject: Aligning instrument names - another try
Date: Tue, 21 Aug 2007 15:07:04 +0200
User-agent: Thunderbird 1.5.0.12 (X11/20070604)

Hi all,
I'll give it another try - I searched a lot on how to left align several instrument names(different staves), but didn't find even a workaround on the list. It seems that Thies' workaround which he posted in Oct 2006 doesn't work anymore.

Regards,
Michael

His post:

Here's what I do (I hope I'll remember correctly as I can't find a file containing it right now):

  \set Staff.instrument = \markup {
     \combine
        \hspace #5.0
        "My Instrument"
  }



My example:

\version "2.11.30"

\header {
piece = \markup {\fontsize #3 {"1. Test"}  }
}

Key = { \key b \major }

violine = {
\set Staff.instrumentName = \markup {\combine \hspace #5.0 "Violino I, II" }
\clef treble
<<
 \Key
 \time 4/4
 \relative c'' {
  c4 d b c
  d2 c
 }
>>
}

sopran = { \set Staff.instrumentName = \markup {\combine \hspace #5.0 "Soprano" }
\clef soprano
<<
  \Key
  \relative c'' {
   d2 g
   a4 f fis g
  }
>>
}

bc = {
\set Staff.instrumentName = \markup {\combine \hspace #5.0 "Organo" }
\clef bass
<<
 \Key
 \relative c {
  c2 d
  e1
 }
>>
}

\score {
<<
  \new StaffGroup <<
    \new Staff = "Violine" \violine
  >>
  \new Voice = "Sopran" \sopran
  \new Staff = "b.c." \bc
>>
\layout {
indent = 2.5\cm
}
}






reply via email to

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