lilypond-devel
[Top][All Lists]
Advanced

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

Re: Text-Align


From: Mats Bengtsson
Subject: Re: Text-Align
Date: Thu, 26 Jan 2006 11:14:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

Please use the mailing list lilypond-user for ordinary usage questions.
If you can't find anything in the documentation, I really recommend the
mailing list archives. For example, you will find
http://lists.gnu.org/archive/html/lilypond-user/2005-11/msg00496.html

  /Mats

Henrik Evers wrote:

Hi,

I like to have some text below one note. And I can't find any hint in the documentation. It goes into the direction of melismas, but I only have one note or one chord and lots of text to sing on this chord - so it's the opposite of a melisma. It seems to be impossible for me after two days of studying lilypond to find a solution. Please help ;-) The text should start aligned with the first chord, not centered, because ther're lots of words.

If there's any idea, please let me know. Here's my score:

%% Generated by lilypond-book.py
%% Options: [indent=0\mm,fragment,quote,relative=2,alt=[image of music],raggedright]

#(set! toplevel-score-handler print-score-with-defaults)
#(set! toplevel-music-handler (lambda (p m)
                               (print-score-with-defaults
                                p (scorify-music m p))))

#(ly:set-option (quote no-point-and-click))
#(define inside-lilypond-book #t)
#(define version-seen? #t)







% ****************************************************************
% Start cut-&-pastable-section % ****************************************************************

\paper {
 #(define dump-extents #t)
indent = 0\mm
 linewidth = 160\mm - 2.0 * 0.4\in
 raggedright = ##t
}

% ****************************************************************
% ly snippet contents follows:
% ****************************************************************

barOne = { \once \override Staff.BarLine #'bar-size = #2
      \bar "|" }
barTwo = { \once \override Staff.BarLine #'extra-offset = #'(0 . 2)
      \once \override Staff.BarLine #'bar-size = #2
      \bar "|" }

SopranNoten = \relative c'' {
        \key f \major
      \set Score.timing = ##f
      \override Staff.Stem #'transparent = ##t

      a2 bes4 g4 a4 f4 f4 \barTwo
      f2 d'4 c4 bes4 c4 c4 c4 \barOne
        \set Staff.printKeyCancellation = ##f
        \key a \major
        e,2 fis4 a4 b4 b4 \barTwo
        gis2 a4 e'4 d4 cis4 b4 a4 a4 a4 a4
    }

AltNoten = \relative c' {
        \key f \major
      \set Score.timing = ##f
      \override Staff.Stem #'transparent = ##t

      c2 c4 c4 c4 e4 d4 \barTwo
      es2 d4 es!4 d4 e4 f4 f4 \barOne
        \set Staff.printKeyCancellation = ##f
        \key a \major
        e2 fis4 fis4 fis4 eis4 \barTwo
        e2 e4 fis4 f4 e4 d4 e4 e4 d4 e4
    }

TenorNoten = \relative c {
        \clef bass
        \key f \major
      \set Score.timing = ##f
      \override Staff.Stem #'transparent = ##t

      f2 f4 g4 g4 a4 a4 \barTwo
      a2 f4 a4 g4 bes4 a4 a4 \barOne
        \set Staff.printKeyCancellation = ##f
        \key a \major
        e'2 cis4 b4 gis4 gis4 \barTwo
        a2 a4 a4 b4 a4 a4 d4 d4 b4 cis4
    }

BassNoten = \relative c {
        \clef bass
        \key f \major
      \set Score.timing = ##f
      \override Staff.Stem #'transparent = ##t

      f2 f4 e4 e4 d4 d4 \barTwo
      c2 bes4 fis4 g4 c4 f4 f4 \barOne
        \set Staff.printKeyCancellation = ##f
        \key a \major
        e2 dis4 dis4 d4 d4 \barTwo
        cis2 cis4 d4 d4 e4 f4 fis4 b,4 e4 a,4
    }

strophen =\lyricmode {
        \set associatedVoice = #"Bass"
       Wie_schön_ist_es dem Herrn zu dan- ken, deinem_Namen_du
    }

    \score {

        \context ChoirStaff <<
          \context Staff = women <<
             \context Voice =
               sopranos { \voiceOne << \SopranNoten >> }
             \context Voice =
               altos { \voiceTwo << \AltNoten >> }
                 >>

        \context Lyrics = strophen { s1 }
        \context Lyrics = altos \lyricsto altos \strophen

        \context Staff = men <<
             \context Voice =
               sopranos { \voiceOne << \TenorNoten >> }
             \context Voice =
               altos { \voiceTwo << \BassNoten >> }
                 >>
        

          >>


      \layout {
          \context {
             % a little smaller so lyrics
             % can be closer to the staff
             \Staff
             \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3)
          }
       }
      \midi { \tempo 4=60 }
    }


% ****************************************************************
% end ly snippet
% ****************************************************************


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

--
=============================================
        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
=============================================





reply via email to

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