[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lyrics vertically misplaced using instrument name
From: |
Mats Bengtsson |
Subject: |
Re: Lyrics vertically misplaced using instrument name |
Date: |
Sun, 18 May 2008 22:27:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8 |
This isn't a bug! What happens is that contexts are
placed, vertically, in the order they are created.
In the example, the Lyrics context is created (implicitly)
using the \addlyrics command, which happens strictly
after the beginning of the piece since you first do a
\set ... command. The two Staff contexts, on the other hand,
are created at the beginning of the piece.
One solution is to set the instrumentName using the \with
syntax:
<<
\new Staff \with {instrumentName = "blah" }{
{ c'4 c' }
\addlyrics { bla bla }
}
\new Staff { c'8 c' c' c' }
>>
Another solution is to apply the \addlyrics command to the
full Staff (note that LilyPond does not consider a lyrics line
to belong to a Staff context, which might not coincide with
your intuition):
<<
\new Staff {
\set Staff.instrumentName = "blah"
c'4 c'
}
\addlyrics { bla bla }
\new Staff { c'8 c' c' c' }
>>
/Mats
Valentin Villenave wrote:
2008/5/17 Robert Schröter <address@hidden>:
In the example below the lyrics to the first staff appear below the second,
Thanks, added as http://code.google.com/p/lilypond/issues/detail?id=623
Cheers,
Valentin
_______________________________________________
bug-lilypond mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-lilypond
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================