lilypond-user
[Top][All Lists]
Advanced

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

Re: can lyric spacing be overridden by note spacing?


From: Mats Bengtsson
Subject: Re: can lyric spacing be overridden by note spacing?
Date: Wed, 24 Jun 2009 22:58:15 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

The simplest solution is probably
\score
{
 \new Staff = "Staff_voice"
 <<
   \new Voice = "Voice_vocal" \melody
\new Lyrics \with{\override LyricText #'X-extent = #'(0 . 0) } \lyricsto "Voice_vocal" \words
 >>
\layout{ragged-right =##f }
}

but then the syllables will collide unless you make sure to get the notes to be spaced wide enough. The more philosophical question is what you mean by "natural note spacing" since you still want the spacing to be wide enough to avoid collisions between the syllables.

   /Mats


Kieren MacMillan wrote:
Hello all!

Just wondering if there's a way to tell Lilypond (2.12 or later) to set lyrics with natural *note* spacing, as opposed to natural *lyric* spacing...
Here's a snippet showing what I'm hoping to achieve automagically:

\version "2.13"

melody = \relative
{
  c8 d e f g4. f8 | e1
}
words = \lyricmode
{
  On Thanks -- giv -- ing screeched we, “Eek!”
}
\score
{
  \new Staff = "Staff_voice"
  <<
    \new Voice = "Voice_vocal" \melody
    \new Lyrics \lyricsto "Voice_vocal" \words
  >>
}

melodyHacked = \relative
{
  c8-\tweak #'transparent ##t ( d e f) g4. f8 | e1
}
wordsHacked = \lyricmode
{
\once \override LyricText #'extra-offset = #'(-1 . 0) "On Thanksgiving"2
  \override LyricText #'self-alignment-X = #-0.7 screeched we,
  \revert LyricText #'self-alignment-X “Eek!”
}
\score
{
  \new Staff = "Staff_voice"
  <<
    \new Voice = "Voice_vocal" \melodyHacked
    \new Lyrics \lyricsto "Voice_vocal" \wordsHacked
  >>
}

Anyone see a (relatively simple) way to implement such an auto-spacing/auto-adjusting feature?
If so, would it be Frog-able (i.e., without me learning C++)?

Thanks,
Kieren.

_______________________________________________
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]