lilypond-user
[Top][All Lists]
Advanced

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

quick hack for a lyric text problem?


From: Kieren MacMillan
Subject: quick hack for a lyric text problem?
Date: Mon, 10 Dec 2012 11:30:22 -0500

Hi all,

In the following snippet, you can see a [minor] effect of one of the [major] 
lyric text problems that Janek was hoping to fix with his GSoC work, and a 
partial quick-and-dirty hack:

\version "2.17.8"

eighthNotes = \relative c' {
  \time 12/8
  \repeat "unfold" 9 { c8 } c4 r8
}

syllables = \lyricmode {
  Here is a test, but it’s on -- ly a test.
}

\score {
  <<
    \new Voice \eighthNotes
    \addlyrics \syllables
  >>
}

\score {
  <<
    \new Voice \eighthNotes
    \addlyrics \syllables
  >>
  \layout {
    \context {
      \Score
      \override LyricText #'X-extent = #'(-1.55 . 1.55)
    }
  }
}

Now I would love a callback function which would set the LyricText back "where 
it should be" (i.e., centred if not the first syllable of a melisma, 
left-aligned otherwise). Can this be done automatically, maybe via a Scheme 
engraver? Can the whole thing be automated (i.e., every measure of music is 
spaced evenly based on the largest necessary LyricText X-extent, then the 
LyricText grobs are put back "where they should be")?

Thanks,
Kieren.


reply via email to

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