lilypond-user
[Top][All Lists]
Advanced

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

Re: staff consisting of lyrics with bar lines


From: Mats Bengtsson
Subject: Re: staff consisting of lyrics with bar lines
Date: Mon, 29 Jun 2009 12:56:41 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

Isn't it easier to add the Bar_engraver to the default Lyrics context definition:

\layout{
 \context{
   \Lyrics
   \consists Bar_engraver
   \override BarLine #'bar-size = #4
 }
}

You still have to adjust the vertical position, since the center of the bar lines will be aligned with the baseline of the lyrics, whereas you probably want them aligned with the vertical center of the lyrics (which may be different if you only have characters that extend downwards, like "pgj" or characters that extend upwards, like "lhkfbd".

  /Mats

Jonathan Kulp wrote:
On Fri, Jun 26, 2009 at 11:42 PM, Alan Shaw <address@hidden <mailto:address@hidden>> wrote:


    I am trying to make a staff consisting only of lyrics separated by
    bar lines.
    I've made a Rhythmic Staff with number of lines set to 0, removed the
    time-signature, used hideNotes on the notes the lyrics are
    attached to, and
    used hidden rests. The result is close to what I want, but I can't
    seem to
    get the lyrics centered vertically between the bar lines (that is,
    right in
    the center of the staff itself if it were visible). The best I can do,
    fiddling with the numbers in minimum-Y-extent for the
    VerticalAxisGroup, is
    get them to barely overlap the lower portion of the space between
    the bars.

    Any suggestions? I've searched this forum and the documentation pretty
    thoroughly. Thanks.

    Alan Shaw


extra-offset is your friend.  Add this to your code:

\override LyricText #'extra-offset = #'( 0.0 . 5.6)

I just changed the offset value from the following snippet from the Lilypond Snippet Repository:

http://lsr.dsi.unimi.it/LSR/Item?id=537

HTH,

Jon

--
Jonathan Kulp
http://www.jonathankulp.com
------------------------------------------------------------------------

_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        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
=============================================





reply via email to

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