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
lilypond-user@gnu.org
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: mats.bengts...@ee.kth.se
        WWW: http://www.s3.kth.se/~mabe
=============================================



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

Reply via email to