lilypond-user
[Top][All Lists]
Advanced

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

can lyric spacing be overridden by note spacing?


From: Kieren MacMillan
Subject: can lyric spacing be overridden by note spacing?
Date: Wed, 24 Jun 2009 14:11:50 -0400

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.



reply via email to

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