lilypond-user
[Top][All Lists]
Advanced

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

Re: advanced (?) instrumentname setting


From: Gagi Petrovic
Subject: Re: advanced (?) instrumentname setting
Date: Mon, 16 Apr 2012 17:46:55 +0200

Yes, that looks very good. But when I add it to my score it looks like the attached example. I think it has something to do with the grouping brackets of the windinstruments and the pianostaff under it.. somehow the \hspace command gets ignored then.

Cheers, Gagi

2012/4/16 Janek Warchoł <address@hidden>
On Mon, Apr 16, 2012 at 2:12 PM, Gagi Petrovic <address@hidden> wrote:
>    \override InstrumentName #'self-alignment-X = #RIGHT
>    \set  Staff.instrumentName = \markup \concat{
>      \raise#-1 \center-column{ "Wind " "Gong " }
>      \hspace#2 \bold\italic\small\center-column { e. m. c. }
>    }
>
> Actually I did try it: it's getting close but it's still not the way it
> should be as you can see in the example I added. It seems that using
> \hspace#2 gets ignored because of the staff-grouping in the score. But thank
> you for thinking with me.

Hmm?  I've changed the values a bit and with the following code i get
attached result using 2.15.36

gong = {
 #(define mylines '(-2 0 2))
 \override Staff.StaffSymbol #'line-positions = #mylines
 \clef percussion  g
}

\score { \gong }

\layout {
 \context {
  \Staff
  %   \override StaffSymbol #'line-count = #3
  \override InstrumentName #'baseline-skip = #1
  \override InstrumentName #'font-size = #-3
  \override InstrumentName #'self-alignment-X = #RIGHT
  instrumentName =
  \markup {
    \raise #-0.5 \center-column \normalsize { "Wind " "Gong " }
    \hspace #0.5
    \bold\italic \center-column { e. m. c. }
  }
 }
}

2.14.2 output looks nice too.

Is there anything wrong with it?
Janek



--
+31 6 1259 8681
gagipetrovic.nl

Attachment: Screen shot 2012-04-16 at 2.08.19 PM.png
Description: PNG image


reply via email to

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