lilypond-devel
[Top][All Lists]
Advanced

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

BUG OR FEATURE?: \markup { "Piano " } vs. \markup { "Piano" " " " " }


From: Heikki Junes
Subject: BUG OR FEATURE?: \markup { "Piano " } vs. \markup { "Piano" " " " " }
Date: Mon, 15 Aug 2005 12:40:39 +0300
User-agent: Debian Thunderbird 1.0.2 (X11/20050602)

I tried to make a new context with ChordNames in between Piano staves, and found a strange (?) behaviour with ending spaces in the instrument names:

\version "2.7.5"
melody = \relative c' { \clef "G" c2 b c1 \bar "|." }
harmonies = \chordmode { c'2 g c4 }
accompaniment = \relative c { \clef "F" c2 g c1 }
\score {
 \context PianoStaff <<
   \context Voice = one { \melody }
   \context ChordNames = two { \harmonies }
   \context Voice = three { \accompaniment }
 >>
 \layout {
   \context{
     \PianoStaff
     \override VerticalAlignment #'forced-distance = #7
     % does not work: instrument = \markup { "Piano  " }
     instrument = \markup { "Piano" " " " " " " }
     \accepts "ChordNames"
   }
 }
}

In this example, \markup { "Piano " } was reduced to \markup { "Piano" }, and only \markup { "Piano" " " " " } gave the needed extra space. Is this a bug of a feature the ending spaces are removed?

This behaviour is a bit unobvious, therefore the bug mentioned in
http://lilypond.org/doc/v2.7/Documentation/user/out-www/lilypond/Instrument-names.html#Instrument-names
did not give an adequate advice for adding the extra space needed in the presence of staff slurs.

Heikki




reply via email to

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